1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: optjsearch.hxx,v $
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>
38 #include <sfx2/tabdlg.hxx>
43 //////////////////////////////////////////////////////////////////////
45 class SvxJSearchOptionsPage
: public SfxTabPage
48 FixedLine aTreatAsEqual
;
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
;
64 CheckBox aMatchProlongedSoundMark
;
66 CheckBox aIgnorePunctuation
;
67 CheckBox aIgnoreWhitespace
;
68 CheckBox aIgnoreMiddleDot
;
70 INT32 nTransliterationFlags
;
73 INT32
GetTransliterationFlags_Impl();
76 SvxJSearchOptionsPage( Window
* pParent
, const SfxItemSet
& rSet
);
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 //////////////////////////////////////////////////////////////////////