#75362# additional flag to quickly check if 'Add Error' is in the list
This commit is contained in:
parent
900b807f8b
commit
b70135f37d
2 changed files with 21 additions and 7 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: detdata.hxx,v $
|
||||
*
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2000-09-18 16:44:48 $
|
||||
* last change: $Author: nn $ $Date: 2002-11-04 15:45:51 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -121,8 +121,10 @@ SV_DECL_PTRARR_DEL(ScDetOpArr_Impl, ScDetOpDataPtr, SC_DETOP_GROW, SC_DETOP_GROW
|
|||
|
||||
class ScDetOpList : public ScDetOpArr_Impl
|
||||
{
|
||||
BOOL bHasAddError; // updated in Append
|
||||
|
||||
public:
|
||||
ScDetOpList() {}
|
||||
ScDetOpList() : bHasAddError(FALSE) {}
|
||||
ScDetOpList(const ScDetOpList& rList);
|
||||
~ScDetOpList() {}
|
||||
|
||||
|
@ -131,10 +133,12 @@ public:
|
|||
|
||||
BOOL operator==( const ScDetOpList& r ) const; // fuer Ref-Undo
|
||||
|
||||
void Append( ScDetOpData* pData ) { Insert( pData, Count() ); }
|
||||
void Append( ScDetOpData* pData );
|
||||
|
||||
void Load( SvStream& rStream );
|
||||
void Store( SvStream& rStream ) const;
|
||||
|
||||
BOOL HasAddError() const { return bHasAddError; }
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: detdata.cxx,v $
|
||||
*
|
||||
* $Revision: 1.1.1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: hr $ $Date: 2000-09-19 00:16:17 $
|
||||
* last change: $Author: nn $ $Date: 2002-11-04 15:46:18 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -79,7 +79,8 @@ SV_IMPL_PTRARR( ScDetOpArr_Impl, ScDetOpDataPtr );
|
|||
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
ScDetOpList::ScDetOpList(const ScDetOpList& rList)
|
||||
ScDetOpList::ScDetOpList(const ScDetOpList& rList) :
|
||||
bHasAddError( FALSE )
|
||||
{
|
||||
USHORT nCount = rList.Count();
|
||||
|
||||
|
@ -111,6 +112,15 @@ void ScDetOpList::UpdateReference( ScDocument* pDoc, UpdateRefMode eUpdateRefMod
|
|||
}
|
||||
}
|
||||
|
||||
void ScDetOpList::Append( ScDetOpData* pData )
|
||||
{
|
||||
if ( pData->GetOperation() == SCDETOP_ADDERROR )
|
||||
bHasAddError = TRUE;
|
||||
|
||||
Insert( pData, Count() );
|
||||
}
|
||||
|
||||
|
||||
BOOL ScDetOpList::operator==( const ScDetOpList& r ) const
|
||||
{
|
||||
// fuer Ref-Undo
|
||||
|
|
Loading…
Reference in a new issue