xref: /aoo41x/main/sc/source/ui/inc/foptmgr.hxx (revision 38d50f7b)
1*38d50f7bSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*38d50f7bSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*38d50f7bSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*38d50f7bSAndrew Rist  * distributed with this work for additional information
6*38d50f7bSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*38d50f7bSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*38d50f7bSAndrew Rist  * "License"); you may not use this file except in compliance
9*38d50f7bSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*38d50f7bSAndrew Rist  *
11*38d50f7bSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*38d50f7bSAndrew Rist  *
13*38d50f7bSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*38d50f7bSAndrew Rist  * software distributed under the License is distributed on an
15*38d50f7bSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*38d50f7bSAndrew Rist  * KIND, either express or implied.  See the License for the
17*38d50f7bSAndrew Rist  * specific language governing permissions and limitations
18*38d50f7bSAndrew Rist  * under the License.
19*38d50f7bSAndrew Rist  *
20*38d50f7bSAndrew Rist  *************************************************************/
21*38d50f7bSAndrew Rist 
22*38d50f7bSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SC_FOPTMGR_HXX
25cdf0e10cSrcweir #define SC_FOPTMGR_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #ifndef _FIXED_HXX //autogen
28cdf0e10cSrcweir #include <vcl/fixed.hxx>
29cdf0e10cSrcweir #endif
30cdf0e10cSrcweir #ifndef _EDIT_HXX //autogen
31cdf0e10cSrcweir #include <vcl/edit.hxx>
32cdf0e10cSrcweir #endif
33cdf0e10cSrcweir #ifndef _LSTBOX_HXX //autogen
34cdf0e10cSrcweir #include <vcl/lstbox.hxx>
35cdf0e10cSrcweir #endif
36cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen
37cdf0e10cSrcweir #include <vcl/button.hxx>
38cdf0e10cSrcweir #endif
39cdf0e10cSrcweir 
40cdf0e10cSrcweir //----------------------------------------------------------------------------
41cdf0e10cSrcweir 
42cdf0e10cSrcweir class FixedInfo;
43cdf0e10cSrcweir namespace formula
44cdf0e10cSrcweir {
45cdf0e10cSrcweir     class RefButton;
46cdf0e10cSrcweir }
47cdf0e10cSrcweir class MoreButton;
48cdf0e10cSrcweir class Dialog;
49cdf0e10cSrcweir struct ScQueryParam;
50cdf0e10cSrcweir class ScDocument;
51cdf0e10cSrcweir class ScViewData;
52cdf0e10cSrcweir 
53cdf0e10cSrcweir //----------------------------------------------------------------------------
54cdf0e10cSrcweir 
55cdf0e10cSrcweir class ScFilterOptionsMgr
56cdf0e10cSrcweir {
57cdf0e10cSrcweir public:
58cdf0e10cSrcweir 			ScFilterOptionsMgr( Dialog*				ptrDlg,
59cdf0e10cSrcweir 								ScViewData*			ptrViewData,
60cdf0e10cSrcweir 								const ScQueryParam&	refQueryData,
61cdf0e10cSrcweir 								MoreButton&			refBtnMore,
62cdf0e10cSrcweir 								CheckBox&			refBtnCase,
63cdf0e10cSrcweir 								CheckBox&			refBtnRegExp,
64cdf0e10cSrcweir 								CheckBox&			refBtnHeader,
65cdf0e10cSrcweir 								CheckBox&			refBtnUnique,
66cdf0e10cSrcweir 								CheckBox&			refBtnCopyResult,
67cdf0e10cSrcweir 								CheckBox&			refBtnDestPers,
68cdf0e10cSrcweir 								ListBox&			refLbCopyArea,
69cdf0e10cSrcweir 								Edit&				refEdCopyArea,
70cdf0e10cSrcweir 								formula::RefButton&		refRbCopyArea,
71cdf0e10cSrcweir 								FixedText&			refFtDbAreaLabel,
72cdf0e10cSrcweir 								FixedInfo&			refFtDbArea,
73cdf0e10cSrcweir                                 FixedLine&          refFlOptions,
74cdf0e10cSrcweir 								const String&		refStrNoName,
75cdf0e10cSrcweir 								const String&		refStrUndefined );
76cdf0e10cSrcweir 			~ScFilterOptionsMgr();
77cdf0e10cSrcweir 
78cdf0e10cSrcweir 	sal_Bool	VerifyPosStr ( const String& rPosStr ) const;
79cdf0e10cSrcweir 
80cdf0e10cSrcweir private:
81cdf0e10cSrcweir 	Dialog*			pDlg;
82cdf0e10cSrcweir 	ScViewData*		pViewData;
83cdf0e10cSrcweir 	ScDocument*		pDoc;
84cdf0e10cSrcweir 
85cdf0e10cSrcweir 	MoreButton&		rBtnMore;
86cdf0e10cSrcweir 	CheckBox&		rBtnCase;
87cdf0e10cSrcweir 	CheckBox&		rBtnRegExp;
88cdf0e10cSrcweir 	CheckBox&		rBtnHeader;
89cdf0e10cSrcweir 	CheckBox&		rBtnUnique;
90cdf0e10cSrcweir 	CheckBox&		rBtnCopyResult;
91cdf0e10cSrcweir 	CheckBox&		rBtnDestPers;
92cdf0e10cSrcweir 	ListBox&		rLbCopyPos;
93cdf0e10cSrcweir 	Edit&			rEdCopyPos;
94cdf0e10cSrcweir 	formula::RefButton&	rRbCopyPos;
95cdf0e10cSrcweir 	FixedText&		rFtDbAreaLabel;
96cdf0e10cSrcweir 	FixedInfo&		rFtDbArea;
97cdf0e10cSrcweir     FixedLine&      rFlOptions;
98cdf0e10cSrcweir 
99cdf0e10cSrcweir 	const String&	rStrNoName;
100cdf0e10cSrcweir 	const String&	rStrUndefined;
101cdf0e10cSrcweir 
102cdf0e10cSrcweir 	const ScQueryParam&	rQueryData;
103cdf0e10cSrcweir 
104cdf0e10cSrcweir #ifdef _FOPTMGR_CXX
105cdf0e10cSrcweir private:
106cdf0e10cSrcweir 	void Init();
107cdf0e10cSrcweir 
108cdf0e10cSrcweir 	// Handler:
109cdf0e10cSrcweir 	DECL_LINK( EdPosModifyHdl,		Edit* );
110cdf0e10cSrcweir 	DECL_LINK( LbPosSelHdl,			ListBox* );
111cdf0e10cSrcweir 	DECL_LINK( BtnCopyResultHdl,	CheckBox* );
112cdf0e10cSrcweir #endif
113cdf0e10cSrcweir };
114cdf0e10cSrcweir 
115cdf0e10cSrcweir 
116cdf0e10cSrcweir 
117cdf0e10cSrcweir #endif // SC_FOPTMGR_HXX
118