xref: /trunk/main/cui/source/inc/srchxtra.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 #ifndef _SVX_SRCHXTRA_HXX
28 #define _SVX_SRCHXTRA_HXX
29 
30 // include ---------------------------------------------------------------
31 
32 #include <vcl/field.hxx>
33 #include <svtools/ctrltool.hxx>
34 #include <sfx2/tabdlg.hxx>
35 
36 #include <svx/checklbx.hxx>
37 #include <svx/srchdlg.hxx>
38 
39 // class SvxSearchFormatDialog -------------------------------------------
40 
41 class SvxSearchFormatDialog : public SfxTabDialog
42 {
43 public:
44     SvxSearchFormatDialog( Window* pParent, const SfxItemSet& rSet );
45     ~SvxSearchFormatDialog();
46 
47 protected:
48     virtual void    PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
49 
50 private:
51     FontList*       pFontList;
52 };
53 
54 // class SvxSearchFormatDialog -------------------------------------------
55 
56 class SvxSearchAttributeDialog : public ModalDialog
57 {
58 public:
59     SvxSearchAttributeDialog( Window* pParent, SearchAttrItemList& rLst,
60                               const sal_uInt16* pWhRanges );
61 
62 private:
63     FixedText           aAttrFL;
64     SvxCheckListBox     aAttrLB;
65 
66     OKButton            aOKBtn;
67     CancelButton        aEscBtn;
68     HelpButton          aHelpBtn;
69 
70     SearchAttrItemList& rList;
71 
72     DECL_LINK( OKHdl, Button * );
73 };
74 
75 // class SvxSearchSimilarityDialog ---------------------------------------
76 
77 class SvxSearchSimilarityDialog : public ModalDialog
78 {
79 private:
80     FixedLine           aFixedLine;
81     FixedText           aOtherTxt;
82     NumericField        aOtherFld;
83     FixedText           aLongerTxt;
84     NumericField        aLongerFld;
85     FixedText           aShorterTxt;
86     NumericField        aShorterFld;
87     CheckBox            aRelaxBox;
88 
89     OKButton            aOKBtn;
90     CancelButton        aEscBtn;
91     HelpButton          aHelpBtn;
92 
93 public:
94     SvxSearchSimilarityDialog(  Window* pParent,
95                                 sal_Bool bRelax,
96                                 sal_uInt16 nOther,
97                                 sal_uInt16 nShorter,
98                                 sal_uInt16 nLonger );
99 
100     sal_uInt16  GetOther()      { return (sal_uInt16)aOtherFld.GetValue(); }
101     sal_uInt16  GetShorter()    { return (sal_uInt16)aShorterFld.GetValue(); }
102     sal_uInt16  GetLonger()     { return (sal_uInt16)aLongerFld.GetValue(); }
103     sal_Bool    IsRelaxed()     { return aRelaxBox.IsChecked(); }
104 };
105 
106 
107 #endif
108 
109