Lines Matching refs:rStrm

76     virtual void        ImplLoad( SvStream& rStrm );
77 virtual void ImplSave( SvStream& rStrm );
95 virtual void ImplLoad( SvStream& rStrm );
96 virtual void ImplSave( SvStream& rStrm );
114 virtual void ImplLoad( SvStream& rStrm );
115 virtual void ImplSave( SvStream& rStrm );
160 virtual void ImplLoad( SvStream& rStrm );
161 virtual void ImplSave( SvStream& rStrm );
174 virtual void ImplLoad( SvStream& rStrm );
175 virtual void ImplSave( SvStream& rStrm );
194 virtual void ImplLoad( SvStream& rStrm );
195 virtual void ImplSave( SvStream& rStrm );
216 virtual void ImplLoad( SvStream& rStrm );
217 virtual void ImplSave( SvStream& rStrm );
238 virtual void ImplLoad( SvStream& rStrm );
239 virtual void ImplSave( SvStream& rStrm );
268 String SfxOleStringHelper::LoadString8( SvStream& rStrm ) const in LoadString8()
270 return IsUnicode() ? ImplLoadString16( rStrm ) : ImplLoadString8( rStrm ); in LoadString8()
273 void SfxOleStringHelper::SaveString8( SvStream& rStrm, const String& rValue ) const in SaveString8() argument
276 ImplSaveString16( rStrm, rValue ); in SaveString8()
278 ImplSaveString8( rStrm, rValue ); in SaveString8()
281 String SfxOleStringHelper::LoadString16( SvStream& rStrm ) const in LoadString16()
283 return ImplLoadString16( rStrm ); in LoadString16()
286 void SfxOleStringHelper::SaveString16( SvStream& rStrm, const String& rValue ) const in SaveString16() argument
288 ImplSaveString16( rStrm, rValue ); in SaveString16()
291 String SfxOleStringHelper::ImplLoadString8( SvStream& rStrm ) const in ImplLoadString8()
296 rStrm >> nSize; in ImplLoadString8()
303 rStrm.Read( &aBuffer.front(), static_cast< sal_Size >( nSize ) ); in ImplLoadString8()
310 String SfxOleStringHelper::ImplLoadString16( SvStream& rStrm ) const in ImplLoadString16()
315 rStrm >> nSize; in ImplLoadString16()
326 rStrm >> cChar; in ImplLoadString16()
331 rStrm.SeekRel( 2 ); in ImplLoadString16()
339 void SfxOleStringHelper::ImplSaveString8( SvStream& rStrm, const String& rValue ) const in ImplSaveString8() argument
345 rStrm << nSize; in ImplSaveString8()
347 rStrm.Write( aEncoded.GetBuffer(), aEncoded.Len() ); in ImplSaveString8()
348 rStrm << sal_uInt8( 0 ); in ImplSaveString8()
351 void SfxOleStringHelper::ImplSaveString16( SvStream& rStrm, const String& rValue ) const in ImplSaveString16() argument
355 rStrm << nSize; in ImplSaveString16()
358 rStrm << static_cast< sal_uInt16 >( rValue.GetChar( nIdx ) ); in ImplSaveString16()
359 rStrm << sal_uInt16( 0 ); in ImplSaveString16()
362 rStrm << sal_uInt16( 0 ); in ImplSaveString16()
371 ErrCode SfxOleObjectBase::Load( SvStream& rStrm ) in Load() argument
374 ImplLoad( rStrm ); in Load()
375 SetError( rStrm.GetErrorCode() ); in Load()
379 ErrCode SfxOleObjectBase::Save( SvStream& rStrm ) in Save() argument
382 ImplSave( rStrm ); in Save()
383 SetError( rStrm.GetErrorCode() ); in Save()
387 void SfxOleObjectBase::LoadObject( SvStream& rStrm, SfxOleObjectBase& rObj ) in LoadObject() argument
389 SetError( rObj.Load( rStrm ) ); in LoadObject()
392 void SfxOleObjectBase::SaveObject( SvStream& rStrm, SfxOleObjectBase& rObj ) in SaveObject() argument
394 SetError( rObj.Save( rStrm ) ); in SaveObject()
404 void SfxOleCodePageProperty::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
408 rStrm >> nCodePage; in ImplLoad()
412 void SfxOleCodePageProperty::ImplSave( SvStream& rStrm ) in ImplSave() argument
415 rStrm << GetCodePage(); in ImplSave()
426 void SfxOleInt32Property::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
428 rStrm >> mnValue; in ImplLoad()
431 void SfxOleInt32Property::ImplSave( SvStream& rStrm ) in ImplSave() argument
433 rStrm << mnValue; in ImplSave()
444 void SfxOleDoubleProperty::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
446 rStrm >> mfValue; in ImplLoad()
449 void SfxOleDoubleProperty::ImplSave( SvStream& rStrm ) in ImplSave() argument
451 rStrm << mfValue; in ImplSave()
462 void SfxOleBoolProperty::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
465 rStrm >> nValue; in ImplLoad()
469 void SfxOleBoolProperty::ImplSave( SvStream& rStrm ) in ImplSave() argument
471 rStrm << static_cast< sal_Int16 >( mbValue ? -1 : 0 ); in ImplSave()
520 void SfxOleString8Property::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
522 SetValue( LoadString8( rStrm ) ); in ImplLoad()
525 void SfxOleString8Property::ImplSave( SvStream& rStrm ) in ImplSave() argument
527 SaveString8( rStrm, GetValue() ); in ImplSave()
542 void SfxOleString16Property::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
544 SetValue( LoadString16( rStrm ) ); in ImplLoad()
547 void SfxOleString16Property::ImplSave( SvStream& rStrm ) in ImplSave() argument
549 SaveString16( rStrm, GetValue() ); in ImplSave()
565 void SfxOleFileTimeProperty::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
568 rStrm >> nLower >> nUpper; in ImplLoad()
585 void SfxOleFileTimeProperty::ImplSave( SvStream& rStrm ) in ImplSave() argument
606 rStrm << nLower << nUpper; in ImplSave()
624 void SfxOleThumbnailProperty::ImplSave( SvStream& rStrm ) in ImplSave() argument
649 rStrm << nClipSize << CLIPFMT_WIN << CLIPDATAFMT_DIB; in ImplSave()
650 rStrm.Write( mData.getConstArray(), mData.getLength() ); in ImplSave()
674 void SfxOleBlobProperty::ImplSave( SvStream& rStrm ) in ImplSave() argument
677 rStrm.Write( mData.getConstArray(), mData.getLength() ); in ImplSave()
705 void SfxOleDictionaryProperty::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
711 …for( sal_Int32 nIdx = 0; (nIdx < nNameCount) && (rStrm.GetErrorCode() == SVSTREAM_OK) && !rStrm.Is… in ImplLoad()
714 rStrm >> nPropId; in ImplLoad()
716 maPropNameMap[ nPropId ] = LoadString8( rStrm ); in ImplLoad()
720 void SfxOleDictionaryProperty::ImplSave( SvStream& rStrm ) in ImplSave() argument
725 rStrm << aIt->first; in ImplSave()
727 SaveString8( rStrm, aIt->second ); in ImplSave()
931 void SfxOleSection::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
934 mnStartPos = rStrm.Tell(); in ImplLoad()
937 rStrm >> nSize >> nPropCount; in ImplLoad()
942 … sal_Int32 nPropIdx = 0; (nPropIdx < nPropCount) && (rStrm.GetErrorCode() == SVSTREAM_OK) && !rStr… in ImplLoad()
946 rStrm >> nPropId >> nPropPos; in ImplLoad()
952 if( (aCodePageIt != aPropPosMap.end()) && SeekToPropertyPos( rStrm, aCodePageIt->second ) ) in ImplLoad()
956 rStrm >> nPropType; in ImplLoad()
958 LoadObject( rStrm, maCodePageProp ); in ImplLoad()
965 if( (aDictIt != aPropPosMap.end()) && SeekToPropertyPos( rStrm, aDictIt->second ) ) in ImplLoad()
972 rStrm >> nNameCount; in ImplLoad()
974 LoadObject( rStrm, maDictProp ); in ImplLoad()
983 if( SeekToPropertyPos( rStrm, aIt->second ) ) in ImplLoad()
984 LoadProperty( rStrm, aIt->first ); in ImplLoad()
987 void SfxOleSection::ImplSave( SvStream& rStrm ) in ImplSave() argument
994 mnStartPos = rStrm.Tell(); in ImplSave()
998 rStrm << sal_uInt32( 0 ) << nPropCount; in ImplSave()
1001 sal_Size nPropPosPos = rStrm.Tell(); in ImplSave()
1002 rStrm.SeekRel( static_cast< sal_sSize >( 8 * nPropCount ) ); in ImplSave()
1006 SaveProperty( rStrm, maDictProp, nPropPosPos ); in ImplSave()
1008 SaveProperty( rStrm, maCodePageProp, nPropPosPos ); in ImplSave()
1011 SaveProperty( rStrm, *aIt->second, nPropPosPos ); in ImplSave()
1014 rStrm.Seek( STREAM_SEEK_TO_END ); in ImplSave()
1015 sal_uInt32 nSectSize = static_cast< sal_uInt32 >( rStrm.Tell() - mnStartPos ); in ImplSave()
1016 rStrm.Seek( mnStartPos ); in ImplSave()
1017 rStrm << nSectSize; in ImplSave()
1020 bool SfxOleSection::SeekToPropertyPos( SvStream& rStrm, sal_uInt32 nPropPos ) const in SeekToPropertyPos() argument
1022 rStrm.Seek( static_cast< sal_Size >( mnStartPos + nPropPos ) ); in SeekToPropertyPos()
1023 return rStrm.GetErrorCode() == SVSTREAM_OK; in SeekToPropertyPos()
1026 void SfxOleSection::LoadProperty( SvStream& rStrm, sal_Int32 nPropId ) in LoadProperty() argument
1030 rStrm >> nPropType; in LoadProperty()
1057 SetError( xProp->Load( rStrm ) ); in LoadProperty()
1062 void SfxOleSection::SaveProperty( SvStream& rStrm, SfxOlePropertyBase& rProp, sal_Size& rnPropPosPo… in SaveProperty() argument
1064 rStrm.Seek( STREAM_SEEK_TO_END ); in SaveProperty()
1065 sal_uInt32 nPropPos = static_cast< sal_uInt32 >( rStrm.Tell() - mnStartPos ); in SaveProperty()
1067 rStrm << rProp.GetPropType(); in SaveProperty()
1069 SaveObject( rStrm, rProp ); in SaveProperty()
1071 while( (rStrm.Tell() & 3) != 0 ) in SaveProperty()
1072 rStrm << sal_uInt8( 0 ); in SaveProperty()
1074 rStrm.Seek( rnPropPosPos ); in SaveProperty()
1075 rStrm << rProp.GetPropId() << nPropPos; in SaveProperty()
1076 rnPropPosPos = rStrm.Tell(); in SaveProperty()
1146 void SfxOlePropertySet::ImplLoad( SvStream& rStrm ) in ImplLoad() argument
1155 rStrm >> nByteOrder >> nVersion >> nOsMinor >> nOsType >> aGuid >> nSectCount; in ImplLoad()
1158 sal_Size nSectPosPos = rStrm.Tell(); in ImplLoad()
1159 … sal_Int32 nSectIdx = 0; (nSectIdx < nSectCount) && (rStrm.GetErrorCode() == SVSTREAM_OK) && !rStr… in ImplLoad()
1162 rStrm.Seek( nSectPosPos ); in ImplLoad()
1165 rStrm >> aSectGuid >> nSectPos; in ImplLoad()
1166 nSectPosPos = rStrm.Tell(); in ImplLoad()
1168 rStrm.Seek( static_cast< sal_Size >( nSectPos ) ); in ImplLoad()
1169 if( rStrm.GetErrorCode() == SVSTREAM_OK ) in ImplLoad()
1170 LoadObject( rStrm, AddSection( aSectGuid ) ); in ImplLoad()
1174 void SfxOlePropertySet::ImplSave( SvStream& rStrm ) in ImplSave() argument
1179 rStrm << sal_uInt16( 0xFFFE ) // byte order in ImplSave()
1187 sal_Size nSectPosPos = rStrm.Tell(); in ImplSave()
1188 rStrm.SeekRel( static_cast< sal_sSize >( 20 * nSectCount ) ); in ImplSave()
1194 rStrm.Seek( STREAM_SEEK_TO_END ); in ImplSave()
1195 sal_uInt32 nSectPos = static_cast< sal_uInt32 >( rStrm.Tell() ); in ImplSave()
1197 SaveObject( rStrm, rSection ); in ImplSave()
1199 rStrm.Seek( nSectPosPos ); in ImplSave()
1200 rStrm << aIt->first << nSectPos; in ImplSave()
1201 nSectPosPos = rStrm.Tell(); in ImplSave()