Impress: Implement getPartName.
[LibreOffice.git] / include / unotools / searchopt.hxx
blobd9b3cf3c1f7eaf9e597f72ecebf6fcac2b38a68a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_UNOTOOLS_SEARCHOPT_HXX
21 #define INCLUDED_UNOTOOLS_SEARCHOPT_HXX
23 #include <unotools/unotoolsdllapi.h>
25 class SvtSearchOptions_Impl;
27 class UNOTOOLS_DLLPUBLIC SvtSearchOptions
29 SvtSearchOptions_Impl *pImpl;
31 // disallow copy-constructor and assignment-operator for now
32 SvtSearchOptions( const SvtSearchOptions & );
33 SvtSearchOptions & operator = ( const SvtSearchOptions & );
35 protected:
37 public:
38 SvtSearchOptions();
39 ~SvtSearchOptions();
41 sal_Int32 GetTransliterationFlags() const;
43 // General Options
45 bool IsWholeWordsOnly() const;
46 bool IsBackwards() const;
47 bool IsUseRegularExpression() const;
48 bool IsSimilaritySearch() const;
49 bool IsUseAsianOptions() const;
50 bool IsMatchCase() const; // also Japanese search option
51 bool IsNotes() const;
53 void SetWholeWordsOnly( bool bVal );
54 void SetBackwards( bool bVal );
55 void SetUseRegularExpression( bool bVal );
56 void SetSearchForStyles( bool bVal );
57 void SetSimilaritySearch( bool bVal );
58 void SetUseAsianOptions( bool bVal );
59 void SetMatchCase( bool bVal ); // also Japanese search option
60 void SetNotes( bool bVal);
62 // Japanese search options
64 bool IsMatchFullHalfWidthForms() const;
65 bool IsMatchHiraganaKatakana() const;
66 bool IsMatchContractions() const;
67 bool IsMatchMinusDashChoon() const;
68 bool IsMatchRepeatCharMarks() const;
69 bool IsMatchVariantFormKanji() const;
70 bool IsMatchOldKanaForms() const;
71 bool IsMatchDiziDuzu() const;
72 bool IsMatchBavaHafa() const;
73 bool IsMatchTsithichiDhizi() const;
74 bool IsMatchHyuiyuByuvyu() const;
75 bool IsMatchSesheZeje() const;
76 bool IsMatchIaiya() const;
77 bool IsMatchKiku() const;
78 bool IsIgnorePunctuation() const;
79 bool IsIgnoreWhitespace() const;
80 bool IsIgnoreProlongedSoundMark() const;
81 bool IsIgnoreMiddleDot() const;
82 bool IsIgnoreDiacritics_CTL() const;
83 bool IsIgnoreKashida_CTL() const;
85 void SetMatchFullHalfWidthForms( bool bVal );
86 void SetMatchHiraganaKatakana( bool bVal );
87 void SetMatchContractions( bool bVal );
88 void SetMatchMinusDashChoon( bool bVal );
89 void SetMatchRepeatCharMarks( bool bVal );
90 void SetMatchVariantFormKanji( bool bVal );
91 void SetMatchOldKanaForms( bool bVal );
92 void SetMatchDiziDuzu( bool bVal );
93 void SetMatchBavaHafa( bool bVal );
94 void SetMatchTsithichiDhizi( bool bVal );
95 void SetMatchHyuiyuByuvyu( bool bVal );
96 void SetMatchSesheZeje( bool bVal );
97 void SetMatchIaiya( bool bVal );
98 void SetMatchKiku( bool bVal );
99 void SetIgnorePunctuation( bool bVal );
100 void SetIgnoreWhitespace( bool bVal );
101 void SetIgnoreProlongedSoundMark( bool bVal );
102 void SetIgnoreMiddleDot( bool bVal );
103 void SetIgnoreDiacritics_CTL( bool bVal );
104 void SetIgnoreKashida_CTL( bool bVal );
107 #endif
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */