diff options
Diffstat (limited to 'tools/source/ref')
-rw-r--r-- | tools/source/ref/errinf.cxx | 4 | ||||
-rw-r--r-- | tools/source/ref/globname.cxx | 40 | ||||
-rw-r--r-- | tools/source/ref/pstm.cxx | 126 | ||||
-rw-r--r-- | tools/source/ref/ref.cxx | 6 |
4 files changed, 88 insertions, 88 deletions
diff --git a/tools/source/ref/errinf.cxx b/tools/source/ref/errinf.cxx index 106fe98fed06..c40a3c28b335 100644 --- a/tools/source/ref/errinf.cxx +++ b/tools/source/ref/errinf.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -371,7 +371,7 @@ USHORT ErrorHandler::HandleError_Impl( // Error 1 ist General Error im Sfx if(pInfo->GetErrorCode()!=1) { HandleError_Impl(1, USHRT_MAX, bJustCreateString, rError); - } + } else { DBG_ERROR("Error 1 nicht gehandeled"); } diff --git a/tools/source/ref/globname.cxx b/tools/source/ref/globname.cxx index 82db356dc130..7a7f5c56c738 100644 --- a/tools/source/ref/globname.cxx +++ b/tools/source/ref/globname.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -51,7 +51,7 @@ ImpSvGlobalName::ImpSvGlobalName( int ) } /************************************************************************* -|* ImpSvGlobalName::operator ==() +|* ImpSvGlobalName::operator ==() *************************************************************************/ BOOL ImpSvGlobalName::operator == ( const ImpSvGlobalName & rObj ) const { @@ -59,7 +59,7 @@ BOOL ImpSvGlobalName::operator == ( const ImpSvGlobalName & rObj ) const } /************************************************************************* -|* SvGlobalName::SvGlobalName() +|* SvGlobalName::SvGlobalName() *************************************************************************/ SvGlobalName::SvGlobalName() { @@ -109,7 +109,7 @@ SvGlobalName::SvGlobalName( UINT32 n1, USHORT n2, USHORT n3, } /************************************************************************* -|* SvGlobalName::~SvGlobalName() +|* SvGlobalName::~SvGlobalName() *************************************************************************/ SvGlobalName::~SvGlobalName() { @@ -119,7 +119,7 @@ SvGlobalName::~SvGlobalName() } /************************************************************************* -|* SvGlobalName::operator = () +|* SvGlobalName::operator = () *************************************************************************/ SvGlobalName & SvGlobalName::operator = ( const SvGlobalName & rObj ) { @@ -132,7 +132,7 @@ SvGlobalName & SvGlobalName::operator = ( const SvGlobalName & rObj ) } /************************************************************************* -|* SvGlobalName::NewImp() +|* SvGlobalName::NewImp() *************************************************************************/ void SvGlobalName::NewImp() { @@ -145,8 +145,8 @@ void SvGlobalName::NewImp() } /************************************************************************* -|* SvGlobalName::operator << () -|* SvGlobalName::operator >> () +|* SvGlobalName::operator << () +|* SvGlobalName::operator >> () *************************************************************************/ SvStream& operator << ( SvStream& rOStr, const SvGlobalName & rObj ) { @@ -186,7 +186,7 @@ SvStream& operator >> ( SvStream& rStr, SvGlobalName & rObj ) /************************************************************************* -|* SvGlobalName::operator < () +|* SvGlobalName::operator < () *************************************************************************/ BOOL SvGlobalName::operator < ( const SvGlobalName & rObj ) const { @@ -221,7 +221,7 @@ BOOL SvGlobalName::operator < ( const SvGlobalName & rObj ) const } /************************************************************************* -|* SvGlobalName::operator +=() +|* SvGlobalName::operator +=() *************************************************************************/ SvGlobalName & SvGlobalName::operator += ( UINT32 n ) { @@ -244,7 +244,7 @@ SvGlobalName & SvGlobalName::operator += ( UINT32 n ) } /************************************************************************* -|* SvGlobalName::operator ==() +|* SvGlobalName::operator ==() *************************************************************************/ BOOL SvGlobalName::operator == ( const SvGlobalName & rObj ) const { @@ -258,11 +258,11 @@ void SvGlobalName::MakeFromMemory( void * pData ) } /************************************************************************* -|* SvGlobalName::MakeId() +|* SvGlobalName::MakeId() *************************************************************************/ BOOL SvGlobalName::MakeId( const String & rIdStr ) { - ByteString aStr( rIdStr, RTL_TEXTENCODING_ASCII_US ); + ByteString aStr( rIdStr, RTL_TEXTENCODING_ASCII_US ); sal_Char * pStr = (sal_Char *)aStr.GetBuffer(); if( rIdStr.Len() == 36 && '-' == pStr[ 8 ] && '-' == pStr[ 13 ] @@ -338,7 +338,7 @@ BOOL SvGlobalName::MakeId( const String & rIdStr ) } /************************************************************************* -|* SvGlobalName::GetctorName() +|* SvGlobalName::GetctorName() *************************************************************************/ String SvGlobalName::GetctorName() const { @@ -368,7 +368,7 @@ String SvGlobalName::GetctorName() const } /************************************************************************* -|* SvGlobalName::GetHexName() +|* SvGlobalName::GetHexName() *************************************************************************/ String SvGlobalName::GetHexName() const { @@ -406,7 +406,7 @@ String SvGlobalName::GetHexName() const /************** SvGlobalNameList ****************************************/ /************************************************************************/ /************************************************************************* -|* SvGlobalNameList::SvGlobalNameList() +|* SvGlobalNameList::SvGlobalNameList() *************************************************************************/ SvGlobalNameList::SvGlobalNameList() : aList( 1, 1 ) @@ -414,7 +414,7 @@ SvGlobalNameList::SvGlobalNameList() } /************************************************************************* -|* SvGlobalNameList::~SvGlobalNameList() +|* SvGlobalNameList::~SvGlobalNameList() *************************************************************************/ SvGlobalNameList::~SvGlobalNameList() { @@ -428,7 +428,7 @@ SvGlobalNameList::~SvGlobalNameList() } /************************************************************************* -|* SvGlobalNameList::Append() +|* SvGlobalNameList::Append() *************************************************************************/ void SvGlobalNameList::Append( const SvGlobalName & rName ) { @@ -437,7 +437,7 @@ void SvGlobalNameList::Append( const SvGlobalName & rName ) } /************************************************************************* -|* SvGlobalNameList::GetObject() +|* SvGlobalNameList::GetObject() *************************************************************************/ SvGlobalName SvGlobalNameList::GetObject( ULONG nPos ) { @@ -445,7 +445,7 @@ SvGlobalName SvGlobalNameList::GetObject( ULONG nPos ) } /************************************************************************* -|* SvGlobalNameList::IsEntry() +|* SvGlobalNameList::IsEntry() *************************************************************************/ BOOL SvGlobalNameList::IsEntry( const SvGlobalName & rName ) { diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx index 2cc814a40455..48db82685b31 100644 --- a/tools/source/ref/pstm.cxx +++ b/tools/source/ref/pstm.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,7 +36,7 @@ /***********************************************************************/ /************************************************************************ -|* SvClassManager::Register() +|* SvClassManager::Register() *************************************************************************/ void SvClassManager::Register( USHORT nClassId, SvCreateInstancePersist pFunc ) { @@ -49,7 +49,7 @@ void SvClassManager::Register( USHORT nClassId, SvCreateInstancePersist pFunc ) } /************************************************************************ -|* SvClassManager::Get() +|* SvClassManager::Get() *************************************************************************/ SvCreateInstancePersist SvClassManager::Get( USHORT nClassId ) { @@ -67,11 +67,11 @@ SvPersistBaseMemberList::SvPersistBaseMemberList( USHORT nInitSz, USHORT nResize ) : SuperSvPersistBaseMemberList( nInitSz, nResize ){} -#define PERSIST_LIST_VER (BYTE)0 -#define PERSIST_LIST_DBGUTIL (BYTE)0x80 +#define PERSIST_LIST_VER (BYTE)0 +#define PERSIST_LIST_DBGUTIL (BYTE)0x80 /************************************************************************ -|* SvPersistBaseMemberList::WriteOnlyStreamedObjects() +|* SvPersistBaseMemberList::WriteOnlyStreamedObjects() *************************************************************************/ void SvPersistBaseMemberList::WriteObjects( SvPersistStream & rStm, BOOL bOnlyStreamed ) const @@ -112,7 +112,7 @@ void SvPersistBaseMemberList::WriteObjects( SvPersistStream & rStm, } /************************************************************************ -|* operator << () +|* operator << () *************************************************************************/ SvPersistStream& operator << ( SvPersistStream & rStm, const SvPersistBaseMemberList & rLst ) @@ -122,7 +122,7 @@ SvPersistStream& operator << ( SvPersistStream & rStm, } /************************************************************************ -|* operator >> () +|* operator >> () *************************************************************************/ SvPersistStream& operator >> ( SvPersistStream & rStm, SvPersistBaseMemberList & rLst ) @@ -165,11 +165,11 @@ SvPersistStream& operator >> ( SvPersistStream & rStm, //========================================================================= SvPersistStream::SvPersistStream ( - SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und + SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und gespeichert werdn k"onnen */ - SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf + SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf dem der PersistStream arbeitet */ - UINT32 nStartIdxP /* Ab diesem Index werden die Id's f"ur + UINT32 nStartIdxP /* Ab diesem Index werden die Id's f"ur die Objekte vergeben, er muss gr"osser als Null sein. */ ) @@ -179,7 +179,7 @@ SvPersistStream::SvPersistStream , nStartIdx( nStartIdxP ) , pRefStm( NULL ) , nFlags( 0 ) -/* [Beschreibung] +/* [Beschreibung] Der Konstruktor der Klasse SvPersistStream. Die Objekte rMgr und pStream d"urfen nicht ver"andert werden, solange sie in einem @@ -200,9 +200,9 @@ SvPersistStream::SvPersistStream //========================================================================= SvPersistStream::SvPersistStream ( - SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und + SvClassManager & rMgr, /* Alle Factorys, deren Objekt geladen und gespeichert werdn k"onnen */ - SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf + SvStream * pStream, /* Dieser Stream wird als Medium genommen, auf dem der PersistStream arbeitet */ const SvPersistStream & rPersStm /* Wenn PersistStream's verschachtelt werden, @@ -215,7 +215,7 @@ SvPersistStream::SvPersistStream , nStartIdx( rPersStm.GetCurMaxIndex() +1 ) , pRefStm( &rPersStm ) , nFlags( 0 ) -/* [Beschreibung] +/* [Beschreibung] Der Konstruktor der Klasse SvPersistStream. Die Objekte rMgr und pStream d"urfen nicht ver"andert werden, solange sie in einem @@ -237,7 +237,7 @@ SvPersistStream::SvPersistStream //========================================================================= SvPersistStream::~SvPersistStream() -/* [Beschreibung] +/* [Beschreibung] Der Detruktor ruft die Methode <SvPersistStream::SetStream> mit NULL. @@ -249,10 +249,10 @@ SvPersistStream::~SvPersistStream() //========================================================================= void SvPersistStream::SetStream ( - SvStream * pStream /* auf diesem Stream arbeitet der PersistStream */ + SvStream * pStream /* auf diesem Stream arbeitet der PersistStream */ ) -/* [Beschreibung] +/* [Beschreibung] Es wird ein Medium (pStream) eingesetzt, auf dem PersistStream arbeitet. Dieses darf nicht von aussen modifiziert werden, solange es @@ -281,13 +281,13 @@ void SvPersistStream::SetStream //========================================================================= USHORT SvPersistStream::IsA() const -/* [Beschreibung] +/* [Beschreibung] Gibt den Identifier dieses Streamklasse zur"uck. [R"uckgabewert] - USHORT ID_PERSISTSTREAM wird zur"uckgegeben. + USHORT ID_PERSISTSTREAM wird zur"uckgegeben. [Querverweise] @@ -300,7 +300,7 @@ USHORT SvPersistStream::IsA() const /************************************************************************* -|* SvPersistStream::ResetError() +|* SvPersistStream::ResetError() *************************************************************************/ void SvPersistStream::ResetError() { @@ -310,7 +310,7 @@ void SvPersistStream::ResetError() } /************************************************************************* -|* SvPersistStream::GetData() +|* SvPersistStream::GetData() *************************************************************************/ ULONG SvPersistStream::GetData( void* pData, ULONG nSize ) { @@ -321,7 +321,7 @@ ULONG SvPersistStream::GetData( void* pData, ULONG nSize ) } /************************************************************************* -|* SvPersistStream::PutData() +|* SvPersistStream::PutData() *************************************************************************/ ULONG SvPersistStream::PutData( const void* pData, ULONG nSize ) { @@ -332,7 +332,7 @@ ULONG SvPersistStream::PutData( const void* pData, ULONG nSize ) } /************************************************************************* -|* SvPersistStream::Seek() +|* SvPersistStream::Seek() *************************************************************************/ ULONG SvPersistStream::SeekPos( ULONG nPos ) { @@ -343,14 +343,14 @@ ULONG SvPersistStream::SeekPos( ULONG nPos ) } /************************************************************************* -|* SvPersistStream::FlushData() +|* SvPersistStream::FlushData() *************************************************************************/ void SvPersistStream::FlushData() { } /************************************************************************* -|* SvPersistStream::GetCurMaxIndex() +|* SvPersistStream::GetCurMaxIndex() *************************************************************************/ ULONG SvPersistStream::GetCurMaxIndex( const SvPersistUIdx & rIdx ) const { @@ -367,7 +367,7 @@ ULONG SvPersistStream::GetCurMaxIndex( const SvPersistUIdx & rIdx ) const } /************************************************************************* -|* SvPersistStream::GetIndex() +|* SvPersistStream::GetIndex() *************************************************************************/ ULONG SvPersistStream::GetIndex( SvPersistBase * pObj ) const { @@ -378,7 +378,7 @@ ULONG SvPersistStream::GetIndex( SvPersistBase * pObj ) const } /************************************************************************* -|* SvPersistStream::GetObject) +|* SvPersistStream::GetObject) *************************************************************************/ SvPersistBase * SvPersistStream::GetObject( ULONG nIdx ) const { @@ -390,30 +390,30 @@ SvPersistBase * SvPersistStream::GetObject( ULONG nIdx ) const } //========================================================================= -#define LEN_1 0x80 -#define LEN_2 0x40 -#define LEN_4 0x20 -#define LEN_5 0x10 +#define LEN_1 0x80 +#define LEN_2 0x40 +#define LEN_4 0x20 +#define LEN_5 0x10 UINT32 SvPersistStream::ReadCompressed ( - SvStream & rStm /* Aus diesem Stream werden die komprimierten Daten + SvStream & rStm /* Aus diesem Stream werden die komprimierten Daten gelesen */ ) -/* [Beschreibung] +/* [Beschreibung] Ein im Stream komprimiert abgelegtes Wort wird gelesen. In welchem Format komprimiert wird, siehe <SvPersistStream::WriteCompressed>. [R"uckgabewert] - UINT32 Das nicht komprimierte Wort wird zur"uckgegeben. + UINT32 Das nicht komprimierte Wort wird zur"uckgegeben. [Querverweise] */ { UINT32 nRet(0); - BYTE nMask; + BYTE nMask; rStm >> nMask; if( nMask & LEN_1 ) nRet = ~LEN_1 & nMask; @@ -457,16 +457,16 @@ void SvPersistStream::WriteCompressed ( SvStream & rStm,/* Aus diesem Stream werden die komprimierten Daten gelesen */ - UINT32 nVal /* Dieser Wert wird komprimiert geschrieben */ + UINT32 nVal /* Dieser Wert wird komprimiert geschrieben */ ) -/* [Beschreibung] +/* [Beschreibung] Das "ubergebene Wort wird komprimiert und in den Stream geschrieben. Folgendermassen wir komprimiert. - nVal < 0x80 => 0x80 + nVal ist 1 Byte gross. - nVal < 0x4000 => 0x4000 + nVal ist 2 Byte gross. - nVal < 0x20000000 => 0x20000000 + nVal ist 4 Byte gross. - nVal > 0x1FFFFFFF => 0x1000000000+ nVal ist 5 Byte gross. + nVal < 0x80 => 0x80 + nVal ist 1 Byte gross. + nVal < 0x4000 => 0x4000 + nVal ist 2 Byte gross. + nVal < 0x20000000 => 0x20000000 + nVal ist 4 Byte gross. + nVal > 0x1FFFFFFF => 0x1000000000+ nVal ist 5 Byte gross. [Querverweise] @@ -499,14 +499,14 @@ void SvPersistStream::WriteCompressed //========================================================================= UINT32 SvPersistStream::WriteDummyLen() -/* [Beschreibung] +/* [Beschreibung] Die Methode schreibt 4 Byte in den Stream und gibt die Streamposition zur"uck. [R"uckgabewert] - UINT32 Die Position hinter der L"angenangabe wird zur"uckgegeben. + UINT32 Die Position hinter der L"angenangabe wird zur"uckgegeben. [Beispiel] @@ -537,10 +537,10 @@ UINT32 SvPersistStream::WriteDummyLen() //========================================================================= void SvPersistStream::WriteLen ( - UINT32 nObjPos /* die Position + 4, an der die L"ange geschrieben + UINT32 nObjPos /* die Position + 4, an der die L"ange geschrieben wird. */ ) -/* [Beschreibung] +/* [Beschreibung] Die Methode schreibt die Differenz zwischen der aktuellen und nObjPos als UINT32 an die Position nObjPos -4 im Stream. Danach @@ -574,11 +574,11 @@ void SvPersistStream::WriteLen //========================================================================= UINT32 SvPersistStream::ReadLen ( - UINT32 * pTestPos /* Die Position des Streams, nach dem Lesen der + UINT32 * pTestPos /* Die Position des Streams, nach dem Lesen der L"ange, wird zur"uckgegeben. Es darf auch NULL "ubergeben werden. */ ) -/* [Beschreibung] +/* [Beschreibung] Liest die L"ange die vorher mit <SvPersistStream::WriteDummyLen> und <SvPersistStream::WriteLen> geschrieben wurde. @@ -594,19 +594,19 @@ UINT32 SvPersistStream::ReadLen //========================================================================= // Dateirormat abw"arts kompatibel #ifdef STOR_NO_OPTIMIZE -#define P_VER (BYTE)0x00 +#define P_VER (BYTE)0x00 #else -#define P_VER (BYTE)0x01 +#define P_VER (BYTE)0x01 #endif -#define P_VER_MASK (BYTE)0x0F -#define P_ID_0 (BYTE)0x80 -#define P_OBJ (BYTE)0x40 -#define P_DBGUTIL (BYTE)0x20 -#define P_ID (BYTE)0x10 +#define P_VER_MASK (BYTE)0x0F +#define P_ID_0 (BYTE)0x80 +#define P_OBJ (BYTE)0x40 +#define P_DBGUTIL (BYTE)0x20 +#define P_ID (BYTE)0x10 #ifdef STOR_NO_OPTIMIZE -#define P_STD P_DBGUTIL +#define P_STD P_DBGUTIL #else -#define P_STD 0 +#define P_STD 0 #endif static void WriteId @@ -726,15 +726,15 @@ SvPersistStream& SvPersistStream::WritePointer //========================================================================= UINT32 SvPersistStream::ReadObj ( - SvPersistBase * & rpObj, - BOOL bRegister + SvPersistBase * & rpObj, + BOOL bRegister ) { - BYTE nHdr; - UINT32 nId = 0; - USHORT nClassId; + BYTE nHdr; + UINT32 nId = 0; + USHORT nClassId; - rpObj = NULL; // Spezifikation: Im Fehlerfall 0. + rpObj = NULL; // Spezifikation: Im Fehlerfall 0. ReadId( *this, nHdr, nId, nClassId ); // reine Versionsnummer durch maskieren diff --git a/tools/source/ref/ref.cxx b/tools/source/ref/ref.cxx index a8fd05b9da83..42ae49975a50 100644 --- a/tools/source/ref/ref.cxx +++ b/tools/source/ref/ref.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,14 +35,14 @@ SV_IMPL_REF_LIST( SvRefBase,SvRefBase* ) /************************************************************************** -#* SvRefBase::~SvRefBase() +#* SvRefBase::~SvRefBase() **************************************************************************/ SvRefBase::~SvRefBase() { } /************************************************************************** -#* SvRefBase::QueryDelete() +#* SvRefBase::QueryDelete() **************************************************************************/ void SvRefBase::QueryDelete() { |