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 #ifndef _SVX_SRCHXTRA_HXX 24 #define _SVX_SRCHXTRA_HXX 25 26 // include --------------------------------------------------------------- 27 28 #include <vcl/field.hxx> 29 #include <svtools/ctrltool.hxx> 30 #include <sfx2/tabdlg.hxx> 31 32 #include <svx/checklbx.hxx> 33 #include <svx/srchdlg.hxx> 34 35 // class SvxSearchFormatDialog ------------------------------------------- 36 37 class SvxSearchFormatDialog : public SfxTabDialog 38 { 39 public: 40 SvxSearchFormatDialog( Window* pParent, const SfxItemSet& rSet ); 41 ~SvxSearchFormatDialog(); 42 43 protected: 44 virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); 45 46 private: 47 FontList* pFontList; 48 }; 49 50 // class SvxSearchFormatDialog ------------------------------------------- 51 52 class SvxSearchAttributeDialog : public ModalDialog 53 { 54 public: 55 SvxSearchAttributeDialog( Window* pParent, SearchAttrItemList& rLst, 56 const sal_uInt16* pWhRanges ); 57 58 private: 59 FixedText aAttrFL; 60 SvxCheckListBox aAttrLB; 61 62 OKButton aOKBtn; 63 CancelButton aEscBtn; 64 HelpButton aHelpBtn; 65 66 SearchAttrItemList& rList; 67 68 DECL_LINK( OKHdl, Button * ); 69 }; 70 71 // class SvxSearchSimilarityDialog --------------------------------------- 72 73 class SvxSearchSimilarityDialog : public ModalDialog 74 { 75 private: 76 FixedLine aFixedLine; 77 FixedText aOtherTxt; 78 NumericField aOtherFld; 79 FixedText aLongerTxt; 80 NumericField aLongerFld; 81 FixedText aShorterTxt; 82 NumericField aShorterFld; 83 CheckBox aRelaxBox; 84 85 OKButton aOKBtn; 86 CancelButton aEscBtn; 87 HelpButton aHelpBtn; 88 89 public: 90 SvxSearchSimilarityDialog( Window* pParent, 91 sal_Bool bRelax, 92 sal_uInt16 nOther, 93 sal_uInt16 nShorter, 94 sal_uInt16 nLonger ); 95 GetOther()96 sal_uInt16 GetOther() { return (sal_uInt16)aOtherFld.GetValue(); } GetShorter()97 sal_uInt16 GetShorter() { return (sal_uInt16)aShorterFld.GetValue(); } GetLonger()98 sal_uInt16 GetLonger() { return (sal_uInt16)aLongerFld.GetValue(); } IsRelaxed()99 sal_Bool IsRelaxed() { return aRelaxBox.IsChecked(); } 100 }; 101 102 103 #endif 104 105