Kaydet (Commit) a2d51f28 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS sixtyfour04 (1.4.326); FILE MERGED

2006/03/14 13:04:47 cmc 1.4.326.1: #i63161# streaming ULONGS to/from disk
üst 307ab68d
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: outlobj.cxx,v $ * $RCSfile: outlobj.cxx,v $
* *
* $Revision: 1.4 $ * $Revision: 1.5 $
* *
* last change: $Author: rt $ $Date: 2005-09-08 23:58:47 $ * last change: $Author: vg $ $Date: 2006-04-07 08:19:17 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -65,7 +65,7 @@ OutlinerParaObject::OutlinerParaObject( USHORT nParaCount ) ...@@ -65,7 +65,7 @@ OutlinerParaObject::OutlinerParaObject( USHORT nParaCount )
bIsEditDoc = TRUE; bIsEditDoc = TRUE;
pDepthArr = new USHORT[ nParaCount ]; pDepthArr = new USHORT[ nParaCount ];
nCount = (ULONG)nParaCount; nCount = nParaCount;
} }
OutlinerParaObject::OutlinerParaObject( const OutlinerParaObject& rObj ) OutlinerParaObject::OutlinerParaObject( const OutlinerParaObject& rObj )
...@@ -74,7 +74,7 @@ OutlinerParaObject::OutlinerParaObject( const OutlinerParaObject& rObj ) ...@@ -74,7 +74,7 @@ OutlinerParaObject::OutlinerParaObject( const OutlinerParaObject& rObj )
bIsEditDoc = rObj.bIsEditDoc; bIsEditDoc = rObj.bIsEditDoc;
nCount = rObj.nCount; nCount = rObj.nCount;
pDepthArr = new USHORT[ (USHORT)nCount ]; pDepthArr = new USHORT[ nCount ];
memcpy( pDepthArr, rObj.pDepthArr, (size_t)(sizeof(USHORT)*nCount) ); memcpy( pDepthArr, rObj.pDepthArr, (size_t)(sizeof(USHORT)*nCount) );
pText = rObj.pText->Clone(); pText = rObj.pText->Clone();
} }
...@@ -135,7 +135,7 @@ void OutlinerParaObject::SetStyleSheets( USHORT nLevel, const XubString rNewName ...@@ -135,7 +135,7 @@ void OutlinerParaObject::SetStyleSheets( USHORT nLevel, const XubString rNewName
void OutlinerParaObject::Store(SvStream& rStream ) const void OutlinerParaObject::Store(SvStream& rStream ) const
{ {
rStream << nCount; rStream << nCount;
rStream << (ULONG) 0x42345678; rStream << static_cast<sal_uInt32>(0x42345678);
pText->Store( rStream ); pText->Store( rStream );
for( USHORT nPos=0; nPos < nCount; nPos++ ) for( USHORT nPos=0; nPos < nCount; nPos++ )
...@@ -149,10 +149,10 @@ OutlinerParaObject* OutlinerParaObject::Create( SvStream& rStream, SfxItemPool* ...@@ -149,10 +149,10 @@ OutlinerParaObject* OutlinerParaObject::Create( SvStream& rStream, SfxItemPool*
OutlinerParaObject* pPObj = NULL; OutlinerParaObject* pPObj = NULL;
USHORT nVersion = 0; USHORT nVersion = 0;
ULONG nCount; sal_uInt32 nCount;
rStream >> nCount; rStream >> nCount;
ULONG nSyncRef; sal_uInt32 nSyncRef;
rStream >> nSyncRef; rStream >> nSyncRef;
if( nSyncRef == 0x12345678 ) if( nSyncRef == 0x12345678 )
nVersion = 1; nVersion = 1;
...@@ -174,7 +174,7 @@ OutlinerParaObject* OutlinerParaObject::Create( SvStream& rStream, SfxItemPool* ...@@ -174,7 +174,7 @@ OutlinerParaObject* OutlinerParaObject::Create( SvStream& rStream, SfxItemPool*
{ {
EditTextObject* pText = EditTextObject::Create( rStream, NULL ); EditTextObject* pText = EditTextObject::Create( rStream, NULL );
DBG_ASSERT(pText,"CreateEditTextObject failed") DBG_ASSERT(pText,"CreateEditTextObject failed")
ULONG nSync = 0; sal_uInt32 nSync = 0;
rStream >> nSync; rStream >> nSync;
DBG_ASSERT(nSync==nSyncRef,"Stream out of sync") DBG_ASSERT(nSync==nSyncRef,"Stream out of sync")
USHORT nDepth; USHORT nDepth;
...@@ -218,7 +218,7 @@ OutlinerParaObject* OutlinerParaObject::Create( SvStream& rStream, SfxItemPool* ...@@ -218,7 +218,7 @@ OutlinerParaObject* OutlinerParaObject::Create( SvStream& rStream, SfxItemPool*
nCurPara++; nCurPara++;
if( nCount ) if( nCount )
{ {
ULONG nSync = 0; sal_uInt32 nSync = 0;
rStream >> nSync; rStream >> nSync;
DBG_ASSERT(nSync==nSyncRef,"Stream out of sync") DBG_ASSERT(nSync==nSyncRef,"Stream out of sync")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment