update dev300-m57
[ooovba.git] / svtools / inc / searchopt.hxx
blob7256a91816925b9aeed449929f9c427891764077
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: searchopt.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SVT_SEARCHOPT_HXX_
32 #define _SVT_SEARCHOPT_HXX_
34 #include "svtools/svldllapi.h"
35 #include "tools/solar.h"
37 class SvtSearchOptions_Impl;
39 class SVL_DLLPUBLIC SvtSearchOptions
41 SvtSearchOptions_Impl *pImpl;
43 // disallow copy-constructor and assignment-operator for now
44 SvtSearchOptions( const SvtSearchOptions & );
45 SvtSearchOptions & operator = ( const SvtSearchOptions & );
47 protected:
49 public:
50 SvtSearchOptions();
51 ~SvtSearchOptions();
53 INT32 GetTransliterationFlags() const;
56 // General Options
59 BOOL IsWholeWordsOnly() const;
60 BOOL IsBackwards() const;
61 BOOL IsUseRegularExpression() const;
62 BOOL IsSearchForStyles() const;
63 BOOL IsSimilaritySearch() const;
64 BOOL IsUseAsianOptions() const;
65 BOOL IsMatchCase() const; // also Japanese search option
66 BOOL IsNotes() const;
68 void SetWholeWordsOnly( BOOL bVal );
69 void SetBackwards( BOOL bVal );
70 void SetUseRegularExpression( BOOL bVal );
71 void SetSearchForStyles( BOOL bVal );
72 void SetSimilaritySearch( BOOL bVal );
73 void SetUseAsianOptions( BOOL bVal );
74 void SetMatchCase( BOOL bVal ); // also Japanese search option
75 void SetNotes( BOOL bVal);
78 // Japanese search options
81 BOOL IsMatchFullHalfWidthForms() const;
82 BOOL IsMatchHiraganaKatakana() const;
83 BOOL IsMatchContractions() const;
84 BOOL IsMatchMinusDashChoon() const;
85 BOOL IsMatchRepeatCharMarks() const;
86 BOOL IsMatchVariantFormKanji() const;
87 BOOL IsMatchOldKanaForms() const;
88 BOOL IsMatchDiziDuzu() const;
89 BOOL IsMatchBavaHafa() const;
90 BOOL IsMatchTsithichiDhizi() const;
91 BOOL IsMatchHyuiyuByuvyu() const;
92 BOOL IsMatchSesheZeje() const;
93 BOOL IsMatchIaiya() const;
94 BOOL IsMatchKiku() const;
95 BOOL IsIgnorePunctuation() const;
96 BOOL IsIgnoreWhitespace() const;
97 BOOL IsIgnoreProlongedSoundMark() const;
98 BOOL IsIgnoreMiddleDot() const;
100 void SetMatchFullHalfWidthForms( BOOL bVal );
101 void SetMatchHiraganaKatakana( BOOL bVal );
102 void SetMatchContractions( BOOL bVal );
103 void SetMatchMinusDashChoon( BOOL bVal );
104 void SetMatchRepeatCharMarks( BOOL bVal );
105 void SetMatchVariantFormKanji( BOOL bVal );
106 void SetMatchOldKanaForms( BOOL bVal );
107 void SetMatchDiziDuzu( BOOL bVal );
108 void SetMatchBavaHafa( BOOL bVal );
109 void SetMatchTsithichiDhizi( BOOL bVal );
110 void SetMatchHyuiyuByuvyu( BOOL bVal );
111 void SetMatchSesheZeje( BOOL bVal );
112 void SetMatchIaiya( BOOL bVal );
113 void SetMatchKiku( BOOL bVal );
114 void SetIgnorePunctuation( BOOL bVal );
115 void SetIgnoreWhitespace( BOOL bVal );
116 void SetIgnoreProlongedSoundMark( BOOL bVal );
117 void SetIgnoreMiddleDot( BOOL bVal );
121 #endif