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