Update ooo320-m1
[ooovba.git] / svx / source / cui / srchxtra.hxx
blobce6a500d68994be139869d678df7b34ee11068e0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: srchxtra.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_SRCHXTRA_HXX
31 #define _SVX_SRCHXTRA_HXX
33 // include ---------------------------------------------------------------
35 #include <vcl/field.hxx>
36 #include <svtools/ctrltool.hxx>
37 #include <sfx2/tabdlg.hxx>
39 #include <svx/checklbx.hxx>
40 #include "srchdlg.hxx"
42 // class SvxSearchFormatDialog -------------------------------------------
44 class SvxSearchFormatDialog : public SfxTabDialog
46 public:
47 SvxSearchFormatDialog( Window* pParent, const SfxItemSet& rSet );
48 ~SvxSearchFormatDialog();
50 protected:
51 virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
53 private:
54 FontList* pFontList;
57 // class SvxSearchFormatDialog -------------------------------------------
59 class SvxSearchAttributeDialog : public ModalDialog
61 public:
62 SvxSearchAttributeDialog( Window* pParent, SearchAttrItemList& rLst,
63 const USHORT* pWhRanges );
65 private:
66 FixedText aAttrFL;
67 SvxCheckListBox aAttrLB;
69 OKButton aOKBtn;
70 CancelButton aEscBtn;
71 HelpButton aHelpBtn;
73 SearchAttrItemList& rList;
75 DECL_LINK( OKHdl, Button * );
78 // class SvxSearchSimilarityDialog ---------------------------------------
80 class SvxSearchSimilarityDialog : public ModalDialog
82 private:
83 FixedLine aFixedLine;
84 FixedText aOtherTxt;
85 NumericField aOtherFld;
86 FixedText aLongerTxt;
87 NumericField aLongerFld;
88 FixedText aShorterTxt;
89 NumericField aShorterFld;
90 CheckBox aRelaxBox;
92 OKButton aOKBtn;
93 CancelButton aEscBtn;
94 HelpButton aHelpBtn;
96 public:
97 SvxSearchSimilarityDialog( Window* pParent,
98 BOOL bRelax,
99 USHORT nOther,
100 USHORT nShorter,
101 USHORT nLonger );
103 USHORT GetOther() { return (USHORT)aOtherFld.GetValue(); }
104 USHORT GetShorter() { return (USHORT)aShorterFld.GetValue(); }
105 USHORT GetLonger() { return (USHORT)aLongerFld.GetValue(); }
106 BOOL IsRelaxed() { return aRelaxBox.IsChecked(); }
110 #endif