LibreOffice Module unotools (master) 1
searchopt.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_UNOTOOLS_SEARCHOPT_HXX
21#define INCLUDED_UNOTOOLS_SEARCHOPT_HXX
22
24#include <memory>
25
27enum class TransliterationFlags;
28
30{
31 std::unique_ptr<SvtSearchOptions_Impl> pImpl;
32
34 SvtSearchOptions & operator = ( const SvtSearchOptions & ) = delete;
35
36public:
39
40 void Commit();
41
43
44 // General Options
45
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;
55
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);
66
67 // Japanese search options
68
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;
89
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 );
110};
111
112#endif
113
114/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvtSearchOptions(const SvtSearchOptions &)=delete
std::unique_ptr< SvtSearchOptions_Impl > pImpl
Definition: searchopt.hxx:31
virtual TransliterationFlags GetTransliterationFlags() const override
TransliterationFlags
#define UNOTOOLS_DLLPUBLIC