1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _SVX_OPTJSEARCH_HXX_ 25 #define _SVX_OPTJSEARCH_HXX_ 26 27 #include <vcl/fixed.hxx> 28 #ifndef _SV_BUTTON_HXX 29 #include <vcl/button.hxx> 30 #endif 31 #include <sfx2/tabdlg.hxx> 32 33 class Window; 34 class SfxItemSet; 35 36 ////////////////////////////////////////////////////////////////////// 37 38 class SvxJSearchOptionsPage : public SfxTabPage 39 { 40 private: 41 FixedLine aTreatAsEqual; 42 CheckBox aMatchCase; 43 CheckBox aMatchFullHalfWidth; 44 CheckBox aMatchHiraganaKatakana; 45 CheckBox aMatchContractions; 46 CheckBox aMatchMinusDashChoon; 47 CheckBox aMatchRepeatCharMarks; 48 CheckBox aMatchVariantFormKanji; 49 CheckBox aMatchOldKanaForms; 50 CheckBox aMatchDiziDuzu; 51 CheckBox aMatchBavaHafa; 52 CheckBox aMatchTsithichiDhizi; 53 CheckBox aMatchHyuiyuByuvyu; 54 CheckBox aMatchSesheZeje; 55 CheckBox aMatchIaiya; 56 CheckBox aMatchKiku; 57 CheckBox aMatchProlongedSoundMark; 58 FixedLine aIgnore; 59 CheckBox aIgnorePunctuation; 60 CheckBox aIgnoreWhitespace; 61 CheckBox aIgnoreMiddleDot; 62 63 sal_Int32 nTransliterationFlags; 64 sal_Bool bSaveOptions; 65 66 sal_Int32 GetTransliterationFlags_Impl(); 67 68 protected: 69 SvxJSearchOptionsPage( Window* pParent, const SfxItemSet& rSet ); 70 71 public: 72 ~SvxJSearchOptionsPage(); 73 74 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rSet ); 75 76 virtual void Reset( const SfxItemSet& rSet ); 77 virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 78 IsSaveOptions() const79 sal_Bool IsSaveOptions() const { return bSaveOptions; } EnableSaveOptions(sal_Bool bVal)80 void EnableSaveOptions( sal_Bool bVal ) { bSaveOptions = bVal; } 81 GetTransliterationFlags() const82 sal_Int32 GetTransliterationFlags() const { return nTransliterationFlags; } 83 void SetTransliterationFlags( sal_Int32 nSettings ); 84 }; 85 86 ////////////////////////////////////////////////////////////////////// 87 88 #endif 89 90