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 : VclPtr<CheckBox> m_pMatchCase;
36 : VclPtr<CheckBox> m_pMatchFullHalfWidth;
37 : VclPtr<CheckBox> m_pMatchHiraganaKatakana;
38 : VclPtr<CheckBox> m_pMatchContractions;
39 : VclPtr<CheckBox> m_pMatchMinusDashChoon;
40 : VclPtr<CheckBox> m_pMatchRepeatCharMarks;
41 : VclPtr<CheckBox> m_pMatchVariantFormKanji;
42 : VclPtr<CheckBox> m_pMatchOldKanaForms;
43 : VclPtr<CheckBox> m_pMatchDiziDuzu;
44 : VclPtr<CheckBox> m_pMatchBavaHafa;
45 : VclPtr<CheckBox> m_pMatchTsithichiDhizi;
46 : VclPtr<CheckBox> m_pMatchHyuiyuByuvyu;
47 : VclPtr<CheckBox> m_pMatchSesheZeje;
48 : VclPtr<CheckBox> m_pMatchIaiya;
49 : VclPtr<CheckBox> m_pMatchKiku;
50 : VclPtr<CheckBox> m_pMatchProlongedSoundMark;
51 :
52 : VclPtr<CheckBox> m_pIgnorePunctuation;
53 : VclPtr<CheckBox> m_pIgnoreWhitespace;
54 : VclPtr<CheckBox> m_pIgnoreMiddleDot;
55 :
56 : sal_Int32 nTransliterationFlags;
57 : bool bSaveOptions;
58 :
59 : sal_Int32 GetTransliterationFlags_Impl();
60 :
61 : public:
62 : SvxJSearchOptionsPage( vcl::Window* pParent, const SfxItemSet& rSet );
63 : virtual ~SvxJSearchOptionsPage();
64 : virtual void dispose() SAL_OVERRIDE;
65 : static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet );
66 :
67 : virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
68 : virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
69 :
70 0 : bool IsSaveOptions() const { return bSaveOptions; }
71 0 : void EnableSaveOptions( bool bVal ) { bSaveOptions = bVal; }
72 :
73 0 : sal_Int32 GetTransliterationFlags() const { return nTransliterationFlags; }
74 : void SetTransliterationFlags( sal_Int32 nSettings );
75 : };
76 :
77 :
78 :
79 : #endif
80 :
81 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|