1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: srchxtra.hxx,v $
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
47 SvxSearchFormatDialog( Window
* pParent
, const SfxItemSet
& rSet
);
48 ~SvxSearchFormatDialog();
51 virtual void PageCreated( USHORT nId
, SfxTabPage
&rPage
);
57 // class SvxSearchFormatDialog -------------------------------------------
59 class SvxSearchAttributeDialog
: public ModalDialog
62 SvxSearchAttributeDialog( Window
* pParent
, SearchAttrItemList
& rLst
,
63 const USHORT
* pWhRanges
);
67 SvxCheckListBox aAttrLB
;
73 SearchAttrItemList
& rList
;
75 DECL_LINK( OKHdl
, Button
* );
78 // class SvxSearchSimilarityDialog ---------------------------------------
80 class SvxSearchSimilarityDialog
: public ModalDialog
85 NumericField aOtherFld
;
87 NumericField aLongerFld
;
88 FixedText aShorterTxt
;
89 NumericField aShorterFld
;
97 SvxSearchSimilarityDialog( Window
* pParent
,
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(); }