bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / unotools / searchopt.hxx
blob6b43219094ac69a415f67be95ff65f13fa825b8d
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>
24 #include <memory>
26 class SvtSearchOptions_Impl;
27 enum class TransliterationFlags;
29 class UNOTOOLS_DLLPUBLIC SvtSearchOptions
31 std::unique_ptr<SvtSearchOptions_Impl> pImpl;
33 SvtSearchOptions( const SvtSearchOptions & ) = delete;
34 SvtSearchOptions & operator = ( const SvtSearchOptions & ) = delete;
36 public:
37 SvtSearchOptions();
38 ~SvtSearchOptions();
40 void Commit();
42 TransliterationFlags GetTransliterationFlags() const;
44 // General Options
46 bool IsWholeWordsOnly() const;
47 bool IsBackwards() const;
48 bool IsUseRegularExpression() const;
49 bool IsUseWildcard() const;
50 bool IsSimilaritySearch() const;
51 bool IsUseAsianOptions() const;
52 bool IsMatchCase() const; // also Japanese search option
53 bool IsSearchFormatted() const;
54 bool IsNotes() const;
56 void SetWholeWordsOnly( bool bVal );
57 void SetBackwards( bool bVal );
58 void SetUseRegularExpression( bool bVal );
59 void SetUseWildcard( bool bVal );
60 void SetSearchForStyles( bool bVal );
61 void SetSimilaritySearch( bool bVal );
62 void SetUseAsianOptions( bool bVal );
63 void SetMatchCase( bool bVal ); // also Japanese search option
64 void SetSearchFormatted( bool bVal );
65 void SetNotes( bool bVal);
67 // Japanese search options
69 bool IsMatchFullHalfWidthForms() const;
70 bool IsMatchHiraganaKatakana() const;
71 bool IsMatchContractions() const;
72 bool IsMatchMinusDashChoon() const;
73 bool IsMatchRepeatCharMarks() const;
74 bool IsMatchVariantFormKanji() const;
75 bool IsMatchOldKanaForms() const;
76 bool IsMatchDiziDuzu() const;
77 bool IsMatchBavaHafa() const;
78 bool IsMatchTsithichiDhizi() const;
79 bool IsMatchHyuiyuByuvyu() const;
80 bool IsMatchSesheZeje() const;
81 bool IsMatchIaiya() const;
82 bool IsMatchKiku() const;
83 bool IsIgnorePunctuation() const;
84 bool IsIgnoreWhitespace() const;
85 bool IsIgnoreProlongedSoundMark() const;
86 bool IsIgnoreMiddleDot() const;
87 bool IsIgnoreDiacritics_CTL() const;
88 bool IsIgnoreKashida_CTL() const;
90 void SetMatchFullHalfWidthForms( bool bVal );
91 void SetMatchHiraganaKatakana( bool bVal );
92 void SetMatchContractions( bool bVal );
93 void SetMatchMinusDashChoon( bool bVal );
94 void SetMatchRepeatCharMarks( bool bVal );
95 void SetMatchVariantFormKanji( bool bVal );
96 void SetMatchOldKanaForms( bool bVal );
97 void SetMatchDiziDuzu( bool bVal );
98 void SetMatchBavaHafa( bool bVal );
99 void SetMatchTsithichiDhizi( bool bVal );
100 void SetMatchHyuiyuByuvyu( bool bVal );
101 void SetMatchSesheZeje( bool bVal );
102 void SetMatchIaiya( bool bVal );
103 void SetMatchKiku( bool bVal );
104 void SetIgnorePunctuation( bool bVal );
105 void SetIgnoreWhitespace( bool bVal );
106 void SetIgnoreProlongedSoundMark( bool bVal );
107 void SetIgnoreMiddleDot( bool bVal );
108 void SetIgnoreDiacritics_CTL( bool bVal );
109 void SetIgnoreKashida_CTL( bool bVal );
112 #endif
114 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */