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 INCLUDED_CUI_SOURCE_OPTIONS_OPTJSEARCH_HXX
21 : #define INCLUDED_CUI_SOURCE_OPTIONS_OPTJSEARCH_HXX
22 :
23 : #include <vcl/fixed.hxx>
24 : #include <vcl/button.hxx>
25 : #include <sfx2/tabdlg.hxx>
26 :
27 : namespace vcl { class Window; }
28 : class SfxItemSet;
29 :
30 :
31 :
32 : class SvxJSearchOptionsPage : public SfxTabPage
33 : {
34 : private:
35 : CheckBox* m_pMatchCase;
36 : CheckBox* m_pMatchFullHalfWidth;
37 : CheckBox* m_pMatchHiraganaKatakana;
38 : CheckBox* m_pMatchContractions;
39 : CheckBox* m_pMatchMinusDashChoon;
40 : CheckBox* m_pMatchRepeatCharMarks;
41 : CheckBox* m_pMatchVariantFormKanji;
42 : CheckBox* m_pMatchOldKanaForms;
43 : CheckBox* m_pMatchDiziDuzu;
44 : CheckBox* m_pMatchBavaHafa;
45 : CheckBox* m_pMatchTsithichiDhizi;
46 : CheckBox* m_pMatchHyuiyuByuvyu;
47 : CheckBox* m_pMatchSesheZeje;
48 : CheckBox* m_pMatchIaiya;
49 : CheckBox* m_pMatchKiku;
50 : CheckBox* m_pMatchProlongedSoundMark;
51 :
52 : CheckBox* m_pIgnorePunctuation;
53 : CheckBox* m_pIgnoreWhitespace;
54 : CheckBox* m_pIgnoreMiddleDot;
55 :
56 : sal_Int32 nTransliterationFlags;
57 : bool bSaveOptions;
58 :
59 : sal_Int32 GetTransliterationFlags_Impl();
60 :
61 : protected:
62 : SvxJSearchOptionsPage( vcl::Window* pParent, const SfxItemSet& rSet );
63 :
64 : public:
65 : virtual ~SvxJSearchOptionsPage();
66 :
67 : static SfxTabPage* Create( vcl::Window* pParent, const SfxItemSet* rSet );
68 :
69 : virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
70 : virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
71 :
72 0 : bool IsSaveOptions() const { return bSaveOptions; }
73 0 : void EnableSaveOptions( bool bVal ) { bSaveOptions = bVal; }
74 :
75 0 : sal_Int32 GetTransliterationFlags() const { return nTransliterationFlags; }
76 : void SetTransliterationFlags( sal_Int32 nSettings );
77 : };
78 :
79 :
80 :
81 : #endif
82 :
83 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|