xref: /aoo41x/main/cui/source/inc/srchxtra.hxx (revision c4eee24d)
1*c4eee24dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*c4eee24dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*c4eee24dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*c4eee24dSAndrew Rist  * distributed with this work for additional information
6*c4eee24dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*c4eee24dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*c4eee24dSAndrew Rist  * "License"); you may not use this file except in compliance
9*c4eee24dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*c4eee24dSAndrew Rist  *
11*c4eee24dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*c4eee24dSAndrew Rist  *
13*c4eee24dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*c4eee24dSAndrew Rist  * software distributed under the License is distributed on an
15*c4eee24dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c4eee24dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*c4eee24dSAndrew Rist  * specific language governing permissions and limitations
18*c4eee24dSAndrew Rist  * under the License.
19*c4eee24dSAndrew Rist  *
20*c4eee24dSAndrew Rist  *************************************************************/
21*c4eee24dSAndrew Rist 
22*c4eee24dSAndrew Rist 
23cdf0e10cSrcweir #ifndef _SVX_SRCHXTRA_HXX
24cdf0e10cSrcweir #define _SVX_SRCHXTRA_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir // include ---------------------------------------------------------------
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <vcl/field.hxx>
29cdf0e10cSrcweir #include <svtools/ctrltool.hxx>
30cdf0e10cSrcweir #include <sfx2/tabdlg.hxx>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir #include <svx/checklbx.hxx>
33cdf0e10cSrcweir #include <svx/srchdlg.hxx>
34cdf0e10cSrcweir 
35cdf0e10cSrcweir // class SvxSearchFormatDialog -------------------------------------------
36cdf0e10cSrcweir 
37cdf0e10cSrcweir class SvxSearchFormatDialog : public SfxTabDialog
38cdf0e10cSrcweir {
39cdf0e10cSrcweir public:
40cdf0e10cSrcweir 	SvxSearchFormatDialog( Window* pParent, const SfxItemSet& rSet );
41cdf0e10cSrcweir 	~SvxSearchFormatDialog();
42cdf0e10cSrcweir 
43cdf0e10cSrcweir protected:
44cdf0e10cSrcweir 	virtual void 	PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
45cdf0e10cSrcweir 
46cdf0e10cSrcweir private:
47cdf0e10cSrcweir 	FontList*		pFontList;
48cdf0e10cSrcweir };
49cdf0e10cSrcweir 
50cdf0e10cSrcweir // class SvxSearchFormatDialog -------------------------------------------
51cdf0e10cSrcweir 
52cdf0e10cSrcweir class SvxSearchAttributeDialog : public ModalDialog
53cdf0e10cSrcweir {
54cdf0e10cSrcweir public:
55cdf0e10cSrcweir 	SvxSearchAttributeDialog( Window* pParent, SearchAttrItemList& rLst,
56cdf0e10cSrcweir 							  const sal_uInt16* pWhRanges );
57cdf0e10cSrcweir 
58cdf0e10cSrcweir private:
59cdf0e10cSrcweir     FixedText           aAttrFL;
60cdf0e10cSrcweir 	SvxCheckListBox		aAttrLB;
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 	OKButton			aOKBtn;
63cdf0e10cSrcweir 	CancelButton		aEscBtn;
64cdf0e10cSrcweir 	HelpButton			aHelpBtn;
65cdf0e10cSrcweir 
66cdf0e10cSrcweir 	SearchAttrItemList&	rList;
67cdf0e10cSrcweir 
68cdf0e10cSrcweir 	DECL_LINK( OKHdl, Button * );
69cdf0e10cSrcweir };
70cdf0e10cSrcweir 
71cdf0e10cSrcweir // class SvxSearchSimilarityDialog ---------------------------------------
72cdf0e10cSrcweir 
73cdf0e10cSrcweir class SvxSearchSimilarityDialog : public ModalDialog
74cdf0e10cSrcweir {
75cdf0e10cSrcweir private:
76cdf0e10cSrcweir     FixedLine           aFixedLine;
77cdf0e10cSrcweir 	FixedText			aOtherTxt;
78cdf0e10cSrcweir 	NumericField		aOtherFld;
79cdf0e10cSrcweir 	FixedText			aLongerTxt;
80cdf0e10cSrcweir 	NumericField		aLongerFld;
81cdf0e10cSrcweir 	FixedText			aShorterTxt;
82cdf0e10cSrcweir 	NumericField		aShorterFld;
83cdf0e10cSrcweir 	CheckBox			aRelaxBox;
84cdf0e10cSrcweir 
85cdf0e10cSrcweir 	OKButton			aOKBtn;
86cdf0e10cSrcweir 	CancelButton		aEscBtn;
87cdf0e10cSrcweir 	HelpButton			aHelpBtn;
88cdf0e10cSrcweir 
89cdf0e10cSrcweir public:
90cdf0e10cSrcweir 	SvxSearchSimilarityDialog( 	Window* pParent,
91cdf0e10cSrcweir 								sal_Bool bRelax,
92cdf0e10cSrcweir 								sal_uInt16 nOther,
93cdf0e10cSrcweir 								sal_uInt16 nShorter,
94cdf0e10cSrcweir 								sal_uInt16 nLonger );
95cdf0e10cSrcweir 
GetOther()96cdf0e10cSrcweir 	sal_uInt16	GetOther() 		{ return (sal_uInt16)aOtherFld.GetValue(); }
GetShorter()97cdf0e10cSrcweir 	sal_uInt16	GetShorter() 	{ return (sal_uInt16)aShorterFld.GetValue(); }
GetLonger()98cdf0e10cSrcweir 	sal_uInt16	GetLonger()		{ return (sal_uInt16)aLongerFld.GetValue(); }
IsRelaxed()99cdf0e10cSrcweir 	sal_Bool 	IsRelaxed()		{ return aRelaxBox.IsChecked(); }
100cdf0e10cSrcweir };
101cdf0e10cSrcweir 
102cdf0e10cSrcweir 
103cdf0e10cSrcweir #endif
104cdf0e10cSrcweir 
105