xref: /aoo41x/main/sc/source/ui/inc/uiitems.hxx (revision cdf0e10c)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef SC_UIITEMS_HXX
29*cdf0e10cSrcweir #define SC_UIITEMS_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include "scdllapi.h"
32*cdf0e10cSrcweir #include "conditio.hxx"
33*cdf0e10cSrcweir #include "sortparam.hxx"
34*cdf0e10cSrcweir #include "queryparam.hxx"
35*cdf0e10cSrcweir #include "paramisc.hxx"
36*cdf0e10cSrcweir #include <svl/poolitem.hxx>
37*cdf0e10cSrcweir 
38*cdf0e10cSrcweir class ScEditEngineDefaulter;
39*cdf0e10cSrcweir class EditTextObject;
40*cdf0e10cSrcweir class ScViewData;
41*cdf0e10cSrcweir class ScDPSaveData;
42*cdf0e10cSrcweir 
43*cdf0e10cSrcweir // ---------------------------------------------------------------------------
44*cdf0e10cSrcweir 
45*cdf0e10cSrcweir //  Items
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir class ScInputStatusItem : public SfxPoolItem
48*cdf0e10cSrcweir {
49*cdf0e10cSrcweir 	ScAddress           aCursorPos;
50*cdf0e10cSrcweir 	ScAddress           aStartPos;
51*cdf0e10cSrcweir 	ScAddress           aEndPos;
52*cdf0e10cSrcweir 	String              aString;
53*cdf0e10cSrcweir 	EditTextObject*		pEditData;
54*cdf0e10cSrcweir 
55*cdf0e10cSrcweir public:
56*cdf0e10cSrcweir 							TYPEINFO();
57*cdf0e10cSrcweir //UNUSED2008-05     		ScInputStatusItem( sal_uInt16 nWhich,
58*cdf0e10cSrcweir //UNUSED2008-05     						   SCTAB nTab,
59*cdf0e10cSrcweir //UNUSED2008-05     						   SCCOL nCol, SCROW nRow,
60*cdf0e10cSrcweir //UNUSED2008-05     						   SCCOL nStartCol, SCROW nStartRow,
61*cdf0e10cSrcweir //UNUSED2008-05     						   SCCOL nEndCol,   SCROW nSEndRow,
62*cdf0e10cSrcweir //UNUSED2008-05     						   const String& rString,
63*cdf0e10cSrcweir //UNUSED2008-05     						   const EditTextObject* pData );
64*cdf0e10cSrcweir 
65*cdf0e10cSrcweir 							ScInputStatusItem( sal_uInt16 nWhich,
66*cdf0e10cSrcweir 											   const ScAddress& rCurPos,
67*cdf0e10cSrcweir 											   const ScAddress& rStartPos,
68*cdf0e10cSrcweir 											   const ScAddress& rEndPos,
69*cdf0e10cSrcweir 											   const String& rString,
70*cdf0e10cSrcweir 											   const EditTextObject* pData );
71*cdf0e10cSrcweir 							ScInputStatusItem( const ScInputStatusItem& rItem );
72*cdf0e10cSrcweir 							~ScInputStatusItem();
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir 	virtual String          GetValueText() const;
75*cdf0e10cSrcweir 
76*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
77*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
78*cdf0e10cSrcweir 
79*cdf0e10cSrcweir 	const ScAddress&        GetPos() const		{ return aCursorPos; }
80*cdf0e10cSrcweir 	const ScAddress&        GetStartPos() const { return aStartPos; }
81*cdf0e10cSrcweir 	const ScAddress&        GetEndPos() const	{ return aEndPos; }
82*cdf0e10cSrcweir 	SCTAB                   GetTab() const      { return aCursorPos.Tab(); }
83*cdf0e10cSrcweir 	SCCOL                   GetCol() const      { return aCursorPos.Col(); }
84*cdf0e10cSrcweir 	SCROW                   GetRow() const      { return aCursorPos.Row(); }
85*cdf0e10cSrcweir 	SCCOL                   GetStartCol() const { return aStartPos.Col(); }
86*cdf0e10cSrcweir 	SCROW                   GetStartRow() const { return aStartPos.Row(); }
87*cdf0e10cSrcweir 	SCCOL                   GetEndCol() const	{ return aEndPos.Col(); }
88*cdf0e10cSrcweir 	SCROW                   GetEndRow() const	{ return aEndPos.Row(); }
89*cdf0e10cSrcweir 
90*cdf0e10cSrcweir 	const String&           GetString() const   { return aString; }
91*cdf0e10cSrcweir 	const EditTextObject*	GetEditData() const	{ return pEditData; }
92*cdf0e10cSrcweir };
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir #define SC_TAB_INSERTED		1
96*cdf0e10cSrcweir #define SC_TAB_DELETED		2
97*cdf0e10cSrcweir #define SC_TAB_MOVED		3
98*cdf0e10cSrcweir #define SC_TAB_COPIED		4
99*cdf0e10cSrcweir #define SC_TAB_HIDDEN		5
100*cdf0e10cSrcweir 
101*cdf0e10cSrcweir class ScTablesHint : public SfxHint
102*cdf0e10cSrcweir {
103*cdf0e10cSrcweir 	sal_uInt16 nId;
104*cdf0e10cSrcweir 	SCTAB nTab1;
105*cdf0e10cSrcweir 	SCTAB nTab2;
106*cdf0e10cSrcweir 
107*cdf0e10cSrcweir public:
108*cdf0e10cSrcweir 					TYPEINFO();
109*cdf0e10cSrcweir 					ScTablesHint(sal_uInt16 nNewId, SCTAB nTable1, SCTAB nTable2=0);
110*cdf0e10cSrcweir 					~ScTablesHint();
111*cdf0e10cSrcweir 
112*cdf0e10cSrcweir 	sal_uInt16			GetId() const			{ return nId; }
113*cdf0e10cSrcweir 	SCTAB			GetTab1() const			{ return nTab1; }
114*cdf0e10cSrcweir 	SCTAB			GetTab2() const			{ return nTab2; }
115*cdf0e10cSrcweir };
116*cdf0e10cSrcweir 
117*cdf0e10cSrcweir class ScEditViewHint : public SfxHint
118*cdf0e10cSrcweir {
119*cdf0e10cSrcweir 	ScEditEngineDefaulter*	pEditEngine;
120*cdf0e10cSrcweir 	ScAddress       			aCursorPos;
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir public:
123*cdf0e10cSrcweir 					TYPEINFO();
124*cdf0e10cSrcweir 					ScEditViewHint( ScEditEngineDefaulter* pEngine, const ScAddress& rCurPos );
125*cdf0e10cSrcweir 					~ScEditViewHint();
126*cdf0e10cSrcweir 
127*cdf0e10cSrcweir 	SCCOL           GetCol() const      { return aCursorPos.Col(); }
128*cdf0e10cSrcweir 	SCROW           GetRow() const      { return aCursorPos.Row(); }
129*cdf0e10cSrcweir 	SCTAB           GetTab() const      { return aCursorPos.Tab(); }
130*cdf0e10cSrcweir 	ScEditEngineDefaulter*	GetEngine() const   { return pEditEngine; }
131*cdf0e10cSrcweir 
132*cdf0e10cSrcweir private:
133*cdf0e10cSrcweir 	ScEditViewHint(); // disabled
134*cdf0e10cSrcweir };
135*cdf0e10cSrcweir 
136*cdf0e10cSrcweir class ScIndexHint : public SfxHint
137*cdf0e10cSrcweir {
138*cdf0e10cSrcweir 	sal_uInt16 nId;
139*cdf0e10cSrcweir 	sal_uInt16 nIndex;
140*cdf0e10cSrcweir 
141*cdf0e10cSrcweir public:
142*cdf0e10cSrcweir 					TYPEINFO();
143*cdf0e10cSrcweir 					ScIndexHint(sal_uInt16 nNewId, sal_uInt16 nIdx);
144*cdf0e10cSrcweir 					~ScIndexHint();
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir 	sal_uInt16			GetId() const			{ return nId; }
147*cdf0e10cSrcweir 	sal_uInt16			GetIndex() const		{ return nIndex; }
148*cdf0e10cSrcweir };
149*cdf0e10cSrcweir 
150*cdf0e10cSrcweir //----------------------------------------------------------------------------
151*cdf0e10cSrcweir // Parameter-Item fuer den Sortierdialog:
152*cdf0e10cSrcweir 
153*cdf0e10cSrcweir class SC_DLLPUBLIC ScSortItem : public SfxPoolItem
154*cdf0e10cSrcweir {
155*cdf0e10cSrcweir public:
156*cdf0e10cSrcweir 							TYPEINFO();
157*cdf0e10cSrcweir 							ScSortItem( sal_uInt16				nWhich,
158*cdf0e10cSrcweir 										ScViewData*			ptrViewData,
159*cdf0e10cSrcweir 										const ScSortParam*	pSortData );
160*cdf0e10cSrcweir 							ScSortItem( sal_uInt16				nWhich,
161*cdf0e10cSrcweir 										const ScSortParam*	pSortData );
162*cdf0e10cSrcweir 							ScSortItem( const ScSortItem& rItem );
163*cdf0e10cSrcweir 							~ScSortItem();
164*cdf0e10cSrcweir 
165*cdf0e10cSrcweir 	virtual String          GetValueText() const;
166*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
167*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
168*cdf0e10cSrcweir     virtual sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberUd ) const;
169*cdf0e10cSrcweir 
170*cdf0e10cSrcweir 	ScViewData*			GetViewData () const { return pViewData; }
171*cdf0e10cSrcweir 	const ScSortParam&	GetSortData	() const { return theSortData; }
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir private:
174*cdf0e10cSrcweir 	ScViewData* 	pViewData;
175*cdf0e10cSrcweir 	ScSortParam		theSortData;
176*cdf0e10cSrcweir };
177*cdf0e10cSrcweir 
178*cdf0e10cSrcweir //----------------------------------------------------------------------------
179*cdf0e10cSrcweir // Parameter-Item fuer den Filterdialog:
180*cdf0e10cSrcweir 
181*cdf0e10cSrcweir class SC_DLLPUBLIC ScQueryItem : public SfxPoolItem
182*cdf0e10cSrcweir {
183*cdf0e10cSrcweir public:
184*cdf0e10cSrcweir 							TYPEINFO();
185*cdf0e10cSrcweir 							ScQueryItem( sal_uInt16					nWhich,
186*cdf0e10cSrcweir 										 ScViewData*			ptrViewData,
187*cdf0e10cSrcweir 										 const ScQueryParam*	pQueryData );
188*cdf0e10cSrcweir 							ScQueryItem( sal_uInt16					nWhich,
189*cdf0e10cSrcweir 										 const ScQueryParam*	pQueryData );
190*cdf0e10cSrcweir 							ScQueryItem( const ScQueryItem& rItem );
191*cdf0e10cSrcweir 							~ScQueryItem();
192*cdf0e10cSrcweir 
193*cdf0e10cSrcweir 	virtual String          GetValueText() const;
194*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
195*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
196*cdf0e10cSrcweir 
197*cdf0e10cSrcweir 	ScViewData*			GetViewData () const { return pViewData; }
198*cdf0e10cSrcweir 	const ScQueryParam&	GetQueryData() const { return theQueryData; }
199*cdf0e10cSrcweir 
200*cdf0e10cSrcweir 	sal_Bool		GetAdvancedQuerySource(ScRange& rSource) const;
201*cdf0e10cSrcweir 	void		SetAdvancedQuerySource(const ScRange* pSource);
202*cdf0e10cSrcweir 
203*cdf0e10cSrcweir private:
204*cdf0e10cSrcweir 	ScViewData* 	pViewData;
205*cdf0e10cSrcweir 	ScQueryParam	theQueryData;
206*cdf0e10cSrcweir 	sal_Bool			bIsAdvanced;
207*cdf0e10cSrcweir 	ScRange			aAdvSource;
208*cdf0e10cSrcweir };
209*cdf0e10cSrcweir 
210*cdf0e10cSrcweir //----------------------------------------------------------------------------
211*cdf0e10cSrcweir // Parameter-Item fuer den Zwischenergebnisdialog:
212*cdf0e10cSrcweir 
213*cdf0e10cSrcweir class SC_DLLPUBLIC ScSubTotalItem : public SfxPoolItem
214*cdf0e10cSrcweir {
215*cdf0e10cSrcweir public:
216*cdf0e10cSrcweir 				TYPEINFO();
217*cdf0e10cSrcweir 				ScSubTotalItem( sal_uInt16					nWhich,
218*cdf0e10cSrcweir 								ScViewData*				ptrViewData,
219*cdf0e10cSrcweir 								const ScSubTotalParam*	pSubTotalData );
220*cdf0e10cSrcweir 				ScSubTotalItem( sal_uInt16					nWhich,
221*cdf0e10cSrcweir 								const ScSubTotalParam*	pSubTotalData );
222*cdf0e10cSrcweir 				ScSubTotalItem( const ScSubTotalItem&	rItem );
223*cdf0e10cSrcweir 				~ScSubTotalItem();
224*cdf0e10cSrcweir 
225*cdf0e10cSrcweir 	virtual String          GetValueText() const;
226*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
227*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
228*cdf0e10cSrcweir     virtual sal_Bool        QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberUd ) const;
229*cdf0e10cSrcweir 
230*cdf0e10cSrcweir 	ScViewData*				GetViewData () const { return pViewData; }
231*cdf0e10cSrcweir 	const ScSubTotalParam&	GetSubTotalData() const { return theSubTotalData; }
232*cdf0e10cSrcweir 
233*cdf0e10cSrcweir private:
234*cdf0e10cSrcweir 	ScViewData* 	pViewData;
235*cdf0e10cSrcweir 	ScSubTotalParam	theSubTotalData;
236*cdf0e10cSrcweir };
237*cdf0e10cSrcweir 
238*cdf0e10cSrcweir //----------------------------------------------------------------------------
239*cdf0e10cSrcweir // Parameter-Item fuer die Benutzerlisten-TabPage:
240*cdf0e10cSrcweir 
241*cdf0e10cSrcweir class SC_DLLPUBLIC ScUserListItem : public SfxPoolItem
242*cdf0e10cSrcweir {
243*cdf0e10cSrcweir public:
244*cdf0e10cSrcweir 				TYPEINFO();
245*cdf0e10cSrcweir 				ScUserListItem( sal_uInt16 nWhich );
246*cdf0e10cSrcweir 				ScUserListItem( const ScUserListItem& rItem );
247*cdf0e10cSrcweir 				~ScUserListItem();
248*cdf0e10cSrcweir 
249*cdf0e10cSrcweir 	virtual String          GetValueText() const;
250*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
251*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
252*cdf0e10cSrcweir 
253*cdf0e10cSrcweir 	void		SetUserList ( const ScUserList& rUserList );
254*cdf0e10cSrcweir 	ScUserList*	GetUserList () const { return pUserList; }
255*cdf0e10cSrcweir 
256*cdf0e10cSrcweir private:
257*cdf0e10cSrcweir 	ScUserList*	pUserList;
258*cdf0e10cSrcweir };
259*cdf0e10cSrcweir 
260*cdf0e10cSrcweir //----------------------------------------------------------------------------
261*cdf0e10cSrcweir // Parameter-Item fuer die Konsolidieren-Dialog
262*cdf0e10cSrcweir 
263*cdf0e10cSrcweir class ScConsolidateItem : public SfxPoolItem
264*cdf0e10cSrcweir {
265*cdf0e10cSrcweir public:
266*cdf0e10cSrcweir 				TYPEINFO();
267*cdf0e10cSrcweir 				ScConsolidateItem( sal_uInt16					 nWhich,
268*cdf0e10cSrcweir 								   const ScConsolidateParam* pParam );
269*cdf0e10cSrcweir 				ScConsolidateItem( const ScConsolidateItem&	rItem );
270*cdf0e10cSrcweir 				~ScConsolidateItem();
271*cdf0e10cSrcweir 
272*cdf0e10cSrcweir 	virtual String          GetValueText() const;
273*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
274*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
275*cdf0e10cSrcweir 
276*cdf0e10cSrcweir 	const ScConsolidateParam& GetData() const { return theConsData; }
277*cdf0e10cSrcweir 
278*cdf0e10cSrcweir private:
279*cdf0e10cSrcweir 	ScConsolidateParam	theConsData;
280*cdf0e10cSrcweir };
281*cdf0e10cSrcweir 
282*cdf0e10cSrcweir //----------------------------------------------------------------------------
283*cdf0e10cSrcweir // Parameter-Item fuer den Pivot-Dialog
284*cdf0e10cSrcweir 
285*cdf0e10cSrcweir class ScPivotItem : public SfxPoolItem
286*cdf0e10cSrcweir {
287*cdf0e10cSrcweir public:
288*cdf0e10cSrcweir 				TYPEINFO();
289*cdf0e10cSrcweir 				ScPivotItem( sal_uInt16 nWhich, const ScDPSaveData* pData,
290*cdf0e10cSrcweir 							 const ScRange* pRange, sal_Bool bNew );
291*cdf0e10cSrcweir 				ScPivotItem( const ScPivotItem&	rItem );
292*cdf0e10cSrcweir 				~ScPivotItem();
293*cdf0e10cSrcweir 
294*cdf0e10cSrcweir 	virtual String          GetValueText() const;
295*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
296*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
297*cdf0e10cSrcweir 
298*cdf0e10cSrcweir 	const ScDPSaveData& GetData() const			{ return *pSaveData; }
299*cdf0e10cSrcweir 	const ScRange&		GetDestRange() const	{ return aDestRange; }
300*cdf0e10cSrcweir 	sal_Bool				IsNewSheet() const		{ return bNewSheet; }
301*cdf0e10cSrcweir 
302*cdf0e10cSrcweir private:
303*cdf0e10cSrcweir 	ScDPSaveData*	pSaveData;
304*cdf0e10cSrcweir 	ScRange			aDestRange;
305*cdf0e10cSrcweir 	sal_Bool			bNewSheet;
306*cdf0e10cSrcweir };
307*cdf0e10cSrcweir 
308*cdf0e10cSrcweir //----------------------------------------------------------------------------
309*cdf0e10cSrcweir // Parameter-Item fuer den Solver-Dialog
310*cdf0e10cSrcweir 
311*cdf0e10cSrcweir class ScSolveItem : public SfxPoolItem
312*cdf0e10cSrcweir {
313*cdf0e10cSrcweir public:
314*cdf0e10cSrcweir 				TYPEINFO();
315*cdf0e10cSrcweir 				ScSolveItem( sal_uInt16				 nWhich,
316*cdf0e10cSrcweir 							 const ScSolveParam* pParam );
317*cdf0e10cSrcweir 				ScSolveItem( const ScSolveItem&	rItem );
318*cdf0e10cSrcweir 				~ScSolveItem();
319*cdf0e10cSrcweir 
320*cdf0e10cSrcweir 	virtual String          GetValueText() const;
321*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
322*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
323*cdf0e10cSrcweir 
324*cdf0e10cSrcweir 	const ScSolveParam& GetData() const { return theSolveData; }
325*cdf0e10cSrcweir 
326*cdf0e10cSrcweir private:
327*cdf0e10cSrcweir 	ScSolveParam	theSolveData;
328*cdf0e10cSrcweir };
329*cdf0e10cSrcweir 
330*cdf0e10cSrcweir //----------------------------------------------------------------------------
331*cdf0e10cSrcweir // Parameter-Item fuer den Mehrfachoperationen-Dialog
332*cdf0e10cSrcweir 
333*cdf0e10cSrcweir class ScTabOpItem : public SfxPoolItem
334*cdf0e10cSrcweir {
335*cdf0e10cSrcweir public:
336*cdf0e10cSrcweir 				TYPEINFO();
337*cdf0e10cSrcweir 				ScTabOpItem( sal_uInt16				 nWhich,
338*cdf0e10cSrcweir 							 const ScTabOpParam* pParam );
339*cdf0e10cSrcweir 				ScTabOpItem( const ScTabOpItem&	rItem );
340*cdf0e10cSrcweir 				~ScTabOpItem();
341*cdf0e10cSrcweir 
342*cdf0e10cSrcweir 	virtual String          GetValueText() const;
343*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
344*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
345*cdf0e10cSrcweir 
346*cdf0e10cSrcweir 	const ScTabOpParam& GetData() const { return theTabOpData; }
347*cdf0e10cSrcweir 
348*cdf0e10cSrcweir private:
349*cdf0e10cSrcweir 	ScTabOpParam	theTabOpData;
350*cdf0e10cSrcweir };
351*cdf0e10cSrcweir 
352*cdf0e10cSrcweir //----------------------------------------------------------------------------
353*cdf0e10cSrcweir // Parameter-Item fuer den Dialog bedingte Formatierung
354*cdf0e10cSrcweir 
355*cdf0e10cSrcweir class ScCondFrmtItem : public SfxPoolItem
356*cdf0e10cSrcweir {
357*cdf0e10cSrcweir public:
358*cdf0e10cSrcweir 				TYPEINFO();
359*cdf0e10cSrcweir 				ScCondFrmtItem( sal_uInt16 nWhich,
360*cdf0e10cSrcweir //!								const ScConditionalFormat* pCondFrmt );
361*cdf0e10cSrcweir 								const ScConditionalFormat& rCondFrmt );
362*cdf0e10cSrcweir 				ScCondFrmtItem( const ScCondFrmtItem& rItem );
363*cdf0e10cSrcweir 				~ScCondFrmtItem();
364*cdf0e10cSrcweir 
365*cdf0e10cSrcweir 	virtual String          GetValueText() const;
366*cdf0e10cSrcweir 	virtual int             operator==( const SfxPoolItem& ) const;
367*cdf0e10cSrcweir 	virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
368*cdf0e10cSrcweir 
369*cdf0e10cSrcweir 	const ScConditionalFormat&	GetData() const { return theCondFrmtData; }
370*cdf0e10cSrcweir 
371*cdf0e10cSrcweir private:
372*cdf0e10cSrcweir 	ScConditionalFormat	theCondFrmtData;
373*cdf0e10cSrcweir };
374*cdf0e10cSrcweir 
375*cdf0e10cSrcweir 
376*cdf0e10cSrcweir 
377*cdf0e10cSrcweir #endif
378*cdf0e10cSrcweir 
379