Line data Source code
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 _SVX_OPTJSEARCH_HXX_
21 : #define _SVX_OPTJSEARCH_HXX_
22 :
23 : #include <vcl/fixed.hxx>
24 : #include <vcl/button.hxx>
25 : #include <sfx2/tabdlg.hxx>
26 :
27 : class Window;
28 : class SfxItemSet;
29 :
30 : //////////////////////////////////////////////////////////////////////
31 :
32 : class SvxJSearchOptionsPage : public SfxTabPage
33 : {
34 : private:
35 : FixedLine aTreatAsEqual;
36 : CheckBox aMatchCase;
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;
49 : CheckBox aMatchIaiya;
50 : CheckBox aMatchKiku;
51 : CheckBox aMatchProlongedSoundMark;
52 : FixedLine aIgnore;
53 : CheckBox aIgnorePunctuation;
54 : CheckBox aIgnoreWhitespace;
55 : CheckBox aIgnoreMiddleDot;
56 :
57 : sal_Int32 nTransliterationFlags;
58 : sal_Bool bSaveOptions;
59 :
60 : sal_Int32 GetTransliterationFlags_Impl();
61 :
62 : protected:
63 : SvxJSearchOptionsPage( Window* pParent, const SfxItemSet& rSet );
64 :
65 : public:
66 : ~SvxJSearchOptionsPage();
67 :
68 : static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet );
69 :
70 : virtual void Reset( const SfxItemSet& rSet );
71 : virtual sal_Bool FillItemSet( SfxItemSet& rSet );
72 :
73 0 : sal_Bool IsSaveOptions() const { return bSaveOptions; }
74 0 : void EnableSaveOptions( sal_Bool bVal ) { bSaveOptions = bVal; }
75 :
76 0 : sal_Int32 GetTransliterationFlags() const { return nTransliterationFlags; }
77 : void SetTransliterationFlags( sal_Int32 nSettings );
78 : };
79 :
80 : //////////////////////////////////////////////////////////////////////
81 :
82 : #endif
83 :
84 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|