bump product version to 5.0.4.1
[LibreOffice.git] / include / unotools / searchopt.hxx
bloba34e4490b56f6822f47a4b456b8185ac67cfbe1a
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 SvtSearchOptions( const SvtSearchOptions & ) SAL_DELETED_FUNCTION;
32 SvtSearchOptions & operator = ( const SvtSearchOptions & ) SAL_DELETED_FUNCTION;
34 public:
35 SvtSearchOptions();
36 ~SvtSearchOptions();
38 void Commit();
40 sal_Int32 GetTransliterationFlags() const;
42 // General Options
44 bool IsWholeWordsOnly() const;
45 bool IsBackwards() const;
46 bool IsUseRegularExpression() const;
47 bool IsSimilaritySearch() const;
48 bool IsUseAsianOptions() const;
49 bool IsMatchCase() const; // also Japanese search option
50 bool IsNotes() const;
52 void SetWholeWordsOnly( bool bVal );
53 void SetBackwards( bool bVal );
54 void SetUseRegularExpression( bool bVal );
55 void SetSearchForStyles( bool bVal );
56 void SetSimilaritySearch( bool bVal );
57 void SetUseAsianOptions( bool bVal );
58 void SetMatchCase( bool bVal ); // also Japanese search option
59 void SetNotes( bool bVal);
61 // Japanese search options
63 bool IsMatchFullHalfWidthForms() const;
64 bool IsMatchHiraganaKatakana() const;
65 bool IsMatchContractions() const;
66 bool IsMatchMinusDashChoon() const;
67 bool IsMatchRepeatCharMarks() const;
68 bool IsMatchVariantFormKanji() const;
69 bool IsMatchOldKanaForms() const;
70 bool IsMatchDiziDuzu() const;
71 bool IsMatchBavaHafa() const;
72 bool IsMatchTsithichiDhizi() const;
73 bool IsMatchHyuiyuByuvyu() const;
74 bool IsMatchSesheZeje() const;
75 bool IsMatchIaiya() const;
76 bool IsMatchKiku() const;
77 bool IsIgnorePunctuation() const;
78 bool IsIgnoreWhitespace() const;
79 bool IsIgnoreProlongedSoundMark() const;
80 bool IsIgnoreMiddleDot() const;
81 bool IsIgnoreDiacritics_CTL() const;
82 bool IsIgnoreKashida_CTL() const;
84 void SetMatchFullHalfWidthForms( bool bVal );
85 void SetMatchHiraganaKatakana( bool bVal );
86 void SetMatchContractions( bool bVal );
87 void SetMatchMinusDashChoon( bool bVal );
88 void SetMatchRepeatCharMarks( bool bVal );
89 void SetMatchVariantFormKanji( bool bVal );
90 void SetMatchOldKanaForms( bool bVal );
91 void SetMatchDiziDuzu( bool bVal );
92 void SetMatchBavaHafa( bool bVal );
93 void SetMatchTsithichiDhizi( bool bVal );
94 void SetMatchHyuiyuByuvyu( bool bVal );
95 void SetMatchSesheZeje( bool bVal );
96 void SetMatchIaiya( bool bVal );
97 void SetMatchKiku( bool bVal );
98 void SetIgnorePunctuation( bool bVal );
99 void SetIgnoreWhitespace( bool bVal );
100 void SetIgnoreProlongedSoundMark( bool bVal );
101 void SetIgnoreMiddleDot( bool bVal );
102 void SetIgnoreDiacritics_CTL( bool bVal );
103 void SetIgnoreKashida_CTL( bool bVal );
106 #endif
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */