1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 _SVX_OPTJSEARCH_HXX_
21 #define _SVX_OPTJSEARCH_HXX_
23 #include <vcl/fixed.hxx>
24 #include <vcl/button.hxx>
25 #include <sfx2/tabdlg.hxx>
30 //////////////////////////////////////////////////////////////////////
32 class SvxJSearchOptionsPage
: public SfxTabPage
35 FixedLine aTreatAsEqual
;
37 CheckBox aMatchFullHalfWidth
;
38 CheckBox aMatchHiraganaKatakana
;
39 CheckBox aMatchContractions
;
40 CheckBox aMatchMinusDashChoon
;
41 CheckBox aMatchRepeatCharMarks
;
42 CheckBox aMatchVariantFormKanji
;
43 CheckBox aMatchOldKanaForms
;
44 CheckBox aMatchDiziDuzu
;
45 CheckBox aMatchBavaHafa
;
46 CheckBox aMatchTsithichiDhizi
;
47 CheckBox aMatchHyuiyuByuvyu
;
48 CheckBox aMatchSesheZeje
;
51 CheckBox aMatchProlongedSoundMark
;
53 CheckBox aIgnorePunctuation
;
54 CheckBox aIgnoreWhitespace
;
55 CheckBox aIgnoreMiddleDot
;
57 sal_Int32 nTransliterationFlags
;
58 sal_Bool bSaveOptions
;
60 sal_Int32
GetTransliterationFlags_Impl();
63 SvxJSearchOptionsPage( Window
* pParent
, const SfxItemSet
& rSet
);
66 ~SvxJSearchOptionsPage();
68 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rSet
);
70 virtual void Reset( const SfxItemSet
& rSet
);
71 virtual sal_Bool
FillItemSet( SfxItemSet
& rSet
);
73 sal_Bool
IsSaveOptions() const { return bSaveOptions
; }
74 void EnableSaveOptions( sal_Bool bVal
) { bSaveOptions
= bVal
; }
76 sal_Int32
GetTransliterationFlags() const { return nTransliterationFlags
; }
77 void SetTransliterationFlags( sal_Int32 nSettings
);
80 //////////////////////////////////////////////////////////////////////
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */