Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / cui / source / options / optjsearch.hxx
blob0daa6a2d56188816a2d705a9a0840aff5a6e4fad
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
27 class Window;
28 class SfxItemSet;
30 //////////////////////////////////////////////////////////////////////
32 class SvxJSearchOptionsPage : public SfxTabPage
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;
57 sal_Int32 nTransliterationFlags;
58 sal_Bool bSaveOptions;
60 sal_Int32 GetTransliterationFlags_Impl();
62 protected:
63 SvxJSearchOptionsPage( Window* pParent, const SfxItemSet& rSet );
65 public:
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 //////////////////////////////////////////////////////////////////////
82 #endif
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */