Update ooo320-m1
[ooovba.git] / svx / source / cui / optjsearch.hxx
blobf7b628692d8917c4ae86594d1e894f2451954c22
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: optjsearch.hxx,v $
10 * $Revision: 1.4 $
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 _SVX_OPTJSEARCH_HXX_
32 #define _SVX_OPTJSEARCH_HXX_
34 #include <vcl/fixed.hxx>
35 #ifndef _SV_BUTTON_HXX
36 #include <vcl/button.hxx>
37 #endif
38 #include <sfx2/tabdlg.hxx>
40 class Window;
41 class SfxItemSet;
43 //////////////////////////////////////////////////////////////////////
45 class SvxJSearchOptionsPage : public SfxTabPage
47 private:
48 FixedLine aTreatAsEqual;
49 CheckBox aMatchCase;
50 CheckBox aMatchFullHalfWidth;
51 CheckBox aMatchHiraganaKatakana;
52 CheckBox aMatchContractions;
53 CheckBox aMatchMinusDashChoon;
54 CheckBox aMatchRepeatCharMarks;
55 CheckBox aMatchVariantFormKanji;
56 CheckBox aMatchOldKanaForms;
57 CheckBox aMatchDiziDuzu;
58 CheckBox aMatchBavaHafa;
59 CheckBox aMatchTsithichiDhizi;
60 CheckBox aMatchHyuiyuByuvyu;
61 CheckBox aMatchSesheZeje;
62 CheckBox aMatchIaiya;
63 CheckBox aMatchKiku;
64 CheckBox aMatchProlongedSoundMark;
65 FixedLine aIgnore;
66 CheckBox aIgnorePunctuation;
67 CheckBox aIgnoreWhitespace;
68 CheckBox aIgnoreMiddleDot;
70 INT32 nTransliterationFlags;
71 BOOL bSaveOptions;
73 INT32 GetTransliterationFlags_Impl();
75 protected:
76 SvxJSearchOptionsPage( Window* pParent, const SfxItemSet& rSet );
78 public:
79 ~SvxJSearchOptionsPage();
81 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
83 virtual void Reset( const SfxItemSet& rSet );
84 virtual BOOL FillItemSet( SfxItemSet& rSet );
86 BOOL IsSaveOptions() const { return bSaveOptions; }
87 void EnableSaveOptions( BOOL bVal ) { bSaveOptions = bVal; }
89 INT32 GetTransliterationFlags() const { return nTransliterationFlags; }
90 void SetTransliterationFlags( INT32 nSettings );
93 //////////////////////////////////////////////////////////////////////
95 #endif