xref: /AOO41X/main/sc/source/ui/app/uiitems.cxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
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 // MARKER(update_precomp.py): autogen include statement, do not remove
29*cdf0e10cSrcweir #include "precompiled_sc.hxx"
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir 
33*cdf0e10cSrcweir #include <editeng/editobj.hxx>
34*cdf0e10cSrcweir 
35*cdf0e10cSrcweir #include "userlist.hxx"
36*cdf0e10cSrcweir #include "uiitems.hxx"
37*cdf0e10cSrcweir #include "dpsave.hxx"
38*cdf0e10cSrcweir 
39*cdf0e10cSrcweir // STATIC DATA -----------------------------------------------------------
40*cdf0e10cSrcweir 
41*cdf0e10cSrcweir TYPEINIT1(ScInputStatusItem,    SfxPoolItem);
42*cdf0e10cSrcweir TYPEINIT1(ScSortItem,           SfxPoolItem);
43*cdf0e10cSrcweir TYPEINIT1(ScQueryItem,          SfxPoolItem);
44*cdf0e10cSrcweir TYPEINIT1(ScSubTotalItem,       SfxPoolItem);
45*cdf0e10cSrcweir TYPEINIT1(ScUserListItem,       SfxPoolItem);
46*cdf0e10cSrcweir TYPEINIT1(ScConsolidateItem,    SfxPoolItem);
47*cdf0e10cSrcweir TYPEINIT1(ScPivotItem,		    SfxPoolItem);
48*cdf0e10cSrcweir TYPEINIT1(ScSolveItem,		    SfxPoolItem);
49*cdf0e10cSrcweir TYPEINIT1(ScTabOpItem,		    SfxPoolItem);
50*cdf0e10cSrcweir TYPEINIT1(ScCondFrmtItem,	    SfxPoolItem);
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir TYPEINIT1(ScTablesHint,			SfxHint);
53*cdf0e10cSrcweir TYPEINIT1(ScEditViewHint,		SfxHint);
54*cdf0e10cSrcweir TYPEINIT1(ScIndexHint,			SfxHint);
55*cdf0e10cSrcweir 
56*cdf0e10cSrcweir // -----------------------------------------------------------------------
57*cdf0e10cSrcweir //      ScInputStatusItem - Status-Update fuer Eingabezeile
58*cdf0e10cSrcweir // -----------------------------------------------------------------------
59*cdf0e10cSrcweir 
60*cdf0e10cSrcweir //UNUSED2008-05  ScInputStatusItem::ScInputStatusItem( sal_uInt16 nWhichP,
61*cdf0e10cSrcweir //UNUSED2008-05                                        SCTAB nTab,
62*cdf0e10cSrcweir //UNUSED2008-05                                        SCCOL nCol, SCROW nRow,
63*cdf0e10cSrcweir //UNUSED2008-05                                        SCCOL nStartCol, SCROW nStartRow,
64*cdf0e10cSrcweir //UNUSED2008-05                                        SCCOL nEndCol,   SCROW nEndRow,
65*cdf0e10cSrcweir //UNUSED2008-05                                        const String& rString, const EditTextObject* pData )
66*cdf0e10cSrcweir //UNUSED2008-05
67*cdf0e10cSrcweir //UNUSED2008-05      :   SfxPoolItem ( nWhichP ),
68*cdf0e10cSrcweir //UNUSED2008-05          aCursorPos  ( nCol, nRow, nTab ),
69*cdf0e10cSrcweir //UNUSED2008-05          aStartPos   ( nStartCol, nStartRow, nTab ),
70*cdf0e10cSrcweir //UNUSED2008-05          aEndPos     ( nEndCol,   nEndRow,   nTab ),
71*cdf0e10cSrcweir //UNUSED2008-05          aString     ( rString ),
72*cdf0e10cSrcweir //UNUSED2008-05          pEditData   ( pData ? pData->Clone() : NULL )
73*cdf0e10cSrcweir //UNUSED2008-05  {
74*cdf0e10cSrcweir //UNUSED2008-05  }
75*cdf0e10cSrcweir 
76*cdf0e10cSrcweir ScInputStatusItem::ScInputStatusItem( sal_uInt16 nWhichP,
77*cdf0e10cSrcweir 									  const ScAddress& rCurPos,
78*cdf0e10cSrcweir 									  const ScAddress& rStartPos,
79*cdf0e10cSrcweir 									  const ScAddress& rEndPos,
80*cdf0e10cSrcweir 									  const String& rString,
81*cdf0e10cSrcweir 									  const EditTextObject* pData )
82*cdf0e10cSrcweir     :   SfxPoolItem ( nWhichP ),
83*cdf0e10cSrcweir 		aCursorPos	( rCurPos ),
84*cdf0e10cSrcweir 		aStartPos	( rStartPos ),
85*cdf0e10cSrcweir 		aEndPos		( rEndPos ),
86*cdf0e10cSrcweir 		aString		( rString ),
87*cdf0e10cSrcweir 		pEditData	( pData ? pData->Clone() : NULL )
88*cdf0e10cSrcweir {
89*cdf0e10cSrcweir }
90*cdf0e10cSrcweir 
91*cdf0e10cSrcweir ScInputStatusItem::ScInputStatusItem( const ScInputStatusItem& rItem )
92*cdf0e10cSrcweir 	:	SfxPoolItem	( rItem ),
93*cdf0e10cSrcweir 		aCursorPos	( rItem.aCursorPos ),
94*cdf0e10cSrcweir 		aStartPos	( rItem.aStartPos ),
95*cdf0e10cSrcweir 		aEndPos		( rItem.aEndPos ),
96*cdf0e10cSrcweir 		aString		( rItem.aString ),
97*cdf0e10cSrcweir 		pEditData	( rItem.pEditData ? rItem.pEditData->Clone() : NULL )
98*cdf0e10cSrcweir {
99*cdf0e10cSrcweir }
100*cdf0e10cSrcweir 
101*cdf0e10cSrcweir __EXPORT ScInputStatusItem::~ScInputStatusItem()
102*cdf0e10cSrcweir {
103*cdf0e10cSrcweir 	delete pEditData;
104*cdf0e10cSrcweir }
105*cdf0e10cSrcweir 
106*cdf0e10cSrcweir String __EXPORT ScInputStatusItem::GetValueText() const
107*cdf0e10cSrcweir {
108*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("InputStatus"));
109*cdf0e10cSrcweir }
110*cdf0e10cSrcweir 
111*cdf0e10cSrcweir int __EXPORT ScInputStatusItem::operator==( const SfxPoolItem& rItem ) const
112*cdf0e10cSrcweir {
113*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
114*cdf0e10cSrcweir 
115*cdf0e10cSrcweir 	return (    (aStartPos 	== ((ScInputStatusItem&)rItem).aStartPos)
116*cdf0e10cSrcweir 			 &&	(aEndPos   	== ((ScInputStatusItem&)rItem).aEndPos)
117*cdf0e10cSrcweir 			 &&	(aCursorPos == ((ScInputStatusItem&)rItem).aCursorPos)
118*cdf0e10cSrcweir 			 && (aString   	== ((ScInputStatusItem&)rItem).aString) );
119*cdf0e10cSrcweir 														//!	Edit-Daten vergleichen!
120*cdf0e10cSrcweir }
121*cdf0e10cSrcweir 
122*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScInputStatusItem::Clone( SfxItemPool * ) const
123*cdf0e10cSrcweir {
124*cdf0e10cSrcweir 	return new ScInputStatusItem( *this );
125*cdf0e10cSrcweir }
126*cdf0e10cSrcweir 
127*cdf0e10cSrcweir //
128*cdf0e10cSrcweir //	ScPaintHint ist nach schints.cxx verschoben
129*cdf0e10cSrcweir //
130*cdf0e10cSrcweir 
131*cdf0e10cSrcweir // -----------------------------------------------------------------------
132*cdf0e10cSrcweir //	ScTablesHint - Views anpassen, wenn Tabellen eingefuegt / geloescht
133*cdf0e10cSrcweir // -----------------------------------------------------------------------
134*cdf0e10cSrcweir 
135*cdf0e10cSrcweir ScTablesHint::ScTablesHint(sal_uInt16 nNewId, SCTAB nTable1, SCTAB nTable2) :
136*cdf0e10cSrcweir 	nId( nNewId ),
137*cdf0e10cSrcweir 	nTab1( nTable1 ),
138*cdf0e10cSrcweir 	nTab2( nTable2 )
139*cdf0e10cSrcweir {
140*cdf0e10cSrcweir }
141*cdf0e10cSrcweir 
142*cdf0e10cSrcweir ScTablesHint::~ScTablesHint()
143*cdf0e10cSrcweir {
144*cdf0e10cSrcweir }
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir 
147*cdf0e10cSrcweir // -----------------------------------------------------------------------
148*cdf0e10cSrcweir //	ScIndexHint
149*cdf0e10cSrcweir // -----------------------------------------------------------------------
150*cdf0e10cSrcweir 
151*cdf0e10cSrcweir ScIndexHint::ScIndexHint(sal_uInt16 nNewId, sal_uInt16 nIdx) :
152*cdf0e10cSrcweir 	nId( nNewId ),
153*cdf0e10cSrcweir 	nIndex( nIdx )
154*cdf0e10cSrcweir {
155*cdf0e10cSrcweir }
156*cdf0e10cSrcweir 
157*cdf0e10cSrcweir ScIndexHint::~ScIndexHint()
158*cdf0e10cSrcweir {
159*cdf0e10cSrcweir }
160*cdf0e10cSrcweir 
161*cdf0e10cSrcweir 
162*cdf0e10cSrcweir // -----------------------------------------------------------------------
163*cdf0e10cSrcweir //      ScEditViewHint - neue EditView fuer Cursorposition anlegen
164*cdf0e10cSrcweir // -----------------------------------------------------------------------
165*cdf0e10cSrcweir 
166*cdf0e10cSrcweir ScEditViewHint::ScEditViewHint( ScEditEngineDefaulter* pEngine, const ScAddress& rCurPos ) :
167*cdf0e10cSrcweir     pEditEngine( pEngine ),
168*cdf0e10cSrcweir     aCursorPos( rCurPos )
169*cdf0e10cSrcweir {
170*cdf0e10cSrcweir }
171*cdf0e10cSrcweir 
172*cdf0e10cSrcweir ScEditViewHint::~ScEditViewHint()
173*cdf0e10cSrcweir {
174*cdf0e10cSrcweir }
175*cdf0e10cSrcweir 
176*cdf0e10cSrcweir // -----------------------------------------------------------------------
177*cdf0e10cSrcweir //      ScSortItem - Daten fuer den Sortierdialog
178*cdf0e10cSrcweir // -----------------------------------------------------------------------
179*cdf0e10cSrcweir 
180*cdf0e10cSrcweir ScSortItem::ScSortItem( sal_uInt16              nWhichP,
181*cdf0e10cSrcweir 						ScViewData*         ptrViewData,
182*cdf0e10cSrcweir 						const ScSortParam*  pSortData ) :
183*cdf0e10cSrcweir         SfxPoolItem ( nWhichP ),
184*cdf0e10cSrcweir 		pViewData   ( ptrViewData )
185*cdf0e10cSrcweir {
186*cdf0e10cSrcweir 	if ( pSortData ) theSortData = *pSortData;
187*cdf0e10cSrcweir }
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir //------------------------------------------------------------------------
190*cdf0e10cSrcweir 
191*cdf0e10cSrcweir ScSortItem::ScSortItem( sal_uInt16              nWhichP,
192*cdf0e10cSrcweir 						const ScSortParam*  pSortData ) :
193*cdf0e10cSrcweir         SfxPoolItem ( nWhichP ),
194*cdf0e10cSrcweir 		pViewData   ( NULL )
195*cdf0e10cSrcweir {
196*cdf0e10cSrcweir 	if ( pSortData ) theSortData = *pSortData;
197*cdf0e10cSrcweir }
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir //------------------------------------------------------------------------
200*cdf0e10cSrcweir 
201*cdf0e10cSrcweir ScSortItem::ScSortItem( const ScSortItem& rItem ) :
202*cdf0e10cSrcweir 		SfxPoolItem ( rItem ),
203*cdf0e10cSrcweir 		pViewData   ( rItem.pViewData ),
204*cdf0e10cSrcweir 		theSortData ( rItem.theSortData )
205*cdf0e10cSrcweir {
206*cdf0e10cSrcweir }
207*cdf0e10cSrcweir 
208*cdf0e10cSrcweir __EXPORT ScSortItem::~ScSortItem()
209*cdf0e10cSrcweir {
210*cdf0e10cSrcweir }
211*cdf0e10cSrcweir 
212*cdf0e10cSrcweir //------------------------------------------------------------------------
213*cdf0e10cSrcweir 
214*cdf0e10cSrcweir String __EXPORT ScSortItem::GetValueText() const
215*cdf0e10cSrcweir {
216*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("SortItem"));
217*cdf0e10cSrcweir }
218*cdf0e10cSrcweir 
219*cdf0e10cSrcweir //------------------------------------------------------------------------
220*cdf0e10cSrcweir 
221*cdf0e10cSrcweir int __EXPORT ScSortItem::operator==( const SfxPoolItem& rItem ) const
222*cdf0e10cSrcweir {
223*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
224*cdf0e10cSrcweir 
225*cdf0e10cSrcweir 	const ScSortItem& rOther = (const ScSortItem&)rItem;
226*cdf0e10cSrcweir 
227*cdf0e10cSrcweir 	return (   (pViewData   == rOther.pViewData)
228*cdf0e10cSrcweir 			&& (theSortData == rOther.theSortData) );
229*cdf0e10cSrcweir }
230*cdf0e10cSrcweir 
231*cdf0e10cSrcweir //------------------------------------------------------------------------
232*cdf0e10cSrcweir 
233*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScSortItem::Clone( SfxItemPool * ) const
234*cdf0e10cSrcweir {
235*cdf0e10cSrcweir 	return new ScSortItem( *this );
236*cdf0e10cSrcweir }
237*cdf0e10cSrcweir 
238*cdf0e10cSrcweir //------------------------------------------------------------------------
239*cdf0e10cSrcweir 
240*cdf0e10cSrcweir sal_Bool ScSortItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 /* nMemberUd */ ) const
241*cdf0e10cSrcweir {
242*cdf0e10cSrcweir     // Return empty value as there is no useful conversion
243*cdf0e10cSrcweir     rVal = com::sun::star::uno::Any();
244*cdf0e10cSrcweir     return sal_True;
245*cdf0e10cSrcweir }
246*cdf0e10cSrcweir 
247*cdf0e10cSrcweir // -----------------------------------------------------------------------
248*cdf0e10cSrcweir //      ScQueryItem - Daten fuer den Filterdialog
249*cdf0e10cSrcweir // -----------------------------------------------------------------------
250*cdf0e10cSrcweir 
251*cdf0e10cSrcweir ScQueryItem::ScQueryItem( sal_uInt16                nWhichP,
252*cdf0e10cSrcweir 						  ScViewData*           ptrViewData,
253*cdf0e10cSrcweir 						  const ScQueryParam*   pQueryData ) :
254*cdf0e10cSrcweir         SfxPoolItem ( nWhichP ),
255*cdf0e10cSrcweir         pViewData   ( ptrViewData ),
256*cdf0e10cSrcweir         bIsAdvanced	( sal_False )
257*cdf0e10cSrcweir {
258*cdf0e10cSrcweir 	if ( pQueryData ) theQueryData = *pQueryData;
259*cdf0e10cSrcweir }
260*cdf0e10cSrcweir 
261*cdf0e10cSrcweir //------------------------------------------------------------------------
262*cdf0e10cSrcweir 
263*cdf0e10cSrcweir ScQueryItem::ScQueryItem( sal_uInt16                nWhichP,
264*cdf0e10cSrcweir 						  const ScQueryParam*   pQueryData ) :
265*cdf0e10cSrcweir         SfxPoolItem ( nWhichP ),
266*cdf0e10cSrcweir         pViewData   ( NULL ),
267*cdf0e10cSrcweir         bIsAdvanced	( sal_False )
268*cdf0e10cSrcweir {
269*cdf0e10cSrcweir 	if ( pQueryData ) theQueryData = *pQueryData;
270*cdf0e10cSrcweir }
271*cdf0e10cSrcweir 
272*cdf0e10cSrcweir //------------------------------------------------------------------------
273*cdf0e10cSrcweir 
274*cdf0e10cSrcweir ScQueryItem::ScQueryItem( const ScQueryItem& rItem ) :
275*cdf0e10cSrcweir 		SfxPoolItem ( rItem ),
276*cdf0e10cSrcweir 		pViewData   ( rItem.pViewData ),
277*cdf0e10cSrcweir 		theQueryData( rItem.theQueryData ),
278*cdf0e10cSrcweir 		bIsAdvanced	( rItem.bIsAdvanced ),
279*cdf0e10cSrcweir 		aAdvSource	( rItem.aAdvSource )
280*cdf0e10cSrcweir {
281*cdf0e10cSrcweir }
282*cdf0e10cSrcweir 
283*cdf0e10cSrcweir __EXPORT ScQueryItem::~ScQueryItem()
284*cdf0e10cSrcweir {
285*cdf0e10cSrcweir }
286*cdf0e10cSrcweir 
287*cdf0e10cSrcweir //------------------------------------------------------------------------
288*cdf0e10cSrcweir 
289*cdf0e10cSrcweir void ScQueryItem::SetAdvancedQuerySource(const ScRange* pSource)
290*cdf0e10cSrcweir {
291*cdf0e10cSrcweir 	if (pSource)
292*cdf0e10cSrcweir 	{
293*cdf0e10cSrcweir 		aAdvSource = *pSource;
294*cdf0e10cSrcweir 		bIsAdvanced = sal_True;
295*cdf0e10cSrcweir 	}
296*cdf0e10cSrcweir 	else
297*cdf0e10cSrcweir 		bIsAdvanced = sal_False;
298*cdf0e10cSrcweir }
299*cdf0e10cSrcweir 
300*cdf0e10cSrcweir sal_Bool ScQueryItem::GetAdvancedQuerySource(ScRange& rSource) const
301*cdf0e10cSrcweir {
302*cdf0e10cSrcweir 	rSource = aAdvSource;
303*cdf0e10cSrcweir 	return bIsAdvanced;
304*cdf0e10cSrcweir }
305*cdf0e10cSrcweir 
306*cdf0e10cSrcweir //------------------------------------------------------------------------
307*cdf0e10cSrcweir 
308*cdf0e10cSrcweir String __EXPORT ScQueryItem::GetValueText() const
309*cdf0e10cSrcweir {
310*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("QueryItem"));
311*cdf0e10cSrcweir }
312*cdf0e10cSrcweir 
313*cdf0e10cSrcweir //------------------------------------------------------------------------
314*cdf0e10cSrcweir 
315*cdf0e10cSrcweir int __EXPORT ScQueryItem::operator==( const SfxPoolItem& rItem ) const
316*cdf0e10cSrcweir {
317*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
318*cdf0e10cSrcweir 
319*cdf0e10cSrcweir 	const ScQueryItem& rQueryItem = (const ScQueryItem&)rItem;
320*cdf0e10cSrcweir 
321*cdf0e10cSrcweir 	return (   (pViewData    == rQueryItem.pViewData)
322*cdf0e10cSrcweir 			&& (bIsAdvanced  == rQueryItem.bIsAdvanced)
323*cdf0e10cSrcweir 			&& (aAdvSource   == rQueryItem.aAdvSource)
324*cdf0e10cSrcweir 			&& (theQueryData == rQueryItem.theQueryData) );
325*cdf0e10cSrcweir }
326*cdf0e10cSrcweir 
327*cdf0e10cSrcweir //------------------------------------------------------------------------
328*cdf0e10cSrcweir 
329*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScQueryItem::Clone( SfxItemPool * ) const
330*cdf0e10cSrcweir {
331*cdf0e10cSrcweir 	return new ScQueryItem( *this );
332*cdf0e10cSrcweir }
333*cdf0e10cSrcweir 
334*cdf0e10cSrcweir // -----------------------------------------------------------------------
335*cdf0e10cSrcweir //      ScSubTotalItem - Daten fuer den Zwischenergebnisdialog
336*cdf0e10cSrcweir // -----------------------------------------------------------------------
337*cdf0e10cSrcweir 
338*cdf0e10cSrcweir ScSubTotalItem::ScSubTotalItem( sal_uInt16                  nWhichP,
339*cdf0e10cSrcweir 								ScViewData*           	ptrViewData,
340*cdf0e10cSrcweir 								const ScSubTotalParam*	pSubTotalData ) :
341*cdf0e10cSrcweir         SfxPoolItem ( nWhichP ),
342*cdf0e10cSrcweir 		pViewData   ( ptrViewData )
343*cdf0e10cSrcweir {
344*cdf0e10cSrcweir 	if ( pSubTotalData ) theSubTotalData = *pSubTotalData;
345*cdf0e10cSrcweir }
346*cdf0e10cSrcweir 
347*cdf0e10cSrcweir //------------------------------------------------------------------------
348*cdf0e10cSrcweir 
349*cdf0e10cSrcweir ScSubTotalItem::ScSubTotalItem( sal_uInt16                  nWhichP,
350*cdf0e10cSrcweir 								const ScSubTotalParam*	pSubTotalData ) :
351*cdf0e10cSrcweir         SfxPoolItem ( nWhichP ),
352*cdf0e10cSrcweir 		pViewData   ( NULL )
353*cdf0e10cSrcweir {
354*cdf0e10cSrcweir 	if ( pSubTotalData ) theSubTotalData = *pSubTotalData;
355*cdf0e10cSrcweir }
356*cdf0e10cSrcweir 
357*cdf0e10cSrcweir //------------------------------------------------------------------------
358*cdf0e10cSrcweir 
359*cdf0e10cSrcweir ScSubTotalItem::ScSubTotalItem( const ScSubTotalItem& rItem ) :
360*cdf0e10cSrcweir 		SfxPoolItem		( rItem ),
361*cdf0e10cSrcweir 		pViewData		( rItem.pViewData ),
362*cdf0e10cSrcweir 		theSubTotalData	( rItem.theSubTotalData )
363*cdf0e10cSrcweir {
364*cdf0e10cSrcweir }
365*cdf0e10cSrcweir 
366*cdf0e10cSrcweir __EXPORT ScSubTotalItem::~ScSubTotalItem()
367*cdf0e10cSrcweir {
368*cdf0e10cSrcweir }
369*cdf0e10cSrcweir 
370*cdf0e10cSrcweir //------------------------------------------------------------------------
371*cdf0e10cSrcweir 
372*cdf0e10cSrcweir String __EXPORT ScSubTotalItem::GetValueText() const
373*cdf0e10cSrcweir {
374*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("SubTotalItem"));
375*cdf0e10cSrcweir }
376*cdf0e10cSrcweir 
377*cdf0e10cSrcweir //------------------------------------------------------------------------
378*cdf0e10cSrcweir 
379*cdf0e10cSrcweir int __EXPORT ScSubTotalItem::operator==( const SfxPoolItem& rItem ) const
380*cdf0e10cSrcweir {
381*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
382*cdf0e10cSrcweir 
383*cdf0e10cSrcweir 	const ScSubTotalItem& rSTItem = (const ScSubTotalItem&)rItem;
384*cdf0e10cSrcweir 
385*cdf0e10cSrcweir 	return (   (pViewData   	== rSTItem.pViewData)
386*cdf0e10cSrcweir 			&& (theSubTotalData == rSTItem.theSubTotalData) );
387*cdf0e10cSrcweir }
388*cdf0e10cSrcweir 
389*cdf0e10cSrcweir //------------------------------------------------------------------------
390*cdf0e10cSrcweir 
391*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScSubTotalItem::Clone( SfxItemPool * ) const
392*cdf0e10cSrcweir {
393*cdf0e10cSrcweir 	return new ScSubTotalItem( *this );
394*cdf0e10cSrcweir }
395*cdf0e10cSrcweir 
396*cdf0e10cSrcweir //------------------------------------------------------------------------
397*cdf0e10cSrcweir 
398*cdf0e10cSrcweir sal_Bool ScSubTotalItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 /* nMemberUd */ ) const
399*cdf0e10cSrcweir {
400*cdf0e10cSrcweir     // Return empty value as there is no useful conversion
401*cdf0e10cSrcweir     rVal = com::sun::star::uno::Any();
402*cdf0e10cSrcweir     return sal_True;
403*cdf0e10cSrcweir }
404*cdf0e10cSrcweir 
405*cdf0e10cSrcweir // -----------------------------------------------------------------------
406*cdf0e10cSrcweir //      ScUserListItem - Transporter fuer den Benutzerlisten-TabPage
407*cdf0e10cSrcweir // -----------------------------------------------------------------------
408*cdf0e10cSrcweir 
409*cdf0e10cSrcweir ScUserListItem::ScUserListItem( sal_uInt16 nWhichP )
410*cdf0e10cSrcweir     :   SfxPoolItem ( nWhichP ),
411*cdf0e10cSrcweir 		pUserList	( NULL )
412*cdf0e10cSrcweir {
413*cdf0e10cSrcweir }
414*cdf0e10cSrcweir 
415*cdf0e10cSrcweir //------------------------------------------------------------------------
416*cdf0e10cSrcweir 
417*cdf0e10cSrcweir ScUserListItem::ScUserListItem( const ScUserListItem& rItem )
418*cdf0e10cSrcweir 	:	SfxPoolItem	( rItem )
419*cdf0e10cSrcweir {
420*cdf0e10cSrcweir 	if ( rItem.pUserList )
421*cdf0e10cSrcweir 		pUserList = new ScUserList( *(rItem.pUserList) );
422*cdf0e10cSrcweir 	else
423*cdf0e10cSrcweir 		pUserList = NULL;
424*cdf0e10cSrcweir }
425*cdf0e10cSrcweir 
426*cdf0e10cSrcweir __EXPORT ScUserListItem::~ScUserListItem()
427*cdf0e10cSrcweir {
428*cdf0e10cSrcweir 	delete pUserList;
429*cdf0e10cSrcweir }
430*cdf0e10cSrcweir 
431*cdf0e10cSrcweir //------------------------------------------------------------------------
432*cdf0e10cSrcweir 
433*cdf0e10cSrcweir String __EXPORT ScUserListItem::GetValueText() const
434*cdf0e10cSrcweir {
435*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ScUserListItem"));
436*cdf0e10cSrcweir }
437*cdf0e10cSrcweir 
438*cdf0e10cSrcweir //------------------------------------------------------------------------
439*cdf0e10cSrcweir 
440*cdf0e10cSrcweir int __EXPORT ScUserListItem::operator==( const SfxPoolItem& rItem ) const
441*cdf0e10cSrcweir {
442*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
443*cdf0e10cSrcweir 
444*cdf0e10cSrcweir 	const ScUserListItem& r = (const ScUserListItem&)rItem;
445*cdf0e10cSrcweir 	sal_Bool bEqual = sal_False;
446*cdf0e10cSrcweir 
447*cdf0e10cSrcweir 	if ( !pUserList || !(r.pUserList) )
448*cdf0e10cSrcweir 		bEqual = ( !pUserList && !(r.pUserList) );
449*cdf0e10cSrcweir 	else
450*cdf0e10cSrcweir 		bEqual = ( *pUserList == *(r.pUserList) );
451*cdf0e10cSrcweir 
452*cdf0e10cSrcweir 	return bEqual;
453*cdf0e10cSrcweir }
454*cdf0e10cSrcweir 
455*cdf0e10cSrcweir 
456*cdf0e10cSrcweir //------------------------------------------------------------------------
457*cdf0e10cSrcweir 
458*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScUserListItem::Clone( SfxItemPool * ) const
459*cdf0e10cSrcweir {
460*cdf0e10cSrcweir 	return new ScUserListItem( *this );
461*cdf0e10cSrcweir }
462*cdf0e10cSrcweir 
463*cdf0e10cSrcweir //------------------------------------------------------------------------
464*cdf0e10cSrcweir 
465*cdf0e10cSrcweir void ScUserListItem::SetUserList( const ScUserList& rUserList )
466*cdf0e10cSrcweir {
467*cdf0e10cSrcweir 	delete pUserList;
468*cdf0e10cSrcweir 	pUserList = new ScUserList( rUserList );
469*cdf0e10cSrcweir }
470*cdf0e10cSrcweir 
471*cdf0e10cSrcweir // -----------------------------------------------------------------------
472*cdf0e10cSrcweir //      ScConsolidateItem - Daten fuer den Konsolidieren-Dialog
473*cdf0e10cSrcweir // -----------------------------------------------------------------------
474*cdf0e10cSrcweir 
475*cdf0e10cSrcweir ScConsolidateItem::ScConsolidateItem(
476*cdf0e10cSrcweir 							sal_uInt16                      nWhichP,
477*cdf0e10cSrcweir 							const ScConsolidateParam*	pConsolidateData ) :
478*cdf0e10cSrcweir         SfxPoolItem ( nWhichP )
479*cdf0e10cSrcweir {
480*cdf0e10cSrcweir 	if ( pConsolidateData ) theConsData = *pConsolidateData;
481*cdf0e10cSrcweir }
482*cdf0e10cSrcweir 
483*cdf0e10cSrcweir //------------------------------------------------------------------------
484*cdf0e10cSrcweir 
485*cdf0e10cSrcweir ScConsolidateItem::ScConsolidateItem( const ScConsolidateItem& rItem ) :
486*cdf0e10cSrcweir 		SfxPoolItem	( rItem ),
487*cdf0e10cSrcweir 		theConsData	( rItem.theConsData )
488*cdf0e10cSrcweir {
489*cdf0e10cSrcweir }
490*cdf0e10cSrcweir 
491*cdf0e10cSrcweir //------------------------------------------------------------------------
492*cdf0e10cSrcweir 
493*cdf0e10cSrcweir __EXPORT ScConsolidateItem::~ScConsolidateItem()
494*cdf0e10cSrcweir {
495*cdf0e10cSrcweir }
496*cdf0e10cSrcweir 
497*cdf0e10cSrcweir //------------------------------------------------------------------------
498*cdf0e10cSrcweir 
499*cdf0e10cSrcweir String __EXPORT ScConsolidateItem::GetValueText() const
500*cdf0e10cSrcweir {
501*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ScConsolidateItem"));
502*cdf0e10cSrcweir }
503*cdf0e10cSrcweir 
504*cdf0e10cSrcweir //------------------------------------------------------------------------
505*cdf0e10cSrcweir 
506*cdf0e10cSrcweir int __EXPORT ScConsolidateItem::operator==( const SfxPoolItem& rItem ) const
507*cdf0e10cSrcweir {
508*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
509*cdf0e10cSrcweir 
510*cdf0e10cSrcweir 	const ScConsolidateItem& rCItem = (const ScConsolidateItem&)rItem;
511*cdf0e10cSrcweir 
512*cdf0e10cSrcweir 	return ( theConsData == rCItem.theConsData);
513*cdf0e10cSrcweir }
514*cdf0e10cSrcweir 
515*cdf0e10cSrcweir //------------------------------------------------------------------------
516*cdf0e10cSrcweir 
517*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScConsolidateItem::Clone( SfxItemPool * ) const
518*cdf0e10cSrcweir {
519*cdf0e10cSrcweir 	return new ScConsolidateItem( *this );
520*cdf0e10cSrcweir }
521*cdf0e10cSrcweir 
522*cdf0e10cSrcweir 
523*cdf0e10cSrcweir // -----------------------------------------------------------------------
524*cdf0e10cSrcweir //      ScPivotItem - Daten fuer den Pivot-Dialog
525*cdf0e10cSrcweir // -----------------------------------------------------------------------
526*cdf0e10cSrcweir 
527*cdf0e10cSrcweir ScPivotItem::ScPivotItem( sal_uInt16 nWhichP, const ScDPSaveData* pData,
528*cdf0e10cSrcweir 							 const ScRange* pRange, sal_Bool bNew ) :
529*cdf0e10cSrcweir         SfxPoolItem ( nWhichP )
530*cdf0e10cSrcweir {
531*cdf0e10cSrcweir 	//	pSaveData must always exist
532*cdf0e10cSrcweir 	if ( pData )
533*cdf0e10cSrcweir 		pSaveData = new ScDPSaveData(*pData);
534*cdf0e10cSrcweir 	else
535*cdf0e10cSrcweir 		pSaveData = new ScDPSaveData;
536*cdf0e10cSrcweir 	if ( pRange ) aDestRange = *pRange;
537*cdf0e10cSrcweir 	bNewSheet = bNew;
538*cdf0e10cSrcweir }
539*cdf0e10cSrcweir 
540*cdf0e10cSrcweir //------------------------------------------------------------------------
541*cdf0e10cSrcweir 
542*cdf0e10cSrcweir ScPivotItem::ScPivotItem( const ScPivotItem& rItem ) :
543*cdf0e10cSrcweir 		SfxPoolItem	( rItem ),
544*cdf0e10cSrcweir 		aDestRange	( rItem.aDestRange ),
545*cdf0e10cSrcweir 		bNewSheet	( rItem.bNewSheet )
546*cdf0e10cSrcweir {
547*cdf0e10cSrcweir 	DBG_ASSERT(rItem.pSaveData, "pSaveData");
548*cdf0e10cSrcweir 	pSaveData = new ScDPSaveData(*rItem.pSaveData);
549*cdf0e10cSrcweir }
550*cdf0e10cSrcweir 
551*cdf0e10cSrcweir //------------------------------------------------------------------------
552*cdf0e10cSrcweir 
553*cdf0e10cSrcweir __EXPORT ScPivotItem::~ScPivotItem()
554*cdf0e10cSrcweir {
555*cdf0e10cSrcweir 	delete pSaveData;
556*cdf0e10cSrcweir }
557*cdf0e10cSrcweir 
558*cdf0e10cSrcweir //------------------------------------------------------------------------
559*cdf0e10cSrcweir 
560*cdf0e10cSrcweir String __EXPORT ScPivotItem::GetValueText() const
561*cdf0e10cSrcweir {
562*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ScPivotItem"));
563*cdf0e10cSrcweir }
564*cdf0e10cSrcweir 
565*cdf0e10cSrcweir //------------------------------------------------------------------------
566*cdf0e10cSrcweir 
567*cdf0e10cSrcweir int __EXPORT ScPivotItem::operator==( const SfxPoolItem& rItem ) const
568*cdf0e10cSrcweir {
569*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
570*cdf0e10cSrcweir 
571*cdf0e10cSrcweir 	const ScPivotItem& rPItem = (const ScPivotItem&)rItem;
572*cdf0e10cSrcweir 	DBG_ASSERT( pSaveData && rPItem.pSaveData, "pSaveData" );
573*cdf0e10cSrcweir 	return ( *pSaveData == *rPItem.pSaveData &&
574*cdf0e10cSrcweir 			 aDestRange == rPItem.aDestRange &&
575*cdf0e10cSrcweir 			 bNewSheet  == rPItem.bNewSheet );
576*cdf0e10cSrcweir }
577*cdf0e10cSrcweir 
578*cdf0e10cSrcweir //------------------------------------------------------------------------
579*cdf0e10cSrcweir 
580*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScPivotItem::Clone( SfxItemPool * ) const
581*cdf0e10cSrcweir {
582*cdf0e10cSrcweir 	return new ScPivotItem( *this );
583*cdf0e10cSrcweir }
584*cdf0e10cSrcweir 
585*cdf0e10cSrcweir 
586*cdf0e10cSrcweir // -----------------------------------------------------------------------
587*cdf0e10cSrcweir //      ScSolveItem - Daten fuer den Solver-Dialog
588*cdf0e10cSrcweir // -----------------------------------------------------------------------
589*cdf0e10cSrcweir 
590*cdf0e10cSrcweir ScSolveItem::ScSolveItem( sal_uInt16                nWhichP,
591*cdf0e10cSrcweir 						  const ScSolveParam*	pSolveData )
592*cdf0e10cSrcweir     :   SfxPoolItem ( nWhichP )
593*cdf0e10cSrcweir {
594*cdf0e10cSrcweir 	if ( pSolveData ) theSolveData = *pSolveData;
595*cdf0e10cSrcweir }
596*cdf0e10cSrcweir 
597*cdf0e10cSrcweir //------------------------------------------------------------------------
598*cdf0e10cSrcweir 
599*cdf0e10cSrcweir ScSolveItem::ScSolveItem( const ScSolveItem& rItem )
600*cdf0e10cSrcweir 	:   SfxPoolItem		( rItem ),
601*cdf0e10cSrcweir 		theSolveData	( rItem.theSolveData )
602*cdf0e10cSrcweir {
603*cdf0e10cSrcweir }
604*cdf0e10cSrcweir 
605*cdf0e10cSrcweir //------------------------------------------------------------------------
606*cdf0e10cSrcweir 
607*cdf0e10cSrcweir __EXPORT ScSolveItem::~ScSolveItem()
608*cdf0e10cSrcweir {
609*cdf0e10cSrcweir }
610*cdf0e10cSrcweir 
611*cdf0e10cSrcweir //------------------------------------------------------------------------
612*cdf0e10cSrcweir 
613*cdf0e10cSrcweir String __EXPORT ScSolveItem::GetValueText() const
614*cdf0e10cSrcweir {
615*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ScSolveItem"));
616*cdf0e10cSrcweir }
617*cdf0e10cSrcweir 
618*cdf0e10cSrcweir //------------------------------------------------------------------------
619*cdf0e10cSrcweir 
620*cdf0e10cSrcweir int __EXPORT ScSolveItem::operator==( const SfxPoolItem& rItem ) const
621*cdf0e10cSrcweir {
622*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
623*cdf0e10cSrcweir 
624*cdf0e10cSrcweir 	const ScSolveItem& rPItem = (const ScSolveItem&)rItem;
625*cdf0e10cSrcweir 
626*cdf0e10cSrcweir 	return ( theSolveData == rPItem.theSolveData );
627*cdf0e10cSrcweir }
628*cdf0e10cSrcweir 
629*cdf0e10cSrcweir //------------------------------------------------------------------------
630*cdf0e10cSrcweir 
631*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScSolveItem::Clone( SfxItemPool * ) const
632*cdf0e10cSrcweir {
633*cdf0e10cSrcweir 	return new ScSolveItem( *this );
634*cdf0e10cSrcweir }
635*cdf0e10cSrcweir 
636*cdf0e10cSrcweir // -----------------------------------------------------------------------
637*cdf0e10cSrcweir //      ScTabOpItem - Daten fuer den TabOp-Dialog
638*cdf0e10cSrcweir // -----------------------------------------------------------------------
639*cdf0e10cSrcweir 
640*cdf0e10cSrcweir ScTabOpItem::ScTabOpItem( sal_uInt16                nWhichP,
641*cdf0e10cSrcweir 						  const ScTabOpParam*	pTabOpData )
642*cdf0e10cSrcweir     :   SfxPoolItem ( nWhichP )
643*cdf0e10cSrcweir {
644*cdf0e10cSrcweir 	if ( pTabOpData ) theTabOpData = *pTabOpData;
645*cdf0e10cSrcweir }
646*cdf0e10cSrcweir 
647*cdf0e10cSrcweir //------------------------------------------------------------------------
648*cdf0e10cSrcweir 
649*cdf0e10cSrcweir ScTabOpItem::ScTabOpItem( const ScTabOpItem& rItem )
650*cdf0e10cSrcweir 	:   SfxPoolItem		( rItem ),
651*cdf0e10cSrcweir 		theTabOpData	( rItem.theTabOpData )
652*cdf0e10cSrcweir {
653*cdf0e10cSrcweir }
654*cdf0e10cSrcweir 
655*cdf0e10cSrcweir //------------------------------------------------------------------------
656*cdf0e10cSrcweir 
657*cdf0e10cSrcweir __EXPORT ScTabOpItem::~ScTabOpItem()
658*cdf0e10cSrcweir {
659*cdf0e10cSrcweir }
660*cdf0e10cSrcweir 
661*cdf0e10cSrcweir //------------------------------------------------------------------------
662*cdf0e10cSrcweir 
663*cdf0e10cSrcweir String __EXPORT ScTabOpItem::GetValueText() const
664*cdf0e10cSrcweir {
665*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ScTabOpItem"));
666*cdf0e10cSrcweir }
667*cdf0e10cSrcweir 
668*cdf0e10cSrcweir //------------------------------------------------------------------------
669*cdf0e10cSrcweir 
670*cdf0e10cSrcweir int __EXPORT ScTabOpItem::operator==( const SfxPoolItem& rItem ) const
671*cdf0e10cSrcweir {
672*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
673*cdf0e10cSrcweir 
674*cdf0e10cSrcweir 	const ScTabOpItem& rPItem = (const ScTabOpItem&)rItem;
675*cdf0e10cSrcweir 
676*cdf0e10cSrcweir 	return ( theTabOpData == rPItem.theTabOpData );
677*cdf0e10cSrcweir }
678*cdf0e10cSrcweir 
679*cdf0e10cSrcweir //------------------------------------------------------------------------
680*cdf0e10cSrcweir 
681*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScTabOpItem::Clone( SfxItemPool * ) const
682*cdf0e10cSrcweir {
683*cdf0e10cSrcweir 	return new ScTabOpItem( *this );
684*cdf0e10cSrcweir }
685*cdf0e10cSrcweir 
686*cdf0e10cSrcweir 
687*cdf0e10cSrcweir // -----------------------------------------------------------------------
688*cdf0e10cSrcweir //      ScCondFrmtItem - Daten fuer den Dialog bedingte Formatierung
689*cdf0e10cSrcweir // -----------------------------------------------------------------------
690*cdf0e10cSrcweir 
691*cdf0e10cSrcweir ScCondFrmtItem::ScCondFrmtItem( sal_uInt16 nWhichP,
692*cdf0e10cSrcweir //!								const ScConditionalFormat* pCondFrmt )
693*cdf0e10cSrcweir 								const ScConditionalFormat& rCondFrmt )
694*cdf0e10cSrcweir     :   SfxPoolItem ( nWhichP ),
695*cdf0e10cSrcweir 		theCondFrmtData ( rCondFrmt )	//!
696*cdf0e10cSrcweir {
697*cdf0e10cSrcweir //!	if ( pCondFrmt ) theCondFrmtData = *pCondFrmt;
698*cdf0e10cSrcweir }
699*cdf0e10cSrcweir 
700*cdf0e10cSrcweir //------------------------------------------------------------------------
701*cdf0e10cSrcweir 
702*cdf0e10cSrcweir ScCondFrmtItem::ScCondFrmtItem( const ScCondFrmtItem& rItem )
703*cdf0e10cSrcweir 	:   SfxPoolItem		( rItem ),
704*cdf0e10cSrcweir 		theCondFrmtData ( rItem.theCondFrmtData )
705*cdf0e10cSrcweir {
706*cdf0e10cSrcweir }
707*cdf0e10cSrcweir 
708*cdf0e10cSrcweir //------------------------------------------------------------------------
709*cdf0e10cSrcweir 
710*cdf0e10cSrcweir __EXPORT ScCondFrmtItem::~ScCondFrmtItem()
711*cdf0e10cSrcweir {
712*cdf0e10cSrcweir }
713*cdf0e10cSrcweir 
714*cdf0e10cSrcweir //------------------------------------------------------------------------
715*cdf0e10cSrcweir 
716*cdf0e10cSrcweir String __EXPORT ScCondFrmtItem::GetValueText() const
717*cdf0e10cSrcweir {
718*cdf0e10cSrcweir 	return String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("ScCondFrmtItem"));
719*cdf0e10cSrcweir }
720*cdf0e10cSrcweir 
721*cdf0e10cSrcweir //------------------------------------------------------------------------
722*cdf0e10cSrcweir 
723*cdf0e10cSrcweir int __EXPORT ScCondFrmtItem::operator==( const SfxPoolItem& rItem ) const
724*cdf0e10cSrcweir {
725*cdf0e10cSrcweir 	DBG_ASSERT( SfxPoolItem::operator==( rItem ), "unequal Which or Type" );
726*cdf0e10cSrcweir 
727*cdf0e10cSrcweir 	const ScCondFrmtItem& rPItem = (const ScCondFrmtItem&)rItem;
728*cdf0e10cSrcweir 
729*cdf0e10cSrcweir 	return ( theCondFrmtData == rPItem.theCondFrmtData );
730*cdf0e10cSrcweir }
731*cdf0e10cSrcweir 
732*cdf0e10cSrcweir //------------------------------------------------------------------------
733*cdf0e10cSrcweir 
734*cdf0e10cSrcweir SfxPoolItem* __EXPORT ScCondFrmtItem::Clone( SfxItemPool * ) const
735*cdf0e10cSrcweir {
736*cdf0e10cSrcweir 	return new ScCondFrmtItem( *this );
737*cdf0e10cSrcweir }
738