diff options
author | Noel Grandin <noel@peralex.com> | 2014-01-14 13:52:54 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-01-16 16:08:34 +0100 |
commit | c648d0872058941ed18499a8bf1993037d9b5532 (patch) | |
tree | 47121b3eff267e34480335130106ca1c33be6fd9 /sfx2 | |
parent | 70f360f34a9f6605864644feee3c9b9b6ffb79a1 (diff) |
convert SvStream::operator<< overloads to more explicit methods
This is in preparation for more conversion of SvStream::operator<< calls
to use more explicit method names.
This converts the subclasses that have their own convenience overloads
of operator<< to use normal methods.
Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/fileobj.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/oleprops.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/printer.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/appl/fileobj.cxx b/sfx2/source/appl/fileobj.cxx index 1ffdaef6bd55..4ab7ec916a8b 100644 --- a/sfx2/source/appl/fileobj.cxx +++ b/sfx2/source/appl/fileobj.cxx @@ -165,7 +165,7 @@ sal_Bool SvFileObject::GetData( ::com::sun::star::uno::Any & rData, if( GRAPHIC_NONE != aGrf.GetType() ) { aMemStm.SetVersion( SOFFICE_FILEFORMAT_50 ); - aMemStm << aGrf; + WriteGraphic( aMemStm, aGrf ); } break; diff --git a/sfx2/source/doc/oleprops.cxx b/sfx2/source/doc/oleprops.cxx index a58c90f028ee..b95293dd7c05 100644 --- a/sfx2/source/doc/oleprops.cxx +++ b/sfx2/source/doc/oleprops.cxx @@ -1255,7 +1255,7 @@ void SfxOlePropertySet::ImplSave( SvStream& rStrm ) .WriteUInt16( sal_uInt16( 0 ) ) // version .WriteUInt16( sal_uInt16( 1 ) ) // OS minor version .WriteUInt16( sal_uInt16( 2 ) ); // OS type always windows for text encoding - rStrm << aGuid; // unused guid + WriteSvGlobalName( rStrm, aGuid ); // unused guid rStrm .WriteInt32( nSectCount ); // number of sections // write placeholders for section guid/position pairs @@ -1272,7 +1272,7 @@ void SfxOlePropertySet::ImplSave( SvStream& rStrm ) SaveObject( rStrm, rSection ); // write section guid/position pair rStrm.Seek( nSectPosPos ); - rStrm << aIt->first; + WriteSvGlobalName( rStrm, aIt->first ); rStrm.WriteUInt32( nSectPos ); nSectPosPos = rStrm.Tell(); } diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 0392c5496d4a..d76f2e4894f3 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -2004,7 +2004,7 @@ Any SAL_CALL SfxBaseModel::getTransferData( const datatransfer::DataFlavor& aFla aDesc.mbCanLink = sal_False; SvMemoryStream aMemStm( 1024, 1024 ); - aMemStm << aDesc; + WriteTransferableObjectDescriptor( aMemStm, aDesc ); aAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aMemStm.GetData() ), aMemStm.Tell() ); } else diff --git a/sfx2/source/view/printer.cxx b/sfx2/source/view/printer.cxx index 67565c744651..9d8c36c4e560 100644 --- a/sfx2/source/view/printer.cxx +++ b/sfx2/source/view/printer.cxx @@ -93,7 +93,7 @@ SvStream& SfxPrinter::Store( SvStream& rStream ) const */ { - return ( rStream << GetJobSetup() ); + return WriteJobSetup( rStream, GetJobSetup() ); } //-------------------------------------------------------------------- |