summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/runtime/methods.cxx2
-rw-r--r--connectivity/source/drivers/dbase/DIndex.cxx4
-rw-r--r--connectivity/source/drivers/dbase/dindexnode.cxx11
-rw-r--r--connectivity/source/inc/dbase/DIndex.hxx4
-rw-r--r--connectivity/source/inc/dbase/dindexnode.hxx8
-rw-r--r--dbaccess/source/ui/inc/TableRow.hxx4
-rw-r--r--dbaccess/source/ui/tabledesign/TableRow.cxx2
-rw-r--r--dbaccess/source/ui/tabledesign/TableRowExchange.cxx2
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx4
-rw-r--r--editeng/source/items/bulitem.cxx2
-rw-r--r--editeng/source/items/flditem.cxx4
-rw-r--r--editeng/source/items/frmitems.cxx22
-rw-r--r--editeng/source/items/numitem.cxx6
-rw-r--r--editeng/source/items/textitem.cxx7
-rw-r--r--idl/inc/bastype.hxx14
-rw-r--r--idl/source/objects/basobj.cxx18
-rw-r--r--idl/source/objects/bastype.cxx12
-rw-r--r--idl/source/objects/module.cxx12
-rw-r--r--idl/source/objects/object.cxx10
-rw-r--r--idl/source/objects/slot.cxx20
-rw-r--r--idl/source/objects/types.cxx30
-rw-r--r--idl/source/prj/database.cxx4
-rw-r--r--include/editeng/adjustitem.hxx2
-rw-r--r--include/editeng/hyphenzoneitem.hxx2
-rw-r--r--include/editeng/lspcitem.hxx2
-rw-r--r--include/editeng/orphitem.hxx2
-rw-r--r--include/editeng/tstpitem.hxx2
-rw-r--r--include/editeng/widwitem.hxx2
-rw-r--r--include/sot/filelist.hxx2
-rw-r--r--include/svtools/grfmgr.hxx4
-rw-r--r--include/svtools/transfer.hxx2
-rw-r--r--include/svx/galtheme.hxx2
-rw-r--r--include/svx/svdsob.hxx4
-rw-r--r--include/svx/xexch.hxx2
-rw-r--r--include/tools/color.hxx2
-rw-r--r--include/tools/fract.hxx2
-rw-r--r--include/tools/gen.hxx4
-rw-r--r--include/tools/globname.hxx2
-rw-r--r--include/tools/inetmsg.hxx4
-rw-r--r--include/tools/poly.hxx4
-rw-r--r--include/tools/pstm.hxx6
-rw-r--r--include/vcl/animate.hxx2
-rw-r--r--include/vcl/font.hxx2
-rw-r--r--include/vcl/gdimtf.hxx2
-rw-r--r--include/vcl/gfxlink.hxx2
-rw-r--r--include/vcl/gradient.hxx4
-rw-r--r--include/vcl/graph.hxx2
-rw-r--r--include/vcl/graphictools.hxx4
-rw-r--r--include/vcl/hatch.hxx4
-rw-r--r--include/vcl/jobset.hxx2
-rw-r--r--include/vcl/lineinfo.hxx4
-rw-r--r--include/vcl/mapmod.hxx4
-rw-r--r--include/vcl/print.hxx2
-rw-r--r--include/vcl/region.hxx2
-rw-r--r--include/vcl/wall.hxx2
-rw-r--r--sc/inc/bigrange.hxx13
-rw-r--r--sc/source/core/tool/autoform.cxx8
-rw-r--r--sd/source/filter/eppt/pptexanimations.cxx6
-rw-r--r--sd/source/filter/html/pubdlg.cxx16
-rw-r--r--sd/source/filter/ppt/pptanimations.hxx2
-rw-r--r--sfx2/source/appl/fileobj.cxx2
-rw-r--r--sfx2/source/doc/oleprops.cxx4
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx2
-rw-r--r--sfx2/source/view/printer.cxx2
-rw-r--r--sot/source/base/filelist.cxx4
-rw-r--r--sot/source/sdstor/stgelem.cxx6
-rw-r--r--sot/source/sdstor/stgelem.hxx2
-rw-r--r--sot/source/sdstor/stgole.cxx2
-rw-r--r--svl/source/items/ptitem.cxx2
-rw-r--r--svl/source/items/rectitem.cxx2
-rw-r--r--svl/source/items/szitem.cxx2
-rw-r--r--svtools/source/graphic/grfattr.cxx2
-rw-r--r--svtools/source/graphic/grfmgr.cxx7
-rw-r--r--svtools/source/graphic/provider.cxx2
-rw-r--r--svtools/source/misc/imap.cxx8
-rw-r--r--svtools/source/misc/templatefoldercache.cxx4
-rw-r--r--svtools/source/misc/transfer.cxx8
-rw-r--r--svx/inc/galobj.hxx2
-rw-r--r--svx/source/gallery2/galobj.cxx4
-rw-r--r--svx/source/gallery2/galtheme.cxx6
-rw-r--r--svx/source/tbxctrls/colrctrl.cxx2
-rw-r--r--svx/source/xoutdev/xattr.cxx2
-rw-r--r--svx/source/xoutdev/xexch.cxx2
-rw-r--r--sw/source/core/text/inftxt.hxx10
-rw-r--r--sw/source/core/text/porlin.hxx2
-rw-r--r--toolkit/source/awt/vclxprinter.cxx2
-rw-r--r--tools/source/generic/color.cxx4
-rw-r--r--tools/source/generic/fract.cxx2
-rw-r--r--tools/source/generic/gen.cxx4
-rw-r--r--tools/source/generic/poly.cxx4
-rw-r--r--tools/source/generic/poly2.cxx4
-rw-r--r--tools/source/inet/inetmsg.cxx2
-rw-r--r--tools/source/ref/globname.cxx2
-rw-r--r--tools/source/ref/pstm.cxx4
-rw-r--r--vcl/inc/impfont.hxx2
-rw-r--r--vcl/inc/impgraph.hxx2
-rw-r--r--vcl/inc/wall2.hxx2
-rw-r--r--vcl/source/filter/sgfbram.cxx45
-rw-r--r--vcl/source/filter/sgfbram.hxx4
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx2
-rw-r--r--vcl/source/gdi/animate.cxx8
-rw-r--r--vcl/source/gdi/cvtsvm.cxx90
-rw-r--r--vcl/source/gdi/dibtools.cxx2
-rw-r--r--vcl/source/gdi/font.cxx8
-rw-r--r--vcl/source/gdi/gdimetafiletools.cxx4
-rw-r--r--vcl/source/gdi/gdimtf.cxx10
-rw-r--r--vcl/source/gdi/gfxlink.cxx5
-rw-r--r--vcl/source/gdi/gradient.cxx9
-rw-r--r--vcl/source/gdi/graph.cxx6
-rw-r--r--vcl/source/gdi/graphictools.cxx14
-rw-r--r--vcl/source/gdi/hatch.cxx9
-rw-r--r--vcl/source/gdi/impgraph.cxx16
-rw-r--r--vcl/source/gdi/jobset.cxx2
-rw-r--r--vcl/source/gdi/lineinfo.cxx6
-rw-r--r--vcl/source/gdi/mapmod.cxx14
-rw-r--r--vcl/source/gdi/metaact.cxx120
-rw-r--r--vcl/source/gdi/print.cxx2
-rw-r--r--vcl/source/gdi/region.cxx4
-rw-r--r--vcl/source/gdi/wall.cxx12
119 files changed, 445 insertions, 409 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 59514949b933..36d7c3cba782 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -4519,7 +4519,7 @@ RTLFUNC(SavePicture)
{
SvFileStream aOStream( rPar.Get(2)->GetOUString(), STREAM_WRITE | STREAM_TRUNC );
Graphic aGraphic = ((SbStdPicture*)pObj)->GetGraphic();
- aOStream << aGraphic;
+ WriteGraphic( aOStream, aGraphic );
}
}
diff --git a/connectivity/source/drivers/dbase/DIndex.cxx b/connectivity/source/drivers/dbase/DIndex.cxx
index 8fbfe9bb8183..55790e9fe15a 100644
--- a/connectivity/source/drivers/dbase/DIndex.cxx
+++ b/connectivity/source/drivers/dbase/DIndex.cxx
@@ -307,7 +307,7 @@ void ODbaseIndex::Release(sal_Bool bSave)
{
m_aHeader.db_rootpage = m_nRootPage;
m_aHeader.db_pagecount = m_nPageCount;
- (*m_pFileStream) << *this;
+ WriteODbaseIndex( *m_pFileStream, *this );
}
m_nRootPage = m_nPageCount = 0;
m_nCurNode = NODE_NOTFOUND;
@@ -356,7 +356,7 @@ SvStream& connectivity::dbase::operator >> (SvStream &rStream, ODbaseIndex& rInd
return rStream;
}
//------------------------------------------------------------------
-SvStream& connectivity::dbase::operator << (SvStream &rStream, ODbaseIndex& rIndex)
+SvStream& connectivity::dbase::WriteODbaseIndex(SvStream &rStream, ODbaseIndex& rIndex)
{
rStream.Seek(0);
OSL_VERIFY_EQUALS( rStream.Write(&rIndex.m_aHeader,DINDEX_PAGE_SIZE), DINDEX_PAGE_SIZE, "Write not successful: Wrong header size for dbase index!");
diff --git a/connectivity/source/drivers/dbase/dindexnode.cxx b/connectivity/source/drivers/dbase/dindexnode.cxx
index 3341af9dae54..cfa06db4614b 100644
--- a/connectivity/source/drivers/dbase/dindexnode.cxx
+++ b/connectivity/source/drivers/dbase/dindexnode.cxx
@@ -90,7 +90,7 @@ void ONDXPage::QueryDelete()
{
// Store in GarbageCollector
if (IsModified() && rIndex.m_pFileStream)
- (*rIndex.m_pFileStream) << *this;
+ WriteONDXPage( *rIndex.m_pFileStream, *this );
bModified = sal_False;
if (rIndex.UseCollector())
@@ -713,7 +713,7 @@ void ONDXNode::Write(SvStream &rStream, const ONDXPage& rPage) const
}
rStream.Write(&pBuf[0], nLen);
}
- rStream << aChild;
+ WriteONDXPagePtr( rStream, aChild );
}
@@ -791,7 +791,7 @@ SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPagePtr& rPag
return rStream;
}
// -----------------------------------------------------------------------------
-SvStream& connectivity::dbase::operator << (SvStream &rStream, const ONDXPagePtr& rPage)
+SvStream& connectivity::dbase::WriteONDXPagePtr(SvStream &rStream, const ONDXPagePtr& rPage)
{
rStream.WriteUInt32( rPage.nPagePos );
return rStream;
@@ -845,7 +845,7 @@ SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPage& rPage)
}
//------------------------------------------------------------------
-SvStream& connectivity::dbase::operator << (SvStream &rStream, const ONDXPage& rPage)
+SvStream& connectivity::dbase::WriteONDXPage(SvStream &rStream, const ONDXPage& rPage)
{
// Page doesn't exist yet
sal_uIntPtr nSize = (rPage.GetPagePos() + 1) * DINDEX_PAGE_SIZE;
@@ -862,7 +862,8 @@ SvStream& connectivity::dbase::operator << (SvStream &rStream, const ONDXPage& r
OSL_UNUSED( nCurrentPos );
nValue = rPage.nCount;
- rStream.WriteUInt32( nValue ) << rPage.aChild;
+ rStream.WriteUInt32( nValue );
+ WriteONDXPagePtr( rStream, rPage.aChild );
sal_uInt16 i = 0;
for (; i < rPage.nCount; i++)
diff --git a/connectivity/source/inc/dbase/DIndex.hxx b/connectivity/source/inc/dbase/DIndex.hxx
index 7a0bb52dc749..19da5d5fce11 100644
--- a/connectivity/source/inc/dbase/DIndex.hxx
+++ b/connectivity/source/inc/dbase/DIndex.hxx
@@ -40,7 +40,7 @@ namespace connectivity
class ODbaseIndex : public ODbaseIndex_BASE
{
- friend SvStream& operator << (SvStream &rStream, ODbaseIndex&);
+ friend SvStream& WriteODbaseIndex(SvStream &rStream, ODbaseIndex&);
friend SvStream& operator >> (SvStream &rStream, ODbaseIndex&);
friend class ONDXNode;
@@ -141,7 +141,7 @@ namespace connectivity
sal_Bool ConvertToKey(ONDXKey* rKey, sal_uInt32 nRec, const ORowSetValue& rValue);
};
- SvStream& operator << (SvStream &rStream, ODbaseIndex&);
+ SvStream& WriteODbaseIndex(SvStream &rStream, ODbaseIndex&);
SvStream& operator >> (SvStream &rStream, ODbaseIndex&);
}
}
diff --git a/connectivity/source/inc/dbase/dindexnode.hxx b/connectivity/source/inc/dbase/dindexnode.hxx
index 81a831540b02..a6b0086c01b5 100644
--- a/connectivity/source/inc/dbase/dindexnode.hxx
+++ b/connectivity/source/inc/dbase/dindexnode.hxx
@@ -91,7 +91,7 @@ namespace connectivity
class ONDXPagePtr : public ONDXPageRef
{
- friend SvStream& operator << (SvStream &rStream, const ONDXPagePtr&);
+ friend SvStream& WriteONDXPagePtr(SvStream &rStream, const ONDXPagePtr&);
friend SvStream& operator >> (SvStream &rStream, ONDXPagePtr&);
sal_uInt32 nPagePos; // Position in the index file
@@ -115,7 +115,7 @@ namespace connectivity
{
friend class ODbaseIndex;
- friend SvStream& operator << (SvStream &rStream, const ONDXPage&);
+ friend SvStream& WriteONDXPage(SvStream &rStream, const ONDXPage&);
friend SvStream& operator >> (SvStream &rStream, ONDXPage&);
sal_uInt32 nPagePos; // Position in the index file
@@ -190,7 +190,7 @@ namespace connectivity
SV_IMPL_REF(ONDXPage);
- SvStream& operator << (SvStream &rStream, const ONDXPagePtr&);
+ SvStream& WriteONDXPagePtr(SvStream &rStream, const ONDXPagePtr&);
SvStream& operator >> (SvStream &rStream, ONDXPagePtr&);
inline sal_Bool ONDXPage::IsRoot() const {return !aParent.Is();}
@@ -212,7 +212,7 @@ namespace connectivity
aChild->SetParent(this);
}
SvStream& operator >> (SvStream &rStream, ONDXPage& rPage);
- SvStream& operator << (SvStream &rStream, const ONDXPage& rPage);
+ SvStream& WriteONDXPage(SvStream &rStream, const ONDXPage& rPage);
typedef ::std::vector<ONDXPage*> ONDXPageList;
diff --git a/dbaccess/source/ui/inc/TableRow.hxx b/dbaccess/source/ui/inc/TableRow.hxx
index dbd9f4eb1696..e50392867be9 100644
--- a/dbaccess/source/ui/inc/TableRow.hxx
+++ b/dbaccess/source/ui/inc/TableRow.hxx
@@ -69,10 +69,12 @@ namespace dbaui
*/
inline bool IsReadOnly() const { return m_bReadOnly; }
- friend SvStream& operator<<( SvStream& rStr,const OTableRow& _rRow );
+ friend SvStream& WriteOTableRow( SvStream& rStr,const OTableRow& _rRow );
friend SvStream& operator>>( SvStream& rStr, OTableRow& _rRow );
};
+
}
+
#endif // INCLUDED_DBACCESS_SOURCE_UI_INC_TABLEROW_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/dbaccess/source/ui/tabledesign/TableRow.cxx b/dbaccess/source/ui/tabledesign/TableRow.cxx
index 63284a4a9f6c..03dfe087ee19 100644
--- a/dbaccess/source/ui/tabledesign/TableRow.cxx
+++ b/dbaccess/source/ui/tabledesign/TableRow.cxx
@@ -106,7 +106,7 @@ void OTableRow::SetFieldType( const TOTypeInfoSP& _pType, sal_Bool _bForce )
namespace dbaui
{
- SvStream& operator<<( SvStream& _rStr, const OTableRow& _rRow )
+ SvStream& WriteOTableRow( SvStream& _rStr, const OTableRow& _rRow )
{
_rStr.WriteInt32( _rRow.m_nPos );
OFieldDescription* pFieldDesc = _rRow.GetActFieldDescr();
diff --git a/dbaccess/source/ui/tabledesign/TableRowExchange.cxx b/dbaccess/source/ui/tabledesign/TableRowExchange.cxx
index 0d520398bac5..fd485d9dcc6e 100644
--- a/dbaccess/source/ui/tabledesign/TableRowExchange.cxx
+++ b/dbaccess/source/ui/tabledesign/TableRowExchange.cxx
@@ -41,7 +41,7 @@ namespace dbaui
::std::vector< ::boost::shared_ptr<OTableRow> >::const_iterator aIter = pRows->begin();
::std::vector< ::boost::shared_ptr<OTableRow> >::const_iterator aEnd = pRows->end();
for(;aIter != aEnd;++aIter)
- (*rxOStm) << *(*aIter);
+ WriteOTableRow(*rxOStm, **aIter);
return sal_True;
}
}
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index f6aad734bbbf..ac5d6e71ad91 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -363,7 +363,7 @@ namespace drawinglayer
{
SvMemoryStream aMemStm;
- aMemStm << *pSvtGraphicFill;
+ WriteSvtGraphicFill( aMemStm, *pSvtGraphicFill );
mpMetaFile->AddAction(new MetaCommentAction("XPATHFILL_SEQ_BEGIN", 0, static_cast< const sal_uInt8* >(aMemStm.GetData()), aMemStm.Seek(STREAM_SEEK_TO_END)));
mnSvtGraphicFillCount++;
}
@@ -552,7 +552,7 @@ namespace drawinglayer
{
SvMemoryStream aMemStm;
- aMemStm << *pSvtGraphicStroke;
+ WriteSvtGraphicStroke( aMemStm, *pSvtGraphicStroke );
mpMetaFile->AddAction(new MetaCommentAction("XPATHSTROKE_SEQ_BEGIN", 0, static_cast< const sal_uInt8* >(aMemStm.GetData()), aMemStm.Seek(STREAM_SEEK_TO_END)));
mnSvtGraphicStrokeCount++;
}
diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx
index 1c681c4342a0..e9bfaf37baa6 100644
--- a/editeng/source/items/bulitem.cxx
+++ b/editeng/source/items/bulitem.cxx
@@ -38,7 +38,7 @@ void SvxBulletItem::StoreFont( SvStream& rStream, const Font& rFont )
{
sal_uInt16 nTemp;
- rStream << rFont.GetColor();
+ WriteColor( rStream, rFont.GetColor() );
nTemp = (sal_uInt16)rFont.GetFamily(); rStream.WriteUInt16( nTemp );
nTemp = (sal_uInt16)GetSOStoreTextEncoding((rtl_TextEncoding)rFont.GetCharSet());
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index 96de48e1be4a..47d68f0e0aa2 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -342,10 +342,10 @@ SvStream& SvxFieldItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) co
{
// SvxFieldData not enough, because not registered on ClassMgr.
SvxURLField aDummyData;
- aPStrm << &aDummyData;
+ WriteSvPersistBase( aPStrm , &aDummyData );
}
else
- aPStrm << pField;
+ WriteSvPersistBase( aPStrm, pField );
return rStrm;
}
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 6b8c60a5d2d4..bd88e973aa0d 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -106,7 +106,7 @@ namespace
/// Store a border line to a stream.
SvStream& StoreBorderLine(SvStream &stream, const SvxBorderLine &l, sal_uInt16 version)
{
- stream << l.GetColor();
+ WriteColor( stream, l.GetColor() );
stream.WriteUInt16( l.GetOutWidth() )
.WriteUInt16( l.GetInWidth() )
.WriteUInt16( l.GetDistance() );
@@ -1512,9 +1512,9 @@ SvStream& SvxShadowItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ )
{
rStrm.WriteSChar( (sal_Int8) GetLocation() )
.WriteUInt16( (sal_uInt16) GetWidth() )
- .WriteUChar( (sal_Bool)(aShadowColor.GetTransparency() > 0) )
- << GetColor()
- << GetColor();
+ .WriteUChar( (sal_Bool)(aShadowColor.GetTransparency() > 0) );
+ WriteColor( rStrm, GetColor() );
+ WriteColor( rStrm, GetColor() );
rStrm.WriteSChar( (sal_Int8)(aShadowColor.GetTransparency() > 0 ? 0 : 1) ); //BRUSH_NULL : BRUSH_SOLID
return rStrm;
}
@@ -2612,8 +2612,8 @@ SvStream& SvxBoxInfoItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ )
const SvxBorderLine* l = pLine[ i ];
if( l )
{
- rStrm.WriteChar( (char) i )
- << l->GetColor();
+ rStrm.WriteChar( (char) i );
+ WriteColor( rStrm, l->GetColor() );
rStrm.WriteInt16( (short) l->GetOutWidth() )
.WriteInt16( (short) l->GetInWidth() )
.WriteInt16( (short) l->GetDistance() );
@@ -3257,14 +3257,14 @@ SvStream& SvxLineItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) co
{
if( pLine )
{
- rStrm << pLine->GetColor();
+ WriteColor( rStrm, pLine->GetColor() );
rStrm.WriteInt16( (short)pLine->GetOutWidth() )
.WriteInt16( (short)pLine->GetInWidth() )
.WriteInt16( (short)pLine->GetDistance() );
}
else
{
- rStrm << Color();
+ WriteColor( rStrm, Color() );
rStrm.WriteInt16( (short)0 ).WriteInt16( (short)0 ).WriteInt16( (short)0 );
}
return rStrm;
@@ -3901,8 +3901,8 @@ SfxPoolItem* SvxBrushItem::Create( SvStream& rStream, sal_uInt16 nVersion ) cons
SvStream& SvxBrushItem::Store( SvStream& rStream , sal_uInt16 /*nItemVersion*/ ) const
{
rStream.WriteUChar( (sal_Bool)sal_False );
- rStream << aColor;
- rStream << aColor;
+ WriteColor( rStream, aColor );
+ WriteColor( rStream, aColor );
rStream.WriteSChar( (sal_Int8)(aColor.GetTransparency() > 0 ? 0 : 1) ); //BRUSH_NULL : BRUSH_SOLID
sal_uInt16 nDoLoad = 0;
@@ -3916,7 +3916,7 @@ SvStream& SvxBrushItem::Store( SvStream& rStream , sal_uInt16 /*nItemVersion*/ )
rStream.WriteUInt16( nDoLoad );
if ( pImpl->pGraphicObject && maStrLink.isEmpty() )
- rStream << pImpl->pGraphicObject->GetGraphic();
+ WriteGraphic( rStream, pImpl->pGraphicObject->GetGraphic() );
if ( !maStrLink.isEmpty() )
{
OSL_FAIL("No BaseURL!");
diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx
index 719970fa6082..47bf1e061af5 100644
--- a/editeng/source/items/numitem.cxx
+++ b/editeng/source/items/numitem.cxx
@@ -283,16 +283,16 @@ SvStream& SvxNumberFormat::Store(SvStream &rStream, FontToSubsFontConverter pC
if(pBulletFont)
{
rStream.WriteUInt16( (sal_uInt16)1 );
- rStream << *pBulletFont;
+ WriteFont( rStream, *pBulletFont );
}
else
rStream.WriteUInt16( (sal_uInt16)0 );
- rStream << aGraphicSize;
+ WritePair( rStream, aGraphicSize );
Color nTempColor = nBulletColor;
if(COL_AUTO == nBulletColor.GetColor())
nTempColor = COL_BLACK;
- rStream << nTempColor;
+ WriteColor( rStream, nTempColor );
rStream.WriteUInt16( nBulletRelSize );
rStream.WriteUInt16( (sal_uInt16)IsShowSymbol() );
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 7089b026b364..d1832368662a 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -2006,9 +2006,9 @@ SvStream& SvxColorItem::Store( SvStream& rStrm , sal_uInt16 nItemVersion ) const
{
if( VERSION_USEAUTOCOLOR == nItemVersion &&
COL_AUTO == mColor.GetColor() )
- rStrm << Color( COL_BLACK );
+ WriteColor( rStrm, Color( COL_BLACK ) );
else
- rStrm << mColor;
+ WriteColor( rStrm, mColor );
return rStrm;
}
@@ -2082,7 +2082,8 @@ SfxPoolItem* SvxCharSetColorItem::Clone( SfxItemPool * ) const
SvStream& SvxCharSetColorItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const
{
- rStrm.WriteUChar( (sal_uInt8)GetSOStoreTextEncoding(GetCharSet()) ) << GetValue();
+ rStrm.WriteUChar( (sal_uInt8)GetSOStoreTextEncoding(GetCharSet()) );
+ WriteColor( rStrm, GetValue() );
return rStrm;
}
diff --git a/idl/inc/bastype.hxx b/idl/inc/bastype.hxx
index f03f3f6d4c8d..8a2fe6f65a4e 100644
--- a/idl/inc/bastype.hxx
+++ b/idl/inc/bastype.hxx
@@ -42,7 +42,7 @@ public:
static sal_uInt32 Read( SvStream & rStm );
static void Write( SvStream & rStm, sal_uInt32 nVal );
- friend SvStream& operator << (SvStream & rStm, const SvUINT32 & r )
+ friend SvStream& WriteSvUINT32(SvStream & rStm, const SvUINT32 & r )
{ SvUINT32::Write( rStm, r.nVal ); return rStm; }
friend SvStream& operator >> (SvStream & rStm, SvUINT32 & r )
{ r.nVal = SvUINT32::Read( rStm ); return rStm; }
@@ -62,7 +62,7 @@ public:
operator int ()const { return nVal; }
sal_Bool IsSet() const { return bSet; }
- friend SvStream& operator << (SvStream & rStm, const Svint & r )
+ friend SvStream& WriteSvint(SvStream & rStm, const Svint & r )
{ SvUINT32::Write( rStm, (sal_uInt32)r.nVal ); rStm << r.bSet; return rStm; }
friend SvStream& operator >> (SvStream & rStm, Svint & r )
{ r.nVal = (int)SvUINT32::Read( rStm ); rStm >> r.bSet ; return rStm; }
@@ -86,7 +86,7 @@ public:
sal_Bool Is() const { return nVal; }
sal_Bool IsSet() const { return bSet; }
- friend SvStream& operator << (SvStream &, const SvBOOL &);
+ friend SvStream& WriteSvBOOL(SvStream &, const SvBOOL &);
friend SvStream& operator >> (SvStream &, SvBOOL &);
sal_Bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm );
@@ -111,7 +111,7 @@ public:
{
return m_aStr;
}
- friend SvStream& operator << (SvStream &, const SvIdentifier &);
+ friend SvStream& WriteSvIdentifier(SvStream &, const SvIdentifier &);
friend SvStream& operator >> (SvStream &, SvIdentifier &);
sal_Bool IsSet() const
@@ -138,7 +138,7 @@ public:
sal_uInt32 GetValue() const { return nValue; }
void SetValue( sal_uInt32 nVal ) { nValue = nVal; }
- friend SvStream& operator << (SvStream &, const SvNumberIdentifier &);
+ friend SvStream& WriteSvNumberIdentifier(SvStream &, const SvNumberIdentifier &);
friend SvStream& operator >> (SvStream &, SvNumberIdentifier &);
sal_Bool ReadSvIdl( SvIdlDataBase &, SvTokenStream & rInStm );
sal_Bool ReadSvIdl( SvIdlDataBase &, SvStringHashEntry * pName,
@@ -164,7 +164,7 @@ public:
{
return !m_aStr.isEmpty();
}
- friend SvStream& operator << (SvStream &, const SvString &);
+ friend SvStream& WriteSvString(SvStream &, const SvString &);
friend SvStream& operator >> (SvStream &, SvString &);
sal_Bool ReadSvIdl( SvStringHashEntry * pName, SvTokenStream & rInStm );
@@ -215,7 +215,7 @@ public:
sal_uInt16 GetMajorVersion() const { return nMajorVersion; }
sal_uInt16 GetMinorVersion() const { return nMinorVersion; }
- friend SvStream& operator << (SvStream &, const SvVersion &);
+ friend SvStream& WriteSvVersion(SvStream &, const SvVersion &);
friend SvStream& operator >> (SvStream &, SvVersion &);
sal_Bool ReadSvIdl( SvTokenStream & rInStm );
sal_Bool WriteSvIdl( SvStream & rOutStm );
diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx
index 7901b2fa798d..c305b517c11c 100644
--- a/idl/source/objects/basobj.cxx
+++ b/idl/source/objects/basobj.cxx
@@ -145,11 +145,11 @@ void SvMetaName::Save( SvPersistStream & rStm )
if( aDescription.IsSet() ) nMask |= 0x10;
rStm << nMask;
- if( nMask & 0x01 ) rStm << aName;
- if( nMask & 0x02 ) rStm << aHelpContext;
- if( nMask & 0x04 ) rStm << aHelpText;
- if( nMask & 0x08 ) rStm << aConfigName;
- if( nMask & 0x10 ) rStm << aDescription;
+ if( nMask & 0x01 ) WriteSvString( rStm, aName );
+ if( nMask & 0x02 ) WriteSvNumberIdentifier( rStm, aHelpContext );
+ if( nMask & 0x04 ) WriteSvString( rStm, aHelpText );
+ if( nMask & 0x08 ) WriteSvString( rStm, aConfigName );
+ if( nMask & 0x10 ) WriteSvString( rStm, aDescription );
}
sal_Bool SvMetaName::SetName( const OString& rName, SvIdlDataBase * )
@@ -427,7 +427,7 @@ void SvMetaReference::Save( SvPersistStream & rStm )
// write data
rStm << nMask;
- if( nMask & 0x01 ) rStm << aRef;
+ if( nMask & 0x01 ) WriteSvPersistBase( rStm, aRef );
}
SV_IMPL_META_FACTORY1( SvMetaExtern, SvMetaReference );
@@ -472,9 +472,9 @@ void SvMetaExtern::Save( SvPersistStream & rStm )
// write data
rStm << nMask;
- if( nMask & 0x01 ) rStm << pModule;
- if( nMask & 0x02 ) rStm << aUUId;
- if( nMask & 0x04 ) rStm << aVersion;
+ if( nMask & 0x01 ) WriteSvPersistBase( rStm, pModule );
+ if( nMask & 0x02 ) WriteSvGlobalName( rStm, aUUId );
+ if( nMask & 0x04 ) WriteSvVersion( rStm, aVersion );
}
SvMetaModule * SvMetaExtern::GetModule() const
diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx
index 171c32cc78ce..bccb4e64567a 100644
--- a/idl/source/objects/bastype.cxx
+++ b/idl/source/objects/bastype.cxx
@@ -66,7 +66,7 @@ void SvUINT32::Write( SvStream & rStm, sal_uInt32 nVal )
SvPersistStream::WriteCompressed( rStm, nVal );
}
-SvStream& operator << (SvStream & rStm, const SvBOOL & rb )
+SvStream& WriteSvBOOL(SvStream & rStm, const SvBOOL & rb )
{
sal_uInt8 n = rb.nVal;
if( rb.bSet )
@@ -88,7 +88,7 @@ SvStream& operator >> (SvStream & rStm, SvBOOL & rb )
return rStm;
}
-SvStream& operator << (SvStream & rStm, const SvVersion & r )
+SvStream& WriteSvVersion(SvStream & rStm, const SvVersion & r )
{
if( (r.GetMajorVersion() || r.GetMinorVersion())
&& r.GetMajorVersion() <= 0x0F && r.GetMinorVersion() <= 0x0F )
@@ -212,7 +212,7 @@ sal_Bool SvIdentifier::WriteSvIdl( SvStringHashEntry * pName,
return sal_True;
}
-SvStream& operator << (SvStream & rStm, const SvIdentifier & r )
+SvStream& WriteSvIdentifier(SvStream & rStm, const SvIdentifier & r )
{
write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, r.getString());
return rStm;
@@ -275,9 +275,9 @@ sal_Bool SvNumberIdentifier::ReadSvIdl( SvIdlDataBase & rBase,
return sal_False;
}
-SvStream& operator << (SvStream & rStm, const SvNumberIdentifier & r )
+SvStream& WriteSvNumberIdentifier(SvStream & rStm, const SvNumberIdentifier & r )
{
- rStm << (SvIdentifier &)r;
+ WriteSvIdentifier( rStm, (SvIdentifier &)r );
SvPersistStream::WriteCompressed( rStm, r.nValue );
return rStm;
}
@@ -325,7 +325,7 @@ sal_Bool SvString::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm,
return sal_True;
}
-SvStream& operator << (SvStream & rStm, const SvString & r )
+SvStream& WriteSvString(SvStream & rStm, const SvString & r )
{
write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, r.getString());
return rStm;
diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx
index 14acf1944fbb..2bd822db0a2d 100644
--- a/idl/source/objects/module.cxx
+++ b/idl/source/objects/module.cxx
@@ -77,9 +77,9 @@ void SvMetaModule::Save( SvPersistStream & rStm )
rStm << (sal_uInt16)(MODULE_VER | IDL_WRITE_COMPILER); // Version
- rStm << aClassList;
- rStm << aTypeList;
- rStm << aAttrList;
+ WriteSvDeclPersistList( rStm, aClassList );
+ WriteSvDeclPersistList( rStm, aTypeList );
+ WriteSvDeclPersistList( rStm, aAttrList );
// browser
rStm.WriteUniOrByteString( aIdlFileName, rStm.GetStreamCharSet() );
write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aHelpFileName.getString());
@@ -90,9 +90,9 @@ void SvMetaModule::Save( SvPersistStream & rStm )
sal_uInt16 nCmpLen = 0;
sal_uLong nLenPos = rStm.Tell();
rStm << nCmpLen;
- rStm << aBeginName;
- rStm << aEndName;
- rStm << aNextName;
+ WriteSvGlobalName( rStm, aBeginName );
+ WriteSvGlobalName( rStm, aEndName );
+ WriteSvGlobalName( rStm, aNextName );
// write length of compiler data
sal_uLong nPos = rStm.Tell();
rStm.Seek( nLenPos );
diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx
index d826561fd838..81996677f701 100644
--- a/idl/source/objects/object.cxx
+++ b/idl/source/objects/object.cxx
@@ -65,7 +65,7 @@ void SvClassElement::Save( SvPersistStream & rStm )
rStm << nMask;
if( nMask & 0x01 ) rStm << aAutomation;
if( nMask & 0x02 ) write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aPrefix);
- if( nMask & 0x04 ) rStm << xClass;
+ if( nMask & 0x04 ) WriteSvPersistBase( rStm, xClass );
}
SV_IMPL_META_FACTORY1( SvMetaClass, SvMetaType );
@@ -117,10 +117,10 @@ void SvMetaClass::Save( SvPersistStream & rStm )
// write data
rStm << nMask;
- if( nMask & 0x01 ) rStm << aAttrList;
- if( nMask & 0x02 ) rStm << aSuperClass;
- if( nMask & 0x04 ) rStm << aClassList;
- if( nMask & 0x08 ) rStm << xAutomationInterface;
+ if( nMask & 0x01 ) WriteSvDeclPersistList( rStm, aAttrList );
+ if( nMask & 0x02 ) WriteSvPersistBase( rStm, aSuperClass );
+ if( nMask & 0x04 ) WriteSvDeclPersistList( rStm, aClassList );
+ if( nMask & 0x08 ) WriteSvPersistBase( rStm, xAutomationInterface );
if( nMask & 0x10 ) rStm << aAutomation;
}
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx
index c54010439a42..3f96386c24a5 100644
--- a/idl/source/objects/slot.cxx
+++ b/idl/source/objects/slot.cxx
@@ -182,19 +182,19 @@ void SvMetaSlot::Save( SvPersistStream & rStm )
// write data
rStm << nMask;
TEST_WRITE
- if( nMask & 0x0001 ) rStm << aMethod;
+ if( nMask & 0x0001 ) WriteSvPersistBase( rStm, aMethod );
TEST_WRITE
- if( nMask & 0x0002 ) rStm << aGroupId;
+ if( nMask & 0x0002 ) WriteSvIdentifier( rStm, aGroupId );
TEST_WRITE
if( nMask & 0x0004 ) rStm << aHasCoreId;
TEST_WRITE
- if( nMask & 0x0008 ) rStm << aConfigId;
+ if( nMask & 0x0008 ) WriteSvIdentifier( rStm, aConfigId );
TEST_WRITE
- if( nMask & 0x0010 ) rStm << aExecMethod;
+ if( nMask & 0x0010 ) WriteSvIdentifier( rStm, aExecMethod );
TEST_WRITE
- if( nMask & 0x0020 ) rStm << aStateMethod;
+ if( nMask & 0x0020 ) WriteSvIdentifier( rStm, aStateMethod );
TEST_WRITE
- if( nMask & 0x0040 ) rStm << aDefault;
+ if( nMask & 0x0040 ) WriteSvIdentifier( rStm, aDefault );
TEST_WRITE
if( nMask & 0x0080 ) rStm << aPseudoSlots;
TEST_WRITE
@@ -245,9 +245,9 @@ void SvMetaSlot::Save( SvPersistStream & rStm )
TEST_WRITE
if( nMask & 0x0008 ) rStm << aHasDialog;
TEST_WRITE
- if( nMask & 0x0010 ) rStm << aDisableFlags;
+ if( nMask & 0x0010 ) WriteSvString( rStm, aDisableFlags );
TEST_WRITE
- if( nMask & 0x0020 ) rStm << aPseudoPrefix;
+ if( nMask & 0x0020 ) WriteSvIdentifier( rStm, aPseudoPrefix );
TEST_WRITE
if( nMask & 0x0040 ) rStm << aRecordPerSet;
TEST_WRITE
@@ -263,7 +263,7 @@ void SvMetaSlot::Save( SvPersistStream & rStm )
TEST_WRITE
if( nMask & 0x1000 ) rStm << aContainer;
TEST_WRITE
- if( nMask & 0x2000 ) rStm << aSlotType;
+ if( nMask & 0x2000 ) WriteSvPersistBase( rStm, aSlotType );
TEST_WRITE
if( nMask & 0x4000 ) rStm << aRecordAbsolute;
TEST_WRITE
@@ -274,7 +274,7 @@ void SvMetaSlot::Save( SvPersistStream & rStm )
if( aImageReflection.IsSet() ) nMask |= 0x0002;
rStm << nMask;
TEST_WRITE
- if( nMask & 0x0001 ) rStm << aUnoName;
+ if( nMask & 0x0001 ) WriteSvString( rStm, aUnoName );
TEST_WRITE
if( nMask & 0x0002 ) rStm << aImageReflection;
}
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index 15b835f9f67e..c9c93717134f 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -87,8 +87,8 @@ void SvMetaAttribute::Save( SvPersistStream & rStm )
// write data
rStm << nMask;
- if( nMask & 0x1 ) rStm << aType;
- if( nMask & 0x2 ) rStm << aSlotId;
+ if( nMask & 0x1 ) WriteSvPersistBase( rStm, aType );
+ if( nMask & 0x2 ) WriteSvNumberIdentifier( rStm, aSlotId );
if( nMask & 0x4 ) rStm << aExport;
if( nMask & 0x8 ) rStm << aReadonly;
if( nMask & 0x10 ) rStm << aAutomation;
@@ -838,20 +838,20 @@ void SvMetaType::Save( SvPersistStream & rStm )
// write data
rStm << nMask;
- if( nMask & 0x0001 ) rStm << aIn;
- if( nMask & 0x0002 ) rStm << aOut;
- if( nMask & 0x0004 ) rStm << aCall0;
- if( nMask & 0x0008 ) rStm << aCall1;
- if( nMask & 0x0010 ) rStm << aSbxDataType;
- if( nMask & 0x0020 ) rStm << aSvName;
- if( nMask & 0x0040 ) rStm << aSbxName;
- if( nMask & 0x0080 ) rStm << aOdlName;
- if( nMask & 0x0100 ) rStm << *pAttrList;
+ if( nMask & 0x0001 ) WriteSvBOOL( rStm, aIn );
+ if( nMask & 0x0002 ) WriteSvBOOL( rStm, aOut );
+ if( nMask & 0x0004 ) WriteSvint( rStm, aCall0 );
+ if( nMask & 0x0008 ) WriteSvint( rStm, aCall1 );
+ if( nMask & 0x0010 ) WriteSvint( rStm, aSbxDataType );
+ if( nMask & 0x0020 ) WriteSvIdentifier( rStm, aSvName );
+ if( nMask & 0x0040 ) WriteSvIdentifier( rStm, aSbxName );
+ if( nMask & 0x0080 ) WriteSvIdentifier( rStm, aOdlName );
+ if( nMask & 0x0100 ) WriteSvDeclPersistList( rStm, *pAttrList );
if( nMask & 0x0800 ) rStm << (sal_uInt16)nType;
if( nMask & 0x1000 ) rStm << cParserChar;
- if( nMask & 0x2000 ) rStm << aCName;
- if( nMask & 0x4000 ) rStm << aBasicName;
- if( nMask & 0x8000 ) rStm << aBasicPostfix;
+ if( nMask & 0x2000 ) WriteSvIdentifier( rStm, aCName );
+ if( nMask & 0x4000 ) WriteSvIdentifier( rStm, aBasicName );
+ if( nMask & 0x8000 ) WriteSvIdentifier( rStm, aBasicPostfix );
}
SvMetaAttributeMemberList & SvMetaType::GetAttrList() const
@@ -1841,7 +1841,7 @@ void SvMetaTypeEnum::Save( SvPersistStream & rStm )
// write data
rStm << nMask;
- if( nMask & 0x01 ) rStm << aEnumValueList;
+ if( nMask & 0x01 ) WriteSvDeclPersistList( rStm, aEnumValueList );
if( nMask & 0x02 ) write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aPrefix);
}
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index b42c5728930c..1439ce7a1fb4 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -144,10 +144,10 @@ void SvIdlDataBase::Save( SvStream & rStm, sal_uInt32 nFlags )
if( !pModule->IsImported() )
aList.insert( pModule->GetClassList() );
}
- aPStm << aList;
+ WriteSvDeclPersistList( aPStm, aList );
}
else
- aPStm << aClassList;
+ WriteSvDeclPersistList( aPStm, aClassList );
aTypeList.WriteObjects( aPStm, bOnlyStreamedObjs );
aAttrList.WriteObjects( aPStm, bOnlyStreamedObjs );
diff --git a/include/editeng/adjustitem.hxx b/include/editeng/adjustitem.hxx
index 642d036b0df7..c6ca55c0ee2f 100644
--- a/include/editeng/adjustitem.hxx
+++ b/include/editeng/adjustitem.hxx
@@ -46,7 +46,7 @@ class EDITENG_DLLPUBLIC SvxAdjustItem : public SfxEnumItemInterface
sal_Bool bLastCenter : 1;
sal_Bool bLastBlock : 1;
- friend SvStream& operator<<( SvStream&, SvxAdjustItem& ); //$ ostream
+ friend SvStream& WriteSvxAdjustItem( SvStream&, SvxAdjustItem& ); //$ ostream
public:
TYPEINFO();
diff --git a/include/editeng/hyphenzoneitem.hxx b/include/editeng/hyphenzoneitem.hxx
index 5d1cd576e610..84bcec055b9a 100644
--- a/include/editeng/hyphenzoneitem.hxx
+++ b/include/editeng/hyphenzoneitem.hxx
@@ -40,7 +40,7 @@ class EDITENG_DLLPUBLIC SvxHyphenZoneItem : public SfxPoolItem
sal_uInt8 nMinTrail;
sal_uInt8 nMaxHyphens;
- friend SvStream & operator<<( SvStream & aS, SvxHyphenZoneItem & );
+ friend SvStream & WriteSvxHyphenZoneItem( SvStream & aS, SvxHyphenZoneItem & );
public:
TYPEINFO();
diff --git a/include/editeng/lspcitem.hxx b/include/editeng/lspcitem.hxx
index 8bb2fadfa5ef..54ff961040c0 100644
--- a/include/editeng/lspcitem.hxx
+++ b/include/editeng/lspcitem.hxx
@@ -34,7 +34,7 @@ class SvXMLUnitConverter;
#define LINE_SPACE_DEFAULT_HEIGHT 200
class EDITENG_DLLPUBLIC SvxLineSpacingItem : public SfxEnumItemInterface
{
- friend SvStream& operator<<( SvStream&, SvxLineSpacingItem& ); //$ ostream
+ friend SvStream& WriteSvxLineSpacingItem( SvStream&, SvxLineSpacingItem& ); //$ ostream
short nInterLineSpace;
sal_uInt16 nLineHeight;
diff --git a/include/editeng/orphitem.hxx b/include/editeng/orphitem.hxx
index 9fbacf2952d9..f0f10d48cdb9 100644
--- a/include/editeng/orphitem.hxx
+++ b/include/editeng/orphitem.hxx
@@ -33,7 +33,7 @@ class SvXMLUnitConverter;
class EDITENG_DLLPUBLIC SvxOrphansItem: public SfxByteItem
{
- friend SvStream & operator<<( SvStream & aS, SvxOrphansItem & );
+ friend SvStream & WriteSvxOrphansItem( SvStream & aS, SvxOrphansItem & );
public:
TYPEINFO();
diff --git a/include/editeng/tstpitem.hxx b/include/editeng/tstpitem.hxx
index 5f47d6407997..719f50239664 100644
--- a/include/editeng/tstpitem.hxx
+++ b/include/editeng/tstpitem.hxx
@@ -41,7 +41,7 @@ private:
mutable sal_Unicode m_cDecimal;
sal_Unicode cFill;
- EDITENG_DLLPRIVATE friend SvStream& operator<<( SvStream&, SvxTabStop& );
+ EDITENG_DLLPRIVATE friend SvStream& WriteSvxTabStop( SvStream&, SvxTabStop& );
void fillDecimal() const;
diff --git a/include/editeng/widwitem.hxx b/include/editeng/widwitem.hxx
index ef0d8ac9ddc1..ec1c42f06349 100644
--- a/include/editeng/widwitem.hxx
+++ b/include/editeng/widwitem.hxx
@@ -33,7 +33,7 @@ class SvXMLUnitConverter;
class EDITENG_DLLPUBLIC SvxWidowsItem: public SfxByteItem
{
- friend SvStream & operator<<( SvStream & aS, SvxWidowsItem & );
+ friend SvStream & WriteSvxWidowsItem( SvStream & aS, SvxWidowsItem & );
public:
TYPEINFO();
diff --git a/include/sot/filelist.hxx b/include/sot/filelist.hxx
index 631f3ca05a1d..6149ddfc85bf 100644
--- a/include/sot/filelist.hxx
+++ b/include/sot/filelist.hxx
@@ -51,7 +51,7 @@ public:
FileList& operator=( const FileList& rFileList );
// Im-/Export
- SOT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const FileList& rFileList );
+ SOT_DLLPUBLIC friend SvStream& WriteFileList( SvStream& rOStm, const FileList& rFileList );
SOT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, FileList& rFileList );
// Liste fuellen/abfragen
diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx
index a6751622cafd..9a9fdefeefb8 100644
--- a/include/svtools/grfmgr.hxx
+++ b/include/svtools/grfmgr.hxx
@@ -150,7 +150,7 @@ public:
mnGPercent != 0 || mnBPercent != 0 || mfGamma != 1.0 || mbInvert );
}
- friend SvStream& operator<<( SvStream& rOStm, const GraphicAttr& rAttr );
+ friend SvStream& WriteGraphicAttr( SvStream& rOStm, const GraphicAttr& rAttr );
friend SvStream& operator>>( SvStream& rIStm, GraphicAttr& rAttr );
};
@@ -484,7 +484,7 @@ public:
void StopAnimation( OutputDevice* pOut = NULL, long nExtraData = 0L );
- friend SvStream& operator<<( SvStream& rOStm, const GraphicObject& rGraphicObj );
+ friend SvStream& WriteGraphicObject( SvStream& rOStm, const GraphicObject& rGraphicObj );
friend SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj );
static GraphicObject CreateGraphicObjectFromURL( const OUString &rURL );
diff --git a/include/svtools/transfer.hxx b/include/svtools/transfer.hxx
index 2a8ce2950fb4..89e8130ed8e4 100644
--- a/include/svtools/transfer.hxx
+++ b/include/svtools/transfer.hxx
@@ -80,7 +80,7 @@ struct TransferableObjectDescriptor
{}
SVT_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, TransferableObjectDescriptor& rObjDesc );
- SVT_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc );
+ SVT_DLLPUBLIC friend SvStream& WriteTransferableObjectDescriptor( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc );
};
struct AcceptDropEvent
diff --git a/include/svx/galtheme.hxx b/include/svx/galtheme.hxx
index 7dbe99034fea..f657a0085e03 100644
--- a/include/svx/galtheme.hxx
+++ b/include/svx/galtheme.hxx
@@ -230,7 +230,7 @@ public:
void SetPreviewBitmapExAndStrings(sal_uIntPtr nPos, const BitmapEx& rBitmapEx, const Size& rSize, const OUString& rTitle, const OUString& rPath);
};
-SvStream& operator<<( SvStream& rOut, const GalleryTheme& rTheme );
+SvStream& WriteGalleryTheme( SvStream& rOut, const GalleryTheme& rTheme );
SvStream& operator>>( SvStream& rIn, GalleryTheme& rTheme );
#endif
diff --git a/include/svx/svdsob.hxx b/include/svx/svdsob.hxx
index 9faf64f370b5..18a15a716fb5 100644
--- a/include/svx/svdsob.hxx
+++ b/include/svx/svdsob.hxx
@@ -90,7 +90,7 @@ public:
void operator&=(const SetOfByte& r2ndSet);
void operator|=(const SetOfByte& r2ndSet);
- friend inline SvStream& operator<<(SvStream& rOut, const SetOfByte& rSet);
+ friend inline SvStream& WriteSetOfByte(SvStream& rOut, const SetOfByte& rSet);
friend inline SvStream& operator>>(SvStream& rIn, SetOfByte& rSet);
// initialize this set with a uno sequence of sal_Int8
@@ -100,7 +100,7 @@ public:
void QueryValue(com::sun::star::uno::Any & rAny) const;
};
-inline SvStream& operator<<(SvStream& rOut, const SetOfByte& rSet)
+inline SvStream& WriteSetOfByte(SvStream& rOut, const SetOfByte& rSet)
{
rOut.Write((char*)rSet.aData,32);
return rOut;
diff --git a/include/svx/xexch.hxx b/include/svx/xexch.hxx
index 4dab8ca24dbf..4cba3bca8833 100644
--- a/include/svx/xexch.hxx
+++ b/include/svx/xexch.hxx
@@ -48,7 +48,7 @@ public:
XFillExchangeData& operator=( const XFillExchangeData& rXFillExchangeData );
- SVX_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const XFillExchangeData& rXFillExchangeData );
+ SVX_DLLPUBLIC friend SvStream& WriteXFillExchangeData( SvStream& rOStm, const XFillExchangeData& rXFillExchangeData );
SVX_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, XFillExchangeData& rXFillExchangeData );
XFillAttrSetItem* GetXFillAttrSetItem() { return pXFillAttrSetItem; }
diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index 7b13321c9512..626f6255a990 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -161,7 +161,7 @@ public:
SvStream& Write( SvStream& rOStm, bool bNewFormat = true );
TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Color& rColor );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Color& rColor );
+ TOOLS_DLLPUBLIC friend SvStream& WriteColor( SvStream& rOStream, const Color& rColor );
// get ::basegfx::BColor from this color
::basegfx::BColor getBColor() const { return ::basegfx::BColor(GetRed() / 255.0, GetGreen() / 255.0, GetBlue() / 255.0); }
diff --git a/include/tools/fract.hxx b/include/tools/fract.hxx
index aca04ee4ebf2..2e1bb2005e4d 100644
--- a/include/tools/fract.hxx
+++ b/include/tools/fract.hxx
@@ -66,7 +66,7 @@ public:
friend inline bool operator>=( const Fraction& rVal1, const Fraction& rVal2 );
TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Fraction& rFract );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Fraction& rFract );
+ TOOLS_DLLPUBLIC friend SvStream& WriteFraction( SvStream& rOStream, const Fraction& rFract );
};
inline Fraction::Fraction( const Fraction& rFrac )
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 39860582cfbe..e3a33ca4f8c1 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -46,7 +46,7 @@ public:
bool operator != ( const Pair& rPair ) const;
TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Pair& rPair );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Pair& rPair );
+ TOOLS_DLLPUBLIC friend SvStream& WritePair( SvStream& rOStream, const Pair& rPair );
protected:
long nA;
@@ -418,7 +418,7 @@ public:
friend inline Rectangle operator - ( const Rectangle& rRect, const Point& rPt );
TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Rectangle& rRect );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Rectangle& rRect );
+ TOOLS_DLLPUBLIC friend SvStream& WriteRectangle( SvStream& rOStream, const Rectangle& rRect );
// ONE
long getX() const { return nLeft; }
diff --git a/include/tools/globname.hxx b/include/tools/globname.hxx
index 9e9064cb3209..8bd996f779ff 100644
--- a/include/tools/globname.hxx
+++ b/include/tools/globname.hxx
@@ -79,7 +79,7 @@ public:
~SvGlobalName();
TOOLS_DLLPUBLIC friend SvStream & operator >> ( SvStream &, SvGlobalName & );
- TOOLS_DLLPUBLIC friend SvStream & operator << ( SvStream &, const SvGlobalName & );
+ TOOLS_DLLPUBLIC friend SvStream & WriteSvGlobalName( SvStream &, const SvGlobalName & );
bool operator < ( const SvGlobalName & rObj ) const;
SvGlobalName& operator += ( sal_uInt32 );
diff --git a/include/tools/inetmsg.hxx b/include/tools/inetmsg.hxx
index 324a73395a64..d8af698dcc9a 100644
--- a/include/tools/inetmsg.hxx
+++ b/include/tools/inetmsg.hxx
@@ -62,7 +62,7 @@ public:
const OString& GetName() const { return m_aName; }
const OString& GetValue() const { return m_aValue; }
- friend SvStream& operator<< (
+ friend SvStream& WriteINetMessageHeader(
SvStream& rStrm, const INetMessageHeader& rHdr)
{
write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStrm, rHdr.m_aName);
@@ -194,7 +194,7 @@ public:
SvLockBytes* GetDocumentLB() const { return m_xDocLB; }
void SetDocumentLB (SvLockBytes *pDocLB) { m_xDocLB = pDocLB; }
- friend SvStream& operator<< (
+ friend SvStream& WriteINetMessage(
SvStream& rStrm, const INetMessage& rMsg)
{
return rMsg.operator<< (rStrm);
diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx
index 04b21d0cd9b4..c67714310cba 100644
--- a/include/tools/poly.hxx
+++ b/include/tools/poly.hxx
@@ -178,7 +178,7 @@ public:
// streaming a Polygon does ignore PolyFlags, so use the Write Or Read
// method to take care of PolyFlags
TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, Polygon& rPoly );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const Polygon& rPoly );
+ TOOLS_DLLPUBLIC friend SvStream& WritePolygon( SvStream& rOStream, const Polygon& rPoly );
void Read( SvStream& rIStream );
void Write( SvStream& rOStream ) const;
@@ -263,7 +263,7 @@ public:
bool IsEqual( const PolyPolygon& rPolyPoly ) const;
TOOLS_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStream, PolyPolygon& rPolyPoly );
- TOOLS_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStream, const PolyPolygon& rPolyPoly );
+ TOOLS_DLLPUBLIC friend SvStream& WritePolyPolygon( SvStream& rOStream, const PolyPolygon& rPolyPoly );
void Read( SvStream& rIStream );
void Write( SvStream& rOStream ) const;
diff --git a/include/tools/pstm.hxx b/include/tools/pstm.hxx
index a959436e4b58..660fb3145132 100644
--- a/include/tools/pstm.hxx
+++ b/include/tools/pstm.hxx
@@ -134,7 +134,7 @@ public:
};
template<typename T>
-SvPersistStream& operator << (SvPersistStream &rStm, const SvDeclPersistList<T> &rLst)
+SvPersistStream& WriteSvDeclPersistList(SvPersistStream &rStm, const SvDeclPersistList<T> &rLst)
{
WritePersistListObjects( rLst, rStm );
return rStm;
@@ -232,12 +232,12 @@ public:
SvPersistStream& WritePointer( SvPersistBase * pObj );
SvPersistStream& ReadPointer( SvPersistBase * & rpObj );
- TOOLS_DLLPUBLIC friend SvPersistStream& operator << (SvPersistStream &, SvPersistBase *);
+ TOOLS_DLLPUBLIC friend SvPersistStream& WriteSvPersistBase(SvPersistStream &, SvPersistBase *);
TOOLS_DLLPUBLIC friend SvPersistStream& operator >> (SvPersistStream &, SvPersistBase * &);
// Objects maintain their IDs while storing and loading to/from stream
friend SvStream& operator >> ( SvStream &, SvPersistStream & );
- friend SvStream& operator << ( SvStream &, SvPersistStream & );
+ friend SvStream& WriteSvPersistStream( SvStream &, SvPersistStream & );
};
#endif
diff --git a/include/vcl/animate.hxx b/include/vcl/animate.hxx
index 3bf7ae094017..966703832b1f 100644
--- a/include/vcl/animate.hxx
+++ b/include/vcl/animate.hxx
@@ -230,7 +230,7 @@ public:
);
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, Animation& rAnimation );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const Animation& rAnimation );
+ friend VCL_DLLPUBLIC SvStream& WriteAnimation( SvStream& rOStream, const Animation& rAnimation );
};
#endif // INCLUDED_VCL_ANIMATE_HXX
diff --git a/include/vcl/font.hxx b/include/vcl/font.hxx
index 9da08b12b149..1aa1cd113971 100644
--- a/include/vcl/font.hxx
+++ b/include/vcl/font.hxx
@@ -132,7 +132,7 @@ public:
sal_Bool IsSameInstance( const Font& ) const;
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Font& );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const Font& );
+ friend VCL_DLLPUBLIC SvStream& WriteFont( SvStream& rOStm, const Font& );
static Font identifyFont( const void* pBuffer, sal_uInt32 nLen );
};
diff --git a/include/vcl/gdimtf.hxx b/include/vcl/gdimtf.hxx
index 8afdc1478211..d14d6a2a50bf 100644
--- a/include/vcl/gdimtf.hxx
+++ b/include/vcl/gdimtf.hxx
@@ -211,7 +211,7 @@ public:
// Stream-operators write (still) the old format
// and read both the old and the new format
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, GDIMetaFile& rGDIMetaFile );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const GDIMetaFile& rGDIMetaFile );
+ friend VCL_DLLPUBLIC SvStream& WriteGDIMetaFile( SvStream& rOStm, const GDIMetaFile& rGDIMetaFile );
sal_Bool CreateThumbnail( sal_uInt32 nMaximumExtent, BitmapEx& rBmpEx, const BitmapEx* pOverlay = NULL, const Rectangle* pOverlayRect = NULL ) const;
diff --git a/include/vcl/gfxlink.hxx b/include/vcl/gfxlink.hxx
index 80187b1b5c75..15c91705b2e9 100644
--- a/include/vcl/gfxlink.hxx
+++ b/include/vcl/gfxlink.hxx
@@ -173,7 +173,7 @@ public:
public:
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const GfxLink& rGfxLink );
+ friend VCL_DLLPUBLIC SvStream& WriteGfxLink( SvStream& rOStream, const GfxLink& rGfxLink );
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, GfxLink& rGfxLink );
};
diff --git a/include/vcl/gradient.hxx b/include/vcl/gradient.hxx
index 3e2cb74e98f7..e0cb0f4fdce0 100644
--- a/include/vcl/gradient.hxx
+++ b/include/vcl/gradient.hxx
@@ -50,7 +50,7 @@ public:
sal_uInt16 mnStepCount;
friend SvStream& operator>>( SvStream& rIStm, Impl_Gradient& rImplGradient );
- friend SvStream& operator<<( SvStream& rOStm, const Impl_Gradient& rImplGradient );
+ friend SvStream& WriteImpl_Gradient( SvStream& rOStm, const Impl_Gradient& rImplGradient );
Impl_Gradient();
Impl_Gradient( const Impl_Gradient& rImplGradient );
@@ -110,7 +110,7 @@ public:
{ return (mpImplGradient == rGradient.mpImplGradient); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Gradient& rGradient );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const Gradient& rGradient );
+ friend VCL_DLLPUBLIC SvStream& WriteGradient( SvStream& rOStm, const Gradient& rGradient );
};
#endif // INCLUDED_VCL_GRADIENT_HXX
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index 4217f6437047..12221ece82d6 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -188,7 +188,7 @@ public:
sal_Bool ExportNative( SvStream& rOStream ) const;
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const Graphic& rGraphic );
+ friend VCL_DLLPUBLIC SvStream& WriteGraphic( SvStream& rOStream, const Graphic& rGraphic );
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, Graphic& rGraphic );
public:
diff --git a/include/vcl/graphictools.hxx b/include/vcl/graphictools.hxx
index ee24b128ff9e..ff170f56a255 100644
--- a/include/vcl/graphictools.hxx
+++ b/include/vcl/graphictools.hxx
@@ -175,7 +175,7 @@ public:
private:
// friends
- VCL_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const SvtGraphicStroke& rClass );
+ VCL_DLLPUBLIC friend SvStream& WriteSvtGraphicStroke( SvStream& rOStm, const SvtGraphicStroke& rClass );
VCL_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, SvtGraphicStroke& rClass );
Polygon maPath;
@@ -352,7 +352,7 @@ public:
private:
// friends
- VCL_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const SvtGraphicFill& rClass );
+ VCL_DLLPUBLIC friend SvStream& WriteSvtGraphicFill( SvStream& rOStm, const SvtGraphicFill& rClass );
VCL_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, SvtGraphicFill& rClass );
PolyPolygon maPath;
diff --git a/include/vcl/hatch.hxx b/include/vcl/hatch.hxx
index 08dab0b08083..da669b3ad1e6 100644
--- a/include/vcl/hatch.hxx
+++ b/include/vcl/hatch.hxx
@@ -43,7 +43,7 @@ struct ImplHatch
ImplHatch( const ImplHatch& rImplHatch );
friend SvStream& operator>>( SvStream& rIStm, ImplHatch& rImplHatch );
- friend SvStream& operator<<( SvStream& rOStm, const ImplHatch& rImplHatch );
+ friend SvStream& WriteImplHatch( SvStream& rOStm, const ImplHatch& rImplHatch );
};
// ---------
@@ -81,7 +81,7 @@ public:
sal_uInt16 GetAngle() const { return mpImplHatch->mnAngle; }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Hatch& rHatch );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const Hatch& rHatch );
+ friend VCL_DLLPUBLIC SvStream& WriteHatch( SvStream& rOStm, const Hatch& rHatch );
};
#endif // INCLUDED_VCL_HATCH_HXX
diff --git a/include/vcl/jobset.hxx b/include/vcl/jobset.hxx
index a5caf7b3ef1d..1732ae920b25 100644
--- a/include/vcl/jobset.hxx
+++ b/include/vcl/jobset.hxx
@@ -66,7 +66,7 @@ public:
{ return !(JobSetup::operator==( rJobSetup )); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup );
+ friend VCL_DLLPUBLIC SvStream& WriteJobSetup( SvStream& rOStream, const JobSetup& rJobSetup );
};
#endif // INCLUDED_VCL_JOBSET_HXX
diff --git a/include/vcl/lineinfo.hxx b/include/vcl/lineinfo.hxx
index b1ce3bd39811..e1989704c336 100644
--- a/include/vcl/lineinfo.hxx
+++ b/include/vcl/lineinfo.hxx
@@ -53,7 +53,7 @@ struct ImplLineInfo
bool operator==( const ImplLineInfo& ) const;
friend SvStream& operator>>( SvStream& rIStm, ImplLineInfo& rImplLineInfo );
- friend SvStream& operator<<( SvStream& rOStm, const ImplLineInfo& rImplLineInfo );
+ friend SvStream& WriteImplLineInfo( SvStream& rOStm, const ImplLineInfo& rImplLineInfo );
};
// ------------
@@ -109,7 +109,7 @@ public:
sal_Bool IsDefault() const;
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, LineInfo& rLineInfo );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const LineInfo& rLineInfo );
+ friend VCL_DLLPUBLIC SvStream& WriteLineInfo( SvStream& rOStm, const LineInfo& rLineInfo );
// helper to get decomposed polygon data with the LineInfo applied. The source
// hairline polygon is given in io_rLinePolyPolygon. Both given polygons may
diff --git a/include/vcl/mapmod.hxx b/include/vcl/mapmod.hxx
index d2b2cd232771..17beccf14123 100644
--- a/include/vcl/mapmod.hxx
+++ b/include/vcl/mapmod.hxx
@@ -49,7 +49,7 @@ private:
sal_Bool mbSimple;
friend SvStream& operator>>( SvStream& rIStm, ImplMapMode& rMapMode );
- friend SvStream& operator<<( SvStream& rOStm, const ImplMapMode& rMapMode );
+ friend SvStream& WriteImplMapMode( SvStream& rOStm, const ImplMapMode& rMapMode );
static ImplMapMode* ImplGetStaticMapMode( MapUnit eUnit );
public:
@@ -102,7 +102,7 @@ public:
{ return (mpImplMapMode == rMapMode.mpImplMapMode); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, MapMode& rMapMode );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const MapMode& rMapMode );
+ friend VCL_DLLPUBLIC SvStream& WriteMapMode( SvStream& rOStm, const MapMode& rMapMode );
};
#endif // INCLUDED_VCL_MAPMOD_HXX
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index f4537fec77e8..44ffa713527a 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -115,7 +115,7 @@ public:
bool operator==( const QueueInfo& rInfo ) const;
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStream, QueueInfo& rInfo );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStream, const QueueInfo& rInfo );
+ friend VCL_DLLPUBLIC SvStream& WriteQueueInfo( SvStream& rOStream, const QueueInfo& rInfo );
};
// ------------------
diff --git a/include/vcl/region.hxx b/include/vcl/region.hxx
index c9ab0c78afc3..7daa349d79d9 100644
--- a/include/vcl/region.hxx
+++ b/include/vcl/region.hxx
@@ -117,7 +117,7 @@ public:
bool operator!=( const Region& rRegion ) const { return !(Region::operator==( rRegion )); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Region& rRegion );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const Region& rRegion );
+ friend VCL_DLLPUBLIC SvStream& WriteRegion( SvStream& rOStm, const Region& rRegion );
/* workaround: faster conversion for PolyPolygons
* if half of the Polygons contained in rPolyPoly are actually
diff --git a/include/vcl/wall.hxx b/include/vcl/wall.hxx
index cf230c528d21..46cfbb7c6d77 100644
--- a/include/vcl/wall.hxx
+++ b/include/vcl/wall.hxx
@@ -125,7 +125,7 @@ public:
{ return (mpImplWallpaper == rWallpaper.mpImplWallpaper); }
friend VCL_DLLPUBLIC SvStream& operator>>( SvStream& rIStm, Wallpaper& rWallpaper );
- friend VCL_DLLPUBLIC SvStream& operator<<( SvStream& rOStm, const Wallpaper& rWallpaper );
+ friend VCL_DLLPUBLIC SvStream& WriteWallpaper( SvStream& rOStm, const Wallpaper& rWallpaper );
};
#endif // INCLUDED_VCL_WALL_HXX
diff --git a/sc/inc/bigrange.hxx b/sc/inc/bigrange.hxx
index 8db2b3460f8b..89fb675c6977 100644
--- a/sc/inc/bigrange.hxx
+++ b/sc/inc/bigrange.hxx
@@ -71,11 +71,12 @@ public:
bool operator!=( const ScBigAddress& r ) const
{ return !operator==( r ); }
- friend inline SvStream& operator<< ( SvStream& rStream, const ScBigAddress& rAdr );
+ friend inline SvStream& WriteScBigAddress( SvStream& rStream, const ScBigAddress& rAdr );
friend inline SvStream& operator>> ( SvStream& rStream, ScBigAddress& rAdr );
};
+
inline void ScBigAddress::PutInOrder( ScBigAddress& r )
{
sal_Int32 nTmp;
@@ -130,7 +131,7 @@ inline ScAddress ScBigAddress::MakeAddress() const
}
-inline SvStream& operator<< ( SvStream& rStream, const ScBigAddress& rAdr )
+inline SvStream& WriteScBigAddress( SvStream& rStream, const ScBigAddress& rAdr )
{
rStream << rAdr.nCol << rAdr.nRow << rAdr.nTab;
return rStream;
@@ -196,7 +197,7 @@ public:
bool operator!=( const ScBigRange& r ) const
{ return !operator==( r ); }
- friend inline SvStream& operator<< ( SvStream& rStream, const ScBigRange& rRange );
+ friend inline SvStream& WriteScBigRange ( SvStream& rStream, const ScBigRange& rRange );
friend inline SvStream& operator>> ( SvStream& rStream, ScBigRange& rRange );
};
@@ -229,10 +230,10 @@ inline sal_Bool ScBigRange::Intersects( const ScBigRange& r ) const
}
-inline SvStream& operator<< ( SvStream& rStream, const ScBigRange& rRange )
+inline SvStream& WriteScBigRange ( SvStream& rStream, const ScBigRange& rRange )
{
- rStream << rRange.aStart;
- rStream << rRange.aEnd;
+ WriteScBigAddress( rStream, rRange.aStart );
+ WriteScBigAddress( rStream, rRange.aEnd );
return rStream;
}
diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx
index 3e8f9152b338..d1dc79a8d421 100644
--- a/sc/source/core/tool/autoform.cxx
+++ b/sc/source/core/tool/autoform.cxx
@@ -104,7 +104,7 @@ namespace
}
/// Write an AutoFormatSwBlob to stream.
- SvStream& operator<<(SvStream &stream, AutoFormatSwBlob &blob)
+ SvStream& WriteAutoFormatSwBlob(SvStream &stream, AutoFormatSwBlob &blob)
{
const sal_uInt64 endOfBlob = stream.Tell() + sizeof(sal_uInt64) + blob.size;
stream.WriteUInt64( endOfBlob );
@@ -192,7 +192,7 @@ void ScAfVersions::Write(SvStream& rStream, sal_uInt16 fileVersion)
rStream.WriteUInt16( SvxAdjustItem(SVX_ADJUST_LEFT, 0).GetVersion(fileVersion) );
if (fileVersion >= SOFFICE_FILEFORMAT_50)
- rStream << swVersions;
+ WriteAutoFormatSwBlob( rStream, swVersions );
rStream.WriteUInt16( SvxHorJustifyItem(SVX_HOR_JUSTIFY_STANDARD, ATTR_HOR_JUSTIFY).GetVersion(fileVersion) );
rStream.WriteUInt16( SvxVerJustifyItem(SVX_VER_JUSTIFY_STANDARD, ATTR_VER_JUSTIFY).GetVersion(fileVersion) );
@@ -413,7 +413,7 @@ sal_Bool ScAutoFormatDataField::Save( SvStream& rStream, sal_uInt16 fileVersion
aAdjust.Store ( rStream, aAdjust.GetVersion( fileVersion ) );
if (fileVersion >= SOFFICE_FILEFORMAT_50)
- rStream << m_swFields;
+ WriteAutoFormatSwBlob( rStream, m_swFields );
aHorJustify.Store ( rStream, aHorJustify.GetVersion( fileVersion ) );
aVerJustify.Store ( rStream, aVerJustify.GetVersion( fileVersion ) );
@@ -805,7 +805,7 @@ bool ScAutoFormatData::Save(SvStream& rStream, sal_uInt16 fileVersion)
rStream.WriteUChar( ( b = bIncludeWidthHeight ) );
if (fileVersion >= SOFFICE_FILEFORMAT_50)
- rStream << m_swFields;
+ WriteAutoFormatSwBlob( rStream, m_swFields );
sal_Bool bRet = 0 == rStream.GetError();
for (sal_uInt16 i = 0; bRet && (i < 16); i++)
diff --git a/sd/source/filter/eppt/pptexanimations.cxx b/sd/source/filter/eppt/pptexanimations.cxx
index 3a9d5d0ee136..f65ecc1eaeec 100644
--- a/sd/source/filter/eppt/pptexanimations.cxx
+++ b/sd/source/filter/eppt/pptexanimations.cxx
@@ -252,7 +252,7 @@ const sal_Char* AnimationExporter::FindTransitionName( const sal_Int16 nType, co
return pRet;
}
-SvStream& operator<<(SvStream& rOut, AnimationNode& rNode )
+SvStream& WriteAnimationNode(SvStream& rOut, AnimationNode& rNode )
{
rOut.WriteInt32( rNode.mnU1 );
rOut.WriteInt32( rNode.mnRestart );
@@ -570,7 +570,7 @@ void AnimationExporter::exportNode( SvStream& rStrm, Reference< XAnimationNode >
case AnimationFill::HOLD : aAnim.mnFill = 3; break;
case AnimationFill::TRANSITION : aAnim.mnFill = 4; break;
}
- rStrm << aAnim;
+ WriteAnimationNode( rStrm, aAnim );
}
exportIterate( rStrm, xNode );
exportAnimPropertySet( rStrm, xNode );
@@ -878,7 +878,7 @@ void AnimationExporter::exportAnimNode( SvStream& rStrm, const Reference< XAnima
break;
}
- rStrm << aAnim;
+ WriteAnimationNode( rStrm, aAnim );
}
void AnimationExporter::GetUserData( const Sequence< NamedValue >& rUserData, const Any ** pAny, sal_Size nLen )
diff --git a/sd/source/filter/html/pubdlg.cxx b/sd/source/filter/html/pubdlg.cxx
index 0b0dede074c3..fcf96066e6aa 100644
--- a/sd/source/filter/html/pubdlg.cxx
+++ b/sd/source/filter/html/pubdlg.cxx
@@ -131,7 +131,7 @@ public:
int operator ==(const SdPublishingDesign & rDesign) const;
friend SvStream& operator >> (SvStream& rIn, SdPublishingDesign& rDesign);
- friend SvStream& operator << (SvStream& rOut, const SdPublishingDesign& rDesign);
+ friend SvStream& WriteSdPublishingDesign(SvStream& rOut, const SdPublishingDesign& rDesign);
};
// load Default-settings
@@ -295,7 +295,7 @@ SvStream& operator >> (SvStream& rIn, SdPublishingDesign& rDesign)
}
// Set the design to the stream
-SvStream& operator << (SvStream& rOut, const SdPublishingDesign& rDesign)
+SvStream& WriteSdPublishingDesign(SvStream& rOut, const SdPublishingDesign& rDesign)
{
// The last parameter is the versionnumber of the code
SdIOCompat aIO(rOut, STREAM_WRITE, 0);
@@ -323,11 +323,11 @@ SvStream& operator << (SvStream& rOut, const SdPublishingDesign& rDesign)
rOut.WriteUChar( rDesign.m_bCreated ); // not used
rOut.WriteInt16( rDesign.m_nButtonThema );
rOut.WriteUChar( rDesign.m_bUserAttr );
- rOut << rDesign.m_aBackColor;
- rOut << rDesign.m_aTextColor;
- rOut << rDesign.m_aLinkColor;
- rOut << rDesign.m_aVLinkColor;
- rOut << rDesign.m_aALinkColor;
+ WriteColor( rOut, rDesign.m_aBackColor );
+ WriteColor( rOut, rDesign.m_aTextColor );
+ WriteColor( rOut, rDesign.m_aLinkColor );
+ WriteColor( rOut, rDesign.m_aVLinkColor );
+ WriteColor( rOut, rDesign.m_aALinkColor );
rOut.WriteUChar( rDesign.m_bUseAttribs );
rOut.WriteUChar( rDesign.m_bUseColor );
@@ -1570,7 +1570,7 @@ sal_Bool SdPublishingDlg::Save()
for( sal_uInt16 nIndex = 0;
pStream->GetError() == SVSTREAM_OK && nIndex < nDesigns;
nIndex++ )
- *pStream << m_aDesignList[nIndex];
+ WriteSdPublishingDesign( *pStream, m_aDesignList[nIndex] );
}
aMedium.Close();
diff --git a/sd/source/filter/ppt/pptanimations.hxx b/sd/source/filter/ppt/pptanimations.hxx
index 10a51df3c4a4..4340967ffbf9 100644
--- a/sd/source/filter/ppt/pptanimations.hxx
+++ b/sd/source/filter/ppt/pptanimations.hxx
@@ -215,7 +215,7 @@ public:
public:
friend SvStream& operator>>(SvStream& rIn, AnimationNode& rAtom);
- friend SvStream& operator<<(SvStream& rOut, AnimationNode& rAtom);
+ friend SvStream& WriteAnimationNode(SvStream& rOut, AnimationNode& rAtom);
};
static const ImplAttributeNameConversion gImplConversionList[] =
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() );
}
//--------------------------------------------------------------------
diff --git a/sot/source/base/filelist.cxx b/sot/source/base/filelist.cxx
index 4493fcf129ed..ab0c4920cacb 100644
--- a/sot/source/base/filelist.cxx
+++ b/sot/source/base/filelist.cxx
@@ -68,7 +68,7 @@ void FileList::Load( SvStream& rIStm )
void FileList::Save( SvStream& rOStm )
{
- rOStm << *this;
+ WriteFileList( rOStm, *this );
}
void FileList::Assign( const SvDataCopyStream& rCopyStream )
@@ -87,7 +87,7 @@ void FileList::Assign( const SvDataCopyStream& rCopyStream )
* e.g. DropQueryFile
*/
-SvStream& operator<<( SvStream& rOStm, SAL_UNUSED_PARAMETER const FileList& )
+SvStream& WriteFileList( SvStream& rOStm, SAL_UNUSED_PARAMETER const FileList& )
{
OSL_FAIL("TODO: Not implemented!");
return rOStm;
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx
index 46083e0ee462..0b10719312e9 100644
--- a/sot/source/sdstor/stgelem.cxx
+++ b/sot/source/sdstor/stgelem.cxx
@@ -51,7 +51,7 @@ SvStream& operator >>( SvStream& r, ClsId& rId )
return r;
}
-SvStream& operator <<( SvStream& r, const ClsId& rId )
+SvStream& WriteClsId( SvStream& r, const ClsId& rId )
{
return
r .WriteInt32( (sal_Int32) rId.n1 )
@@ -159,7 +159,7 @@ bool StgHeader::Store( StgIo& rIo )
SvStream& r = *rIo.GetStrm();
r.Seek( 0L );
r.Write( cSignature, 8 );
- r << aClsId; // 08 Class ID
+ WriteClsId( r, aClsId ); // 08 Class ID
r.WriteInt32( nVersion ) // 1A version number
.WriteUInt16( nByteOrder ) // 1C Unicode byte order indicator
.WriteInt16( nPageSize ) // 1E 1 << nPageSize = block size
@@ -427,7 +427,7 @@ void StgEntry::Store( void* pTo )
.WriteInt32( nLeft ) // 44 left node entry
.WriteInt32( nRight ) // 48 right node entry
.WriteInt32( nChild ); // 4C 1st child entry if storage;
- r << aClsId; // 50 class ID (optional)
+ WriteClsId( r, aClsId ); // 50 class ID (optional)
r.WriteInt32( nFlags ) // 60 state flags(?)
.WriteInt32( nMtime[ 0 ] ) // 64 modification time
.WriteInt32( nMtime[ 1 ] ) // 64 modification time
diff --git a/sot/source/sdstor/stgelem.hxx b/sot/source/sdstor/stgelem.hxx
index 7cdd546b8f85..822d4e837e1c 100644
--- a/sot/source/sdstor/stgelem.hxx
+++ b/sot/source/sdstor/stgelem.hxx
@@ -31,7 +31,7 @@ class StgIo;
class SvStream;
SvStream& operator>>( SvStream&, ClsId& );
-SvStream& operator<<( SvStream&, const ClsId& );
+SvStream& WriteClsId( SvStream&, const ClsId& );
class StgHeader
{
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx
index 1e83d36deec8..0f87b5411983 100644
--- a/sot/source/sdstor/stgole.cxx
+++ b/sot/source/sdstor/stgole.cxx
@@ -148,7 +148,7 @@ bool StgCompObjStream::Store()
WriteInt16( (sal_Int16) -2 ); // 0xFFFE = Byte Order Indicator
WriteInt32( (sal_Int32) 0x0A03 ); // Windows 3.10
WriteInt32( (sal_Int32) -1L );
- *this << aClsId; // Class ID
+ WriteClsId( *this, aClsId ); // Class ID
WriteInt32( (sal_Int32) (aAsciiUserName.getLength() + 1) );
WriteCharPtr( (const char *)aAsciiUserName.getStr() );
WriteUChar( (sal_uInt8) 0 ); // string terminator
diff --git a/svl/source/items/ptitem.cxx b/svl/source/items/ptitem.cxx
index 52d2688f81da..92c78256f99b 100644
--- a/svl/source/items/ptitem.cxx
+++ b/svl/source/items/ptitem.cxx
@@ -111,7 +111,7 @@ SfxPoolItem* SfxPointItem::Create(SvStream &rStream, sal_uInt16 ) const
SvStream& SfxPointItem::Store(SvStream &rStream, sal_uInt16 ) const
{
DBG_CHKTHIS(SfxPointItem, 0);
- rStream << aVal;
+ WritePair( rStream, aVal );
return rStream;
}
diff --git a/svl/source/items/rectitem.cxx b/svl/source/items/rectitem.cxx
index a1e0e6206f7c..d9e9677e784a 100644
--- a/svl/source/items/rectitem.cxx
+++ b/svl/source/items/rectitem.cxx
@@ -111,7 +111,7 @@ SfxPoolItem* SfxRectangleItem::Create(SvStream &rStream, sal_uInt16 ) const
SvStream& SfxRectangleItem::Store(SvStream &rStream, sal_uInt16 ) const
{
DBG_CHKTHIS(SfxRectangleItem, 0);
- rStream << aVal;
+ WriteRectangle( rStream, aVal );
return rStream;
}
diff --git a/svl/source/items/szitem.cxx b/svl/source/items/szitem.cxx
index 5fb184d510d5..6889a78eb36c 100644
--- a/svl/source/items/szitem.cxx
+++ b/svl/source/items/szitem.cxx
@@ -107,7 +107,7 @@ SfxPoolItem* SfxSizeItem::Create(SvStream &rStream, sal_uInt16 ) const
SvStream& SfxSizeItem::Store(SvStream &rStream, sal_uInt16 ) const
{
DBG_CHKTHIS(SfxSizeItem, 0);
- rStream << aVal;
+ WritePair( rStream, aVal );
return rStream;
}
diff --git a/svtools/source/graphic/grfattr.cxx b/svtools/source/graphic/grfattr.cxx
index fb19ddcb6300..1e328c918811 100644
--- a/svtools/source/graphic/grfattr.cxx
+++ b/svtools/source/graphic/grfattr.cxx
@@ -100,7 +100,7 @@ SvStream& operator>>( SvStream& rIStm, GraphicAttr& rAttr )
// ------------------------------------------------------------------------
-SvStream& operator<<( SvStream& rOStm, const GraphicAttr& rAttr )
+SvStream& WriteGraphicAttr( SvStream& rOStm, const GraphicAttr& rAttr )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 2 );
const sal_uInt32 nTmp32 = 0;
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 8325c3b8d93a..4267ebebc8a1 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -352,7 +352,7 @@ void GraphicObject::Load( SvStream& rIStm )
void GraphicObject::Save( SvStream& rOStm )
{
- rOStm << *this;
+ WriteGraphicObject( rOStm, *this );
}
void GraphicObject::Assign( const SvDataCopyStream& rCopyStream )
@@ -1129,12 +1129,13 @@ SvStream& operator>>( SvStream& rIStm, GraphicObject& rGraphicObj )
return rIStm;
}
-SvStream& operator<<( SvStream& rOStm, const GraphicObject& rGraphicObj )
+SvStream& WriteGraphicObject( SvStream& rOStm, const GraphicObject& rGraphicObj )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
const sal_Bool bLink = rGraphicObj.HasLink();
- rOStm << rGraphicObj.GetGraphic() << rGraphicObj.GetAttr();
+ WriteGraphic( rOStm, rGraphicObj.GetGraphic() );
+ WriteGraphicAttr( rOStm, rGraphicObj.GetAttr() );
rOStm.WriteUChar( bLink );
if( bLink )
diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx
index 09a8b999ddff..00250e838eda 100644
--- a/svtools/source/graphic/provider.cxx
+++ b/svtools/source/graphic/provider.cxx
@@ -837,7 +837,7 @@ void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XG
SvMemoryStream aMemStrm;
aMemStrm.SetVersion( SOFFICE_FILEFORMAT_CURRENT );
if( 0 == strcmp( pFilterShortName, MIMETYPE_VCLGRAPHIC ) )
- aMemStrm << aGraphic;
+ WriteGraphic( aMemStrm, aGraphic );
else
{
rFilter.ExportGraphic( aGraphic, aPath, aMemStrm,
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx
index 06d588a56589..5afe6a7ffb68 100644
--- a/svtools/source/misc/imap.cxx
+++ b/svtools/source/misc/imap.cxx
@@ -182,7 +182,7 @@ void IMapRectangleObject::ImpConstruct( const Rectangle& rRect, sal_Bool bPixel
void IMapRectangleObject::WriteIMapObject( SvStream& rOStm ) const
{
- rOStm << aRect;
+ WriteRectangle( rOStm, aRect );
}
@@ -292,7 +292,7 @@ void IMapCircleObject::WriteIMapObject( SvStream& rOStm ) const
{
sal_uInt32 nTmp = nRadius;
- rOStm << aCenter;
+ WritePair( rOStm, aCenter );
rOStm << nTmp;
}
@@ -431,9 +431,9 @@ void IMapPolygonObject::ImpConstruct( const Polygon& rPoly, sal_Bool bPixel )
void IMapPolygonObject::WriteIMapObject( SvStream& rOStm ) const
{
- rOStm << aPoly;
+ WritePolygon( rOStm, aPoly );
rOStm << bEllipse; // >= Version 2
- rOStm << aEllipse; // >= Version 2
+ WriteRectangle( rOStm, aEllipse ); // >= Version 2
}
diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx
index a1a7b29a7139..231e41cc653e 100644
--- a/svtools/source/misc/templatefoldercache.cxx
+++ b/svtools/source/misc/templatefoldercache.cxx
@@ -56,7 +56,7 @@ namespace svt
//= helpers
//=====================================================================
//---------------------------------------------------------------------
- SvStream& operator << ( SvStream& _rStorage, const util::DateTime& _rDate )
+ SvStream& WriteDateTime( SvStream& _rStorage, const util::DateTime& _rDate )
{
sal_uInt16 hundredthSeconds = static_cast< sal_uInt16 >( _rDate.NanoSeconds / Time::nanoPerCenti );
_rStorage.WriteUInt16( hundredthSeconds );
@@ -353,7 +353,7 @@ namespace svt
void operator() ( const TemplateContent& _rContent ) const
{
// store the info about this content
- m_rStorage << _rContent.getModDate();
+ WriteDateTime( m_rStorage, _rContent.getModDate() );
// store the info about the children
// the number
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx
index f4006c6517ee..31fb53d72aeb 100644
--- a/svtools/source/misc/transfer.cxx
+++ b/svtools/source/misc/transfer.cxx
@@ -114,13 +114,13 @@ SvStream& operator>>( SvStream& rIStm, TransferableObjectDescriptor& rObjDesc )
// -----------------------------------------------------------------------------
-SvStream& operator<<( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc )
+SvStream& WriteTransferableObjectDescriptor( SvStream& rOStm, const TransferableObjectDescriptor& rObjDesc )
{
const sal_uInt32 nFirstPos = rOStm.Tell(), nViewAspect = rObjDesc.mnViewAspect;
const sal_uInt32 nSig1 = TOD_SIG1, nSig2 = TOD_SIG2;
rOStm.SeekRel( 4 );
- rOStm << rObjDesc.maClassName;
+ WriteSvGlobalName( rOStm, rObjDesc.maClassName );
rOStm.WriteUInt32( nViewAspect );
//#fdo39428 Remove SvStream operator<<(long)
rOStm.WriteInt32( sal::static_int_cast<sal_Int32>(rObjDesc.maSize.Width()) );
@@ -831,7 +831,7 @@ sal_Bool TransferableHelper::SetGraphic( const Graphic& rGraphic, const DataFlav
aMemStm.SetVersion( SOFFICE_FILEFORMAT_50 );
aMemStm.SetCompressMode( COMPRESSMODE_NATIVE );
- aMemStm << rGraphic;
+ WriteGraphic( aMemStm, rGraphic );
maAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aMemStm.GetData() ), aMemStm.Seek( STREAM_SEEK_TO_END ) );
}
@@ -860,7 +860,7 @@ sal_Bool TransferableHelper::SetTransferableObjectDescriptor( const Transferable
SvMemoryStream aMemStm( 1024, 1024 );
- aMemStm << rDesc;
+ WriteTransferableObjectDescriptor( aMemStm, rDesc );
maAny <<= Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aMemStm.GetData() ), aMemStm.Tell() );
return( maAny.hasValue() );
diff --git a/svx/inc/galobj.hxx b/svx/inc/galobj.hxx
index d7e38dc3e939..8a68903bb3e1 100644
--- a/svx/inc/galobj.hxx
+++ b/svx/inc/galobj.hxx
@@ -86,7 +86,7 @@ public:
const OUString GetTitle() const;
void SetTitle( const OUString& rTitle );
- friend SvStream& operator<<( SvStream& rOut, const SgaObject& rObj );
+ friend SvStream& WriteSgaObject( SvStream& rOut, const SgaObject& rObj );
friend SvStream& operator>>( SvStream& rIn, SgaObject& rObj );
BitmapEx createPreviewBitmapEx(const Size& rSizePixel) const;
diff --git a/svx/source/gallery2/galobj.cxx b/svx/source/gallery2/galobj.cxx
index 09bf8b40384b..2f078021059a 100644
--- a/svx/source/gallery2/galobj.cxx
+++ b/svx/source/gallery2/galobj.cxx
@@ -188,7 +188,7 @@ void SgaObject::WriteData( SvStream& rOut, const OUString& rDestDir ) const
rOut.SetCompressMode( nOldCompressMode );
}
else
- rOut << aThumbMtf;
+ WriteGDIMetaFile( rOut, aThumbMtf );
OUString aURLWithoutDestDir = aURL.GetMainURL( INetURLObject::NO_DECODE );
aURLWithoutDestDir = aURLWithoutDestDir.replaceFirst(rDestDir, "");
@@ -252,7 +252,7 @@ void SgaObject::SetTitle( const OUString& rTitle )
aTitle = rTitle;
}
-SvStream& operator<<( SvStream& rOut, const SgaObject& rObj )
+SvStream& WriteSgaObject( SvStream& rOut, const SgaObject& rObj )
{
rObj.WriteData( rOut, "" );
return rOut;
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 8a4534d84128..8d4f6fb4c704 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -207,7 +207,7 @@ void GalleryTheme::ImplWrite()
if( pOStm )
{
- *pOStm << *this;
+ WriteGalleryTheme( *pOStm, *this );
delete pOStm;
}
@@ -646,7 +646,7 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg
pIStm->Seek( pEntry->nOffset );
*pIStm >> *pObj;
pEntry->nOffset = pTmpStm->Tell();
- *pTmpStm << *pObj;
+ WriteSgaObject( *pTmpStm, *pObj );
delete pObj;
}
}
@@ -1512,7 +1512,7 @@ SvStream& GalleryTheme::ReadData( SvStream& rIStm )
return rIStm;
}
-SvStream& operator<<( SvStream& rOut, const GalleryTheme& rTheme )
+SvStream& WriteGalleryTheme( SvStream& rOut, const GalleryTheme& rTheme )
{
return rTheme.WriteData( rOut );
}
diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx
index 959123536811..da6c87b180e5 100644
--- a/svx/source/tbxctrls/colrctrl.cxx
+++ b/svx/source/tbxctrls/colrctrl.cxx
@@ -84,7 +84,7 @@ sal_Bool SvxColorValueSetData::GetData( const ::com::sun::star::datatransfer::Da
sal_Bool SvxColorValueSetData::WriteObject( SotStorageStreamRef& rxOStm, void*, sal_uInt32 , const ::com::sun::star::datatransfer::DataFlavor& )
{
- *rxOStm << maData;
+ WriteXFillExchangeData( *rxOStm, maData );
return( rxOStm->GetError() == ERRCODE_NONE );
}
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx
index 4bbb8008c9ce..cdd7dac5e5a3 100644
--- a/svx/source/xoutdev/xattr.cxx
+++ b/svx/source/xoutdev/xattr.cxx
@@ -320,7 +320,7 @@ SvStream& XColorItem::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const
if ( !IsIndex() )
{
- rOut << aColor;
+ WriteColor( rOut, aColor );
}
return rOut;
diff --git a/svx/source/xoutdev/xexch.cxx b/svx/source/xoutdev/xexch.cxx
index c5c67763a0cc..54ef1f447b75 100644
--- a/svx/source/xoutdev/xexch.cxx
+++ b/svx/source/xoutdev/xexch.cxx
@@ -49,7 +49,7 @@ XFillExchangeData::~XFillExchangeData()
}
/// binary export (currently w/o version control because it is not persistent)
-SvStream& operator<<( SvStream& rOStm, const XFillExchangeData& rData )
+SvStream& WriteXFillExchangeData( SvStream& rOStm, const XFillExchangeData& rData )
{
if( rData.pXFillAttrSetItem )
{
diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx
index 3cd30dd3ad7f..b6e40b75ed4d 100644
--- a/sw/source/core/text/inftxt.hxx
+++ b/sw/source/core/text/inftxt.hxx
@@ -119,7 +119,7 @@ public:
return nListTabStopPosition;
}
- friend SvStream &operator<<( SvStream &rOS, const SwLineInfo &rInf );
+ friend SvStream & WriteSwLineInfo( SvStream &rOS, const SwLineInfo &rInf );
};
/*************************************************************************
@@ -143,7 +143,7 @@ public:
const SwParaPortion *GetParaPortion() const { return pPara; }
sal_Int32 GetTxtStart() const { return nTxtStart; }
- friend SvStream &operator<<( SvStream &rOS, const SwTxtInfo &rInf );
+ friend SvStream & WriteSwTxtInfo( SvStream &rOS, const SwTxtInfo &rInf );
};
/*************************************************************************
@@ -305,7 +305,7 @@ public:
inline void SetLen( const sal_Int32 nNew ) { m_nLen = nNew; }
inline void SetTxt( const OUString &rNew ){ m_pTxt = &rNew; }
- friend SvStream &operator<<( SvStream &rOS, const SwTxtSizeInfo &rInf );
+ friend SvStream & WriteSwTxtSizeInfo( SvStream &rOS, const SwTxtSizeInfo &rInf );
// No Bullets for the symbol font!
inline sal_Bool IsNoSymbol() const
@@ -474,7 +474,7 @@ public:
inline const SwRect &GetPaintRect() const { return aPaintRect; }
inline void SetPaintRect( const SwRect &rNew ) { aPaintRect = rNew; }
- friend SvStream &operator<<( SvStream &rOS, const SwTxtPaintInfo &rInf );
+ friend SvStream & WriteSwTxtPaintInfo( SvStream &rOS, const SwTxtPaintInfo &rInf );
//
// STUFF FOR JUSTIFIED ALIGNMENT
@@ -719,7 +719,7 @@ public:
// Return: Position; sets cHookChar if necessary
sal_Int32 ScanPortionEnd( const sal_Int32 nStart, const sal_Int32 nEnd );
- friend SvStream &operator<<( SvStream &rOS, const SwTxtFormatInfo &rInf );
+ friend SvStream & WriteSwTxtFormatInfo( SvStream &rOS, const SwTxtFormatInfo &rInf );
inline void SetTabOverflow( sal_Bool bOverflow ) { bTabOverflow = bOverflow; }
inline sal_Bool IsTabOverflow( ) { return bTabOverflow; }
diff --git a/sw/source/core/text/porlin.hxx b/sw/source/core/text/porlin.hxx
index e6d3e56c78de..2c90548cb462 100644
--- a/sw/source/core/text/porlin.hxx
+++ b/sw/source/core/text/porlin.hxx
@@ -32,7 +32,7 @@ class SwPortionHandler;
// The portions output operators are virtual methods of the portion.
#ifdef DBG_UTIL
-#define OUTPUT_OPERATOR virtual SvStream &operator<<( SvStream & aOs ) const;
+#define OUTPUT_OPERATOR virtual SvStream & operator<<( SvStream & aOs ) const;
#else
#define OUTPUT_OPERATOR
#endif
diff --git a/toolkit/source/awt/vclxprinter.cxx b/toolkit/source/awt/vclxprinter.cxx
index f0baf31e511a..0532e6272879 100644
--- a/toolkit/source/awt/vclxprinter.cxx
+++ b/toolkit/source/awt/vclxprinter.cxx
@@ -241,7 +241,7 @@ void VCLXPrinterPropertySet::selectForm( const OUString& rFormDescription ) thro
SvMemoryStream aMem;
aMem.WriteUInt32( sal_uInt32(BINARYSETUPMARKER) );
- aMem << GetPrinter()->GetJobSetup();
+ WriteJobSetup( aMem, GetPrinter()->GetJobSetup() );
return ::com::sun::star::uno::Sequence<sal_Int8>( (sal_Int8*) aMem.GetData(), aMem.Tell() );
}
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 1bce440ec8b8..9ed8d618989b 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -227,7 +227,7 @@ SvStream& Color::Write( SvStream& rOStm, bool bNewFormat )
if ( bNewFormat )
rOStm.WriteUInt32( mnColor );
else
- rOStm << *this;
+ WriteColor( rOStm, *this );
return rOStm;
}
@@ -300,7 +300,7 @@ SvStream& operator>>( SvStream& rIStream, Color& rColor )
return rIStream;
}
-SvStream& operator<<( SvStream& rOStream, const Color& rColor )
+SvStream& WriteColor( SvStream& rOStream, const Color& rColor )
{
DBG_ASSERTWARNING( rOStream.GetVersion(), "Color::<< - Solar-Version not set on rOStream" );
diff --git a/tools/source/generic/fract.cxx b/tools/source/generic/fract.cxx
index 3610065222bd..a8a550675ac6 100644
--- a/tools/source/generic/fract.cxx
+++ b/tools/source/generic/fract.cxx
@@ -493,7 +493,7 @@ SvStream& operator >> ( SvStream& rIStream, Fraction& rFract )
return rIStream;
}
-SvStream& operator << ( SvStream& rOStream, const Fraction& rFract )
+SvStream& WriteFraction( SvStream& rOStream, const Fraction& rFract )
{
//fdo#39428 SvStream no longer supports operator<<(long)
rOStream.WriteInt32( sal::static_int_cast<sal_Int32>(rFract.nNumerator) );
diff --git a/tools/source/generic/gen.cxx b/tools/source/generic/gen.cxx
index a0c74b5c3713..9643a8115219 100644
--- a/tools/source/generic/gen.cxx
+++ b/tools/source/generic/gen.cxx
@@ -34,7 +34,7 @@ SvStream& operator>>( SvStream& rIStream, Pair& rPair )
return rIStream;
}
-SvStream& operator<<( SvStream& rOStream, const Pair& rPair )
+SvStream& WritePair( SvStream& rOStream, const Pair& rPair )
{
DBG_ASSERTWARNING( rOStream.GetVersion(), "Pair::<< - Solar-Version not set on rOStream" );
@@ -186,7 +186,7 @@ SvStream& operator>>( SvStream& rIStream, Rectangle& rRect )
return rIStream;
}
-SvStream& operator<<( SvStream& rOStream, const Rectangle& rRect )
+SvStream& WriteRectangle( SvStream& rOStream, const Rectangle& rRect )
{
DBG_ASSERTWARNING( rOStream.GetVersion(), "Rectangle::<< - Solar-Version not set on rOStream" );
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 93f4bb685ba5..2e559940ea4f 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -1595,7 +1595,7 @@ SvStream& operator>>( SvStream& rIStream, Polygon& rPoly )
return rIStream;
}
-SvStream& operator<<( SvStream& rOStream, const Polygon& rPoly )
+SvStream& WritePolygon( SvStream& rOStream, const Polygon& rPoly )
{
DBG_CHKOBJ( &rPoly, Polygon, NULL );
DBG_ASSERTWARNING( rOStream.GetVersion(), "Polygon::<< - Solar-Version not set on rOStream" );
@@ -1659,7 +1659,7 @@ void Polygon::Read( SvStream& rIStream )
void Polygon::ImplWrite( SvStream& rOStream ) const
{
bool bHasPolyFlags = mpImplPolygon->mpFlagAry != NULL;
- rOStream << *this;
+ WritePolygon( rOStream, *this );
rOStream.WriteUChar(sal_uInt8(bHasPolyFlags));
if ( bHasPolyFlags )
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index 7b92501a6cb5..28a7df509f3d 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -623,7 +623,7 @@ SvStream& operator>>( SvStream& rIStream, PolyPolygon& rPolyPoly )
return rIStream;
}
-SvStream& operator<<( SvStream& rOStream, const PolyPolygon& rPolyPoly )
+SvStream& WritePolyPolygon( SvStream& rOStream, const PolyPolygon& rPolyPoly )
{
DBG_CHKOBJ( &rPolyPoly, PolyPolygon, NULL );
DBG_ASSERTWARNING( rOStream.GetVersion(), "PolyPolygon::<< - Solar-Version not set on rOStream" );
@@ -634,7 +634,7 @@ SvStream& operator<<( SvStream& rOStream, const PolyPolygon& rPolyPoly )
// output polygons
for ( sal_uInt16 i = 0; i < nPolyCount; i++ )
- rOStream << *(rPolyPoly.mpImplPolyPolygon->mpPolyAry[i]);
+ WritePolygon( rOStream, *(rPolyPoly.mpImplPolyPolygon->mpPolyAry[i]) );
return rOStream;
}
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx
index 3cd6300ddfbf..bdc7489c52c8 100644
--- a/tools/source/inet/inetmsg.cxx
+++ b/tools/source/inet/inetmsg.cxx
@@ -109,7 +109,7 @@ SvStream& INetMessage::operator<< (SvStream& rStrm) const
rStrm.WriteUInt32( static_cast<sal_uInt32>(n) );
for (i = 0; i < n; i++)
- rStrm << *( m_aHeaderList[ i ] );
+ WriteINetMessageHeader( rStrm, *( m_aHeaderList[ i ] ) );
return rStrm;
}
diff --git a/tools/source/ref/globname.cxx b/tools/source/ref/globname.cxx
index 7eb2022d1599..f23b1ea6ca7d 100644
--- a/tools/source/ref/globname.cxx
+++ b/tools/source/ref/globname.cxx
@@ -120,7 +120,7 @@ void SvGlobalName::NewImp()
}
}
-SvStream& operator << ( SvStream& rOStr, const SvGlobalName & rObj )
+SvStream& WriteSvGlobalName( SvStream& rOStr, const SvGlobalName & rObj )
{
sal_uInt32 a;
memcpy(&a, rObj.pImp->szData, sizeof(sal_uInt32));
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx
index e84f9fd47f86..c84a0b03c783 100644
--- a/tools/source/ref/pstm.cxx
+++ b/tools/source/ref/pstm.cxx
@@ -642,7 +642,7 @@ SvPersistStream& SvPersistStream::ReadPointer
return *this;
}
-SvPersistStream& operator <<
+SvPersistStream& WriteSvPersistBase
(
SvPersistStream & rStm,
SvPersistBase * pObj
@@ -660,7 +660,7 @@ SvPersistStream& operator >>
return rStm.ReadPointer( rpObj );
}
-SvStream& operator <<
+SvStream& WriteSvPersistStream
(
SvStream & rStm,
SvPersistStream & rThis
diff --git a/vcl/inc/impfont.hxx b/vcl/inc/impfont.hxx
index b464ee56ed30..0a9266013f99 100644
--- a/vcl/inc/impfont.hxx
+++ b/vcl/inc/impfont.hxx
@@ -83,7 +83,7 @@ private:
mbTransparent:1; // compatibility, now on output device
friend SvStream& operator>>( SvStream& rIStm, Impl_Font& );
- friend SvStream& operator<<( SvStream& rOStm, const Impl_Font& );
+ friend SvStream& WriteImpl_Font( SvStream& rOStm, const Impl_Font& );
};
// ------------------
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx
index 8ccabf6711f0..76cacb7f8f47 100644
--- a/vcl/inc/impgraph.hxx
+++ b/vcl/inc/impgraph.hxx
@@ -160,7 +160,7 @@ private:
sal_Bool ImplExportNative( SvStream& rOStm ) const;
- friend SvStream& operator<<( SvStream& rOStm, const ImpGraphic& rImpGraphic );
+ friend SvStream& WriteImpGraphic( SvStream& rOStm, const ImpGraphic& rImpGraphic );
friend SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic );
// SvgData support
diff --git a/vcl/inc/wall2.hxx b/vcl/inc/wall2.hxx
index f47c8f663cea..c6329b6abbe4 100644
--- a/vcl/inc/wall2.hxx
+++ b/vcl/inc/wall2.hxx
@@ -36,7 +36,7 @@ private:
BitmapEx* mpCache;
friend SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper );
- friend SvStream& operator<<( SvStream& rOStm, const ImplWallpaper& rImplWallpaper );
+ friend SvStream& WriteImplWallpaper( SvStream& rOStm, const ImplWallpaper& rImplWallpaper );
public:
ImplWallpaper();
diff --git a/vcl/source/filter/sgfbram.cxx b/vcl/source/filter/sgfbram.cxx
index 8c4a6ad9c9c9..09b8ff9101e2 100644
--- a/vcl/source/filter/sgfbram.cxx
+++ b/vcl/source/filter/sgfbram.cxx
@@ -82,7 +82,7 @@ SvStream& operator>>(SvStream& rIStream, SgfVector& rVect)
return rIStream;
}
-SvStream& operator<<(SvStream& rOStream, BmpFileHeader& rHead)
+SvStream& WriteBmpFileHeader(SvStream& rOStream, BmpFileHeader& rHead)
{
#if defined OSL_BIGENDIAN
rHead.Typ =OSL_SWAPWORD(rHead.Typ );
@@ -123,7 +123,7 @@ sal_uInt32 BmpFileHeader::GetOfs()
return sal_uInt32(OfsLo)+0x00010000*sal_uInt32(OfsHi);
}
-SvStream& operator<<(SvStream& rOStream, BmpInfoHeader& rInfo)
+SvStream& WriteBmpInfoHeader(SvStream& rOStream, BmpInfoHeader& rInfo)
{
#if defined OSL_BIGENDIAN
rInfo.Size =OSL_SWAPDWORD (rInfo.Size );
@@ -155,7 +155,7 @@ SvStream& operator<<(SvStream& rOStream, BmpInfoHeader& rInfo)
return rOStream;
}
-SvStream& operator<<(SvStream& rOStream, const RGBQuad& rQuad)
+SvStream& WriteRGBQuad(SvStream& rOStream, const RGBQuad& rQuad)
{
rOStream.Write((char*)&rQuad,sizeof(rQuad));
return rOStream;
@@ -231,14 +231,15 @@ bool SgfFilterBMap(SvStream& rInp, SvStream& rOut, SgfHeader& rHead, SgfEntry&)
aBmpInfo.ColMust=0;
pBuf=new sal_uInt8[nWdtOut];
if (!pBuf) return false; // Fehler: kein Speichel da
- rOut<<aBmpHead<<aBmpInfo;
+ WriteBmpFileHeader( rOut, aBmpHead );
+ WriteBmpInfoHeader( rOut, aBmpInfo );
memset(pBuf,0,nWdtOut); // Buffer mit Nullen fuellen
if (nColors==2)
{
- rOut<<RGBQuad(0x00,0x00,0x00); // Schwarz
- rOut<<RGBQuad(0xFF,0xFF,0xFF); // Weiss
+ WriteRGBQuad( rOut, RGBQuad(0x00,0x00,0x00) ); // Schwarz
+ WriteRGBQuad( rOut, RGBQuad(0xFF,0xFF,0xFF) ); // Weiss
nOfs=rOut.Tell();
for (j=0;j<rHead.Ysize;j++)
rOut.Write((char*)pBuf,nWdtOut); // Datei erstmal komplett mit Nullen fuellen
@@ -253,22 +254,22 @@ bool SgfFilterBMap(SvStream& rInp, SvStream& rOut, SgfHeader& rHead, SgfEntry&)
} else if (nColors==16) {
sal_uInt8 pl2= 0; // Masken fuer die Planes
- rOut<<RGBQuad(0x00,0x00,0x00); // Schwarz
- rOut<<RGBQuad(0x24,0x24,0x24); // Grau 80%
- rOut<<RGBQuad(0x49,0x49,0x49); // Grau 60%
- rOut<<RGBQuad(0x92,0x92,0x92); // Grau 40%
- rOut<<RGBQuad(0x6D,0x6D,0x6D); // Grau 30%
- rOut<<RGBQuad(0xB6,0xB6,0xB6); // Grau 20%
- rOut<<RGBQuad(0xDA,0xDA,0xDA); // Grau 10%
- rOut<<RGBQuad(0xFF,0xFF,0xFF); // Weiss
- rOut<<RGBQuad(0x00,0x00,0x00); // Schwarz
- rOut<<RGBQuad(0xFF,0x00,0x00); // Rot
- rOut<<RGBQuad(0x00,0x00,0xFF); // Blau
- rOut<<RGBQuad(0xFF,0x00,0xFF); // Magenta
- rOut<<RGBQuad(0x00,0xFF,0x00); // Gruen
- rOut<<RGBQuad(0xFF,0xFF,0x00); // Gelb
- rOut<<RGBQuad(0x00,0xFF,0xFF); // Cyan
- rOut<<RGBQuad(0xFF,0xFF,0xFF); // Weiss
+ WriteRGBQuad( rOut, RGBQuad(0x00,0x00,0x00) ); // Schwarz
+ WriteRGBQuad( rOut, RGBQuad(0x24,0x24,0x24) ); // Grau 80%
+ WriteRGBQuad( rOut, RGBQuad(0x49,0x49,0x49) ); // Grau 60%
+ WriteRGBQuad( rOut, RGBQuad(0x92,0x92,0x92) ); // Grau 40%
+ WriteRGBQuad( rOut, RGBQuad(0x6D,0x6D,0x6D) ); // Grau 30%
+ WriteRGBQuad( rOut, RGBQuad(0xB6,0xB6,0xB6) ); // Grau 20%
+ WriteRGBQuad( rOut, RGBQuad(0xDA,0xDA,0xDA) ); // Grau 10%
+ WriteRGBQuad( rOut, RGBQuad(0xFF,0xFF,0xFF) ); // Weiss
+ WriteRGBQuad( rOut, RGBQuad(0x00,0x00,0x00) ); // Schwarz
+ WriteRGBQuad( rOut, RGBQuad(0xFF,0x00,0x00) ); // Rot
+ WriteRGBQuad( rOut, RGBQuad(0x00,0x00,0xFF) ); // Blau
+ WriteRGBQuad( rOut, RGBQuad(0xFF,0x00,0xFF) ); // Magenta
+ WriteRGBQuad( rOut, RGBQuad(0x00,0xFF,0x00) ); // Gruen
+ WriteRGBQuad( rOut, RGBQuad(0xFF,0xFF,0x00) ); // Gelb
+ WriteRGBQuad( rOut, RGBQuad(0x00,0xFF,0xFF) ); // Cyan
+ WriteRGBQuad( rOut, RGBQuad(0xFF,0xFF,0xFF) ); // Weiss
nOfs=rOut.Tell();
for (j=0;j<rHead.Ysize;j++)
diff --git a/vcl/source/filter/sgfbram.hxx b/vcl/source/filter/sgfbram.hxx
index b38d72d57606..268405e65a4e 100644
--- a/vcl/source/filter/sgfbram.hxx
+++ b/vcl/source/filter/sgfbram.hxx
@@ -113,7 +113,7 @@ public:
void SetSize(sal_uInt32 Size);
void SetOfs(sal_uInt32 Size);
sal_uInt32 GetOfs();
- friend SvStream& operator<<(SvStream& rOStream, BmpFileHeader& rHead);
+ friend SvStream& WriteBmpFileHeader(SvStream& rOStream, BmpFileHeader& rHead);
};
#define BmpInfoHeaderSize 40
@@ -132,7 +132,7 @@ public:
sal_uInt32 ColUsed; // Anzahl der verwendeten Farben (0=alle)
sal_uInt32 ColMust; // Anzahl der wichtigen Farben (0=alle)
- friend SvStream& operator<<(SvStream& rOStream, BmpInfoHeader& rHead);
+ friend SvStream& WriteBmpInfoHeader(SvStream& rOStream, BmpInfoHeader& rHead);
};
#define RGBQuadSize 4
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index f2e7c243d7a2..1b204c5246a6 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -1295,7 +1295,7 @@ void WinMtfOutput::DrawPolygon( Polygon& rPolygon, sal_Bool bRecordPath )
SvMemoryStream aMemStm;
- aMemStm << aFill;
+ WriteSvtGraphicFill( aMemStm, aFill );
mpGDIMetaFile->AddAction( new MetaCommentAction( "XPATHFILL_SEQ_BEGIN", 0,
static_cast<const sal_uInt8*>(aMemStm.GetData()),
diff --git a/vcl/source/gdi/animate.cxx b/vcl/source/gdi/animate.cxx
index 92f19b7c4daa..0b128d853740 100644
--- a/vcl/source/gdi/animate.cxx
+++ b/vcl/source/gdi/animate.cxx
@@ -695,7 +695,7 @@ sal_Bool Animation::Filter( BmpFilter eFilter, const BmpFilterParam* pFilterPara
return bRet;
}
-SvStream& operator<<( SvStream& rOStm, const Animation& rAnimation )
+SvStream& WriteAnimation( SvStream& rOStm, const Animation& rAnimation )
{
const sal_uInt16 nCount = rAnimation.Count();
@@ -720,9 +720,9 @@ SvStream& operator<<( SvStream& rOStm, const Animation& rAnimation )
// Write AnimationBitmap
WriteDIBBitmapEx(rAnimBmp.aBmpEx, rOStm);
- rOStm << rAnimBmp.aPosPix;
- rOStm << rAnimBmp.aSizePix;
- rOStm << rAnimation.maGlobalSize;
+ WritePair( rOStm, rAnimBmp.aPosPix );
+ WritePair( rOStm, rAnimBmp.aSizePix );
+ WritePair( rOStm, rAnimation.maGlobalSize );
rOStm.WriteUInt16( (sal_uInt16) ( ( ANIMATION_TIMEOUT_ON_CLICK == rAnimBmp.nWait ) ? 65535 : rAnimBmp.nWait ) );
rOStm.WriteUInt16( (sal_uInt16) rAnimBmp.eDisposal );
rOStm.WriteUChar( (sal_uInt8) rAnimBmp.bUserInput );
diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx
index 1d1b2773c499..8b6d597234b3 100644
--- a/vcl/source/gdi/cvtsvm.cxx
+++ b/vcl/source/gdi/cvtsvm.cxx
@@ -45,8 +45,8 @@ void ImplReadRect( SvStream& rIStm, Rectangle& rRect )
void ImplWriteRect( SvStream& rOStm, const Rectangle& rRect )
{
- rOStm << rRect.TopLeft();
- rOStm << rRect.BottomRight();
+ WritePair( rOStm, rRect.TopLeft() );
+ WritePair( rOStm, rRect.BottomRight() );
}
void ImplReadPoly( SvStream& rIStm, Polygon& rPoly )
@@ -99,7 +99,7 @@ void ImplWritePolyPolyAction( SvStream& rOStm, const PolyPolygon& rPolyPoly )
rOStm.WriteInt32( (sal_Int32) nSize );
for( sal_uInt16 j = 0; j < nSize; j++ )
- rOStm << aSimplePoly[ j ];
+ WritePair( rOStm, aSimplePoly[ j ] );
}
}
@@ -142,7 +142,7 @@ void ImplReadMapMode( SvStream& rIStm, MapMode& rMapMode )
void ImplWriteMapMode( SvStream& rOStm, const MapMode& rMapMode )
{
rOStm.WriteInt16( (sal_Int16) rMapMode.GetMapUnit() );
- rOStm << rMapMode.GetOrigin();
+ WritePair( rOStm, rMapMode.GetOrigin() );
rOStm.WriteInt32( (sal_Int32) rMapMode.GetScaleX().GetNumerator() );
rOStm.WriteInt32( (sal_Int32) rMapMode.GetScaleX().GetDenominator() );
rOStm.WriteInt32( (sal_Int32) rMapMode.GetScaleY().GetNumerator() );
@@ -237,7 +237,7 @@ void ImplWriteFont( SvStream& rOStm, const Font& rFont,
ImplWriteColor( rOStm, rFont.GetColor() );
ImplWriteColor( rOStm, rFont.GetFillColor() );
rOStm.Write( aName, 32 );
- rOStm << rFont.GetSize();
+ WritePair( rOStm, rFont.GetSize() );
rOStm.WriteInt16( (sal_Int16) 0 ); // no character orientation anymore
rOStm.WriteInt16( (sal_Int16) rFont.GetOrientation() );
rOStm.WriteInt16( (sal_Int16) rActualCharSet );
@@ -361,7 +361,7 @@ bool ImplWriteExtendedPolyPolygonAction(SvStream& rOStm, const PolyPolygon& rPol
for(sal_uInt16 b(0); b < nPointCount; b++)
{
- rOStm << rCandidate[b];
+ WritePair( rOStm, rCandidate[b] );
}
if(rCandidate.HasFlags())
@@ -1386,7 +1386,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_PIXEL_ACTION );
rOStm.WriteInt32( (sal_Int32) 18 );
- rOStm << pAct->GetPoint();
+ WritePair( rOStm, pAct->GetPoint() );
ImplWriteColor( rOStm, pAct->GetColor() );
nCount++;
}
@@ -1398,7 +1398,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_POINT_ACTION );
rOStm.WriteInt32( (sal_Int32) 12 );
- rOStm << pAct->GetPoint();
+ WritePair( rOStm, pAct->GetPoint() );
nCount++;
}
break;
@@ -1445,8 +1445,8 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_LINE_ACTION );
rOStm.WriteInt32( (sal_Int32) 20 );
- rOStm << pAct->GetStartPoint();
- rOStm << pAct->GetEndPoint();
+ WritePair( rOStm, pAct->GetStartPoint() );
+ WritePair( rOStm, pAct->GetEndPoint() );
nCount++;
if( bFatLine )
@@ -1516,8 +1516,8 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_ARC_ACTION );
rOStm.WriteInt32( (sal_Int32) 36 );
ImplWriteRect( rOStm, pAct->GetRect() );
- rOStm << pAct->GetStartPoint();
- rOStm << pAct->GetEndPoint();
+ WritePair( rOStm, pAct->GetStartPoint() );
+ WritePair( rOStm, pAct->GetEndPoint() );
nCount++;
}
break;
@@ -1529,8 +1529,8 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_PIE_ACTION );
rOStm.WriteInt32( (sal_Int32) 36 );
ImplWriteRect( rOStm, pAct->GetRect() );
- rOStm << pAct->GetStartPoint();
- rOStm << pAct->GetEndPoint();
+ WritePair( rOStm, pAct->GetStartPoint() );
+ WritePair( rOStm, pAct->GetEndPoint() );
nCount++;
}
break;
@@ -1547,7 +1547,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt32( (sal_Int32) nPoints );
for( sal_uInt16 n = 0; n < nPoints; n++ )
- rOStm << aChordPoly[ n ];
+ WritePair( rOStm, aChordPoly[ n ] );
nCount++;
}
break;
@@ -1605,7 +1605,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
for( sal_uInt16 n = 0; n < nPoints; n++ )
{
- rOStm << aSimplePoly[ n ];
+ WritePair( rOStm, aSimplePoly[ n ] );
}
nCount++;
@@ -1654,7 +1654,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt32( (sal_Int32) nPoints );
for( sal_uInt16 n = 0; n < nPoints; n++ )
- rOStm << aSimplePoly[ n ];
+ WritePair( rOStm, aSimplePoly[ n ] );
nCount++;
@@ -1692,7 +1692,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_TEXT_ACTION );
rOStm.WriteInt32( ( 24 + ( nStrLen + 1 ) ) );
- rOStm << pAct->GetPoint();
+ WritePair( rOStm, pAct->GetPoint() );
rOStm.WriteInt32( pAct->GetIndex() );
rOStm.WriteInt32( pAct->GetLen() );
rOStm.WriteInt32( nStrLen );
@@ -1730,7 +1730,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_TEXTARRAY_ACTION );
rOStm.WriteInt32( ( 28 + ( nLen + 1 ) + ( nAryLen * 4 ) ) );
- rOStm << pAct->GetPoint();
+ WritePair( rOStm, pAct->GetPoint() );
rOStm.WriteInt32( 0 );
rOStm.WriteInt32( nLen );
rOStm.WriteInt32( nLen );
@@ -1757,7 +1757,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_STRETCHTEXT_ACTION );
rOStm.WriteInt32( ( 28 + ( nStrLen + 1 ) ) );
- rOStm << pAct->GetPoint();
+ WritePair( rOStm, pAct->GetPoint() );
rOStm.WriteInt32( pAct->GetIndex() );
rOStm.WriteInt32( pAct->GetLen() );
rOStm.WriteInt32( nStrLen );
@@ -1773,7 +1773,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_BITMAP_ACTION );
rOStm.WriteInt32( (sal_Int32) 12 );
- rOStm << pAct->GetPoint();
+ WritePair( rOStm, pAct->GetPoint() );
WriteDIB(pAct->GetBitmap(), rOStm, false, true);
nCount++;
}
@@ -1785,8 +1785,8 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_BITMAPSCALE_ACTION );
rOStm.WriteInt32( (sal_Int32) 20 );
- rOStm << pAct->GetPoint();
- rOStm << pAct->GetSize();
+ WritePair( rOStm, pAct->GetPoint() );
+ WritePair( rOStm, pAct->GetSize() );
WriteDIB(pAct->GetBitmap(), rOStm, false, true);
nCount++;
}
@@ -1798,10 +1798,10 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_BITMAPSCALEPART_ACTION );
rOStm.WriteInt32( (sal_Int32) 36 );
- rOStm << pAct->GetDestPoint();
- rOStm << pAct->GetDestSize();
- rOStm << pAct->GetSrcPoint();
- rOStm << pAct->GetSrcSize();
+ WritePair( rOStm, pAct->GetDestPoint() );
+ WritePair( rOStm, pAct->GetDestSize() );
+ WritePair( rOStm, pAct->GetSrcPoint() );
+ WritePair( rOStm, pAct->GetSrcSize() );
WriteDIB(pAct->GetBitmap(), rOStm, false, true);
nCount++;
}
@@ -1814,7 +1814,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_BITMAP_ACTION );
rOStm.WriteInt32( (sal_Int32) 12 );
- rOStm << pAct->GetPoint();
+ WritePair( rOStm, pAct->GetPoint() );
WriteDIB(aBmp, rOStm, false, true);
nCount++;
}
@@ -1827,8 +1827,8 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_BITMAPSCALE_ACTION );
rOStm.WriteInt32( (sal_Int32) 20 );
- rOStm << pAct->GetPoint();
- rOStm << pAct->GetSize();
+ WritePair( rOStm, pAct->GetPoint() );
+ WritePair( rOStm, pAct->GetSize() );
WriteDIB(aBmp, rOStm, false, true);
nCount++;
}
@@ -1841,10 +1841,10 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_BITMAPSCALEPART_ACTION );
rOStm.WriteInt32( (sal_Int32) 36 );
- rOStm << pAct->GetDestPoint();
- rOStm << pAct->GetDestSize();
- rOStm << pAct->GetSrcPoint();
- rOStm << pAct->GetSrcSize();
+ WritePair( rOStm, pAct->GetDestPoint() );
+ WritePair( rOStm, pAct->GetDestSize() );
+ WritePair( rOStm, pAct->GetSrcPoint() );
+ WritePair( rOStm, pAct->GetSrcSize() );
WriteDIB(aBmp, rOStm, false, true);
nCount++;
}
@@ -1884,7 +1884,8 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.SeekRel( 4 );
// write data
- rOStm << pA->GetPolyPolygon() << pA->GetGradient();
+ WritePolyPolygon( rOStm, pA->GetPolyPolygon() );
+ WriteGradient( rOStm, pA->GetGradient() );
rOStm.WriteInt32( (sal_Int32) 0 ); // number of actions that follow this comment
// calculate and write ActionSize of comment
@@ -1950,7 +1951,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.WriteInt16( (sal_Int16) GDI_ISECTCLIPREGION_ACTION );
rOStm.WriteInt32( (sal_Int32) 20 );
- rOStm << pAct->GetRect();
+ WriteRectangle( rOStm, pAct->GetRect() );
nCount++;
}
break;
@@ -2139,7 +2140,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.SeekRel( 4 );
// write comment data
- rOStm << rPolyPoly;
+ WritePolyPolygon( rOStm, rPolyPoly );
rOStm.WriteInt16( nTrans );
rOStm.WriteInt32( (sal_Int32) 15 ); // number of actions that follow this comment
@@ -2200,7 +2201,10 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.SeekRel( 4 );
// write comment data
- rOStm << rTransMtf << rPos << rSize << rGradient;
+ WriteGDIMetaFile( rOStm, rTransMtf );
+ WritePair( rOStm, rPos );
+ WritePair( rOStm, rSize );
+ WriteGradient( rOStm, rGradient );
// calculate and write ActionSize of comment
nNewPos = rOStm.Tell();
@@ -2257,8 +2261,8 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.SeekRel( 4 );
// write comment data
- rOStm << rPolyPoly;
- rOStm << rHatch;
+ WritePolyPolygon( rOStm, rPolyPoly );
+ WriteHatch( rOStm, rHatch );
// calculate and write ActionSize of comment
nNewPos = rOStm.Tell();
@@ -2300,7 +2304,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.SeekRel( 4 );
// write data
- rOStm << rRefPoint;
+ WritePair( rOStm, rRefPoint );
rOStm.WriteUChar( bSet );
rOStm.WriteInt32( (sal_Int32) 0 ); // number of actions that follow this comment
@@ -2329,7 +2333,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.SeekRel( 4 );
// write data
- rOStm << rColor;
+ WriteColor( rOStm, rColor );
rOStm.WriteUChar( bSet );
rOStm.WriteInt32( (sal_Int32) 0 ); // number of actions that follow this comment
@@ -2360,7 +2364,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
rOStm.SeekRel( 4 );
// write data
- rOStm << rStartPt;
+ WritePair( rOStm, rStartPt );
rOStm.WriteInt32( nWidth ).WriteUInt32( static_cast<sal_uInt32>(eStrikeout) ).WriteUInt32( static_cast<sal_uInt32>(eUnderline) );
rOStm.WriteInt32( (sal_Int32) 0 ); // number of actions that follow this comment
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 737385cc7244..79bc942e6445 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -1561,7 +1561,7 @@ bool WriteDIBBitmapEx(
}
else if(TRANSPARENT_COLOR == rSource.eTransparent)
{
- rOStm << rSource.aTransparentColor;
+ WriteColor( rOStm, rSource.aTransparentColor );
return true;
}
}
diff --git a/vcl/source/gdi/font.cxx b/vcl/source/gdi/font.cxx
index 492141d02b62..e37d30961957 100644
--- a/vcl/source/gdi/font.cxx
+++ b/vcl/source/gdi/font.cxx
@@ -706,12 +706,12 @@ SvStream& operator>>( SvStream& rIStm, Impl_Font& rImpl_Font )
return rIStm;
}
-SvStream& operator<<( SvStream& rOStm, const Impl_Font& rImpl_Font )
+SvStream& WriteImpl_Font( SvStream& rOStm, const Impl_Font& rImpl_Font )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 3 );
rOStm.WriteUniOrByteString( rImpl_Font.maFamilyName, rOStm.GetStreamCharSet() );
rOStm.WriteUniOrByteString( rImpl_Font.maStyleName, rOStm.GetStreamCharSet() );
- rOStm << rImpl_Font.maSize;
+ WritePair( rOStm, rImpl_Font.maSize );
rOStm.WriteUInt16( (sal_uInt16) GetStoreCharSet( rImpl_Font.meCharSet ) );
rOStm.WriteUInt16( (sal_uInt16) rImpl_Font.meFamily );
@@ -748,9 +748,9 @@ SvStream& operator>>( SvStream& rIStm, Font& rFont )
return( rIStm >> *rFont.mpImplFont );
}
-SvStream& operator<<( SvStream& rOStm, const Font& rFont )
+SvStream& WriteFont( SvStream& rOStm, const Font& rFont )
{
- return( rOStm << *rFont.mpImplFont );
+ return WriteImpl_Font( rOStm, *rFont.mpImplFont );
}
namespace
diff --git a/vcl/source/gdi/gdimetafiletools.cxx b/vcl/source/gdi/gdimetafiletools.cxx
index 74d370aa4ff4..6d3e213be91d 100644
--- a/vcl/source/gdi/gdimetafiletools.cxx
+++ b/vcl/source/gdi/gdimetafiletools.cxx
@@ -232,7 +232,7 @@ namespace
{
// write SvtGraphicFill
SvMemoryStream aMemStm;
- aMemStm << rStroke;
+ WriteSvtGraphicStroke( aMemStm, rStroke );
rTarget.AddAction(
new MetaCommentAction(
"XPATHSTROKE_SEQ_BEGIN",
@@ -245,7 +245,7 @@ namespace
{
// write SvtGraphicFill
SvMemoryStream aMemStm;
- aMemStm << rFilling;
+ WriteSvtGraphicFill( aMemStm, rFilling );
rTarget.AddAction(
new MetaCommentAction(
"XPATHFILL_SEQ_BEGIN",
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 6abda832bc90..51d929d13fc7 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -1201,7 +1201,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
Polygon aPath;
aStroke.getPath( aPath );
aStroke.setPath( ImplGetRotatedPolygon( aPath, aRotAnchor, aRotOffset, fSin, fCos ) );
- aDest << aStroke;
+ WriteSvtGraphicStroke( aDest, aStroke );
aMtf.AddAction( new MetaCommentAction( "XPATHSTROKE_SEQ_BEGIN", 0,
static_cast<const sal_uInt8*>( aDest.GetData()), aDest.Tell() ) );
}
@@ -1212,7 +1212,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
PolyPolygon aPath;
aFill.getPath( aPath );
aFill.setPath( ImplGetRotatedPolyPolygon( aPath, aRotAnchor, aRotOffset, fSin, fCos ) );
- aDest << aFill;
+ WriteSvtGraphicFill( aDest, aFill );
aMtf.AddAction( new MetaCommentAction( "XPATHFILL_SEQ_BEGIN", 0,
static_cast<const sal_uInt8*>( aDest.GetData()), aDest.Tell() ) );
}
@@ -2798,7 +2798,7 @@ SvStream& operator>>( SvStream& rIStm, GDIMetaFile& rGDIMetaFile )
return rIStm;
}
-SvStream& operator<<( SvStream& rOStm, const GDIMetaFile& rGDIMetaFile )
+SvStream& WriteGDIMetaFile( SvStream& rOStm, const GDIMetaFile& rGDIMetaFile )
{
if( !rOStm.GetError() )
{
@@ -2848,8 +2848,8 @@ SvStream& GDIMetaFile::Write( SvStream& rOStm )
pCompat = new VersionCompat( rOStm, STREAM_WRITE, 1 );
rOStm.WriteUInt32( nStmCompressMode );
- rOStm << aPrefMapMode;
- rOStm << aPrefSize;
+ WriteMapMode( rOStm, aPrefMapMode );
+ WritePair( rOStm, aPrefSize );
rOStm.WriteUInt32( (sal_uInt32) GetActionSize() );
delete pCompat;
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx
index 2bef53d0b3ba..d04b146cff63 100644
--- a/vcl/source/gdi/gfxlink.cxx
+++ b/vcl/source/gdi/gfxlink.cxx
@@ -269,7 +269,7 @@ sal_Bool GfxLink::ExportNative( SvStream& rOStream ) const
return ( rOStream.GetError() == ERRCODE_NONE );
}
-SvStream& operator<<( SvStream& rOStream, const GfxLink& rGfxLink )
+SvStream& WriteGfxLink( SvStream& rOStream, const GfxLink& rGfxLink )
{
VersionCompat* pCompat = new VersionCompat( rOStream, STREAM_WRITE, 2 );
@@ -277,7 +277,8 @@ SvStream& operator<<( SvStream& rOStream, const GfxLink& rGfxLink )
rOStream.WriteUInt16( (sal_uInt16) rGfxLink.GetType() ).WriteUInt32( rGfxLink.GetDataSize() ).WriteUInt32( rGfxLink.GetUserId() );
// Version 2
- rOStream << rGfxLink.GetPrefSize() << rGfxLink.GetPrefMapMode();
+ WritePair( rOStream, rGfxLink.GetPrefSize() );
+ WriteMapMode( rOStream, rGfxLink.GetPrefMapMode() );
delete pCompat;
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx
index 9ad19b034010..89d3ec182b62 100644
--- a/vcl/source/gdi/gradient.cxx
+++ b/vcl/source/gdi/gradient.cxx
@@ -306,12 +306,13 @@ SvStream& operator>>( SvStream& rIStm, Impl_Gradient& rImpl_Gradient )
return rIStm;
}
-SvStream& operator<<( SvStream& rOStm, const Impl_Gradient& rImpl_Gradient )
+SvStream& WriteImpl_Gradient( SvStream& rOStm, const Impl_Gradient& rImpl_Gradient )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
rOStm.WriteUInt16( (sal_uInt16) rImpl_Gradient.meStyle );
- rOStm << rImpl_Gradient.maStartColor << rImpl_Gradient.maEndColor;
+ WriteColor( rOStm, rImpl_Gradient.maStartColor );
+ WriteColor( rOStm, rImpl_Gradient.maEndColor );
rOStm.WriteUInt16( rImpl_Gradient.mnAngle )
.WriteUInt16( rImpl_Gradient.mnBorder )
.WriteUInt16( rImpl_Gradient.mnOfsX )
@@ -329,9 +330,9 @@ SvStream& operator>>( SvStream& rIStm, Gradient& rGradient )
return( rIStm >> *rGradient.mpImplGradient );
}
-SvStream& operator<<( SvStream& rOStm, const Gradient& rGradient )
+SvStream& WriteGradient( SvStream& rOStm, const Gradient& rGradient )
{
- return( rOStm << *rGradient.mpImplGradient );
+ return WriteImpl_Gradient( rOStm, *rGradient.mpImplGradient );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx
index ccdb11261f11..afa17a3aff5f 100644
--- a/vcl/source/gdi/graph.cxx
+++ b/vcl/source/gdi/graph.cxx
@@ -311,7 +311,7 @@ void Graphic::Load( SvStream& rIStm )
void Graphic::Save( SvStream& rOStm )
{
- rOStm << *this;
+ WriteGraphic( rOStm, *this );
}
void Graphic::Assign( const SvDataCopyStream& rCopyStream )
@@ -577,9 +577,9 @@ SvStream& operator>>( SvStream& rIStream, Graphic& rGraphic )
return rIStream >> *rGraphic.mpImpGraphic;
}
-SvStream& operator<<( SvStream& rOStream, const Graphic& rGraphic )
+SvStream& WriteGraphic( SvStream& rOStream, const Graphic& rGraphic )
{
- return rOStream << *rGraphic.mpImpGraphic;
+ return WriteImpGraphic( rOStream, *rGraphic.mpImpGraphic );
}
const SvgDataPtr& Graphic::getSvgData() const
diff --git a/vcl/source/gdi/graphictools.cxx b/vcl/source/gdi/graphictools.cxx
index 37c323c17591..1ea6906ade0a 100644
--- a/vcl/source/gdi/graphictools.cxx
+++ b/vcl/source/gdi/graphictools.cxx
@@ -135,7 +135,7 @@ void SvtGraphicStroke::scale( double fXScale, double fYScale )
maEndArrow.Scale( fXScale, fYScale );
}
-SvStream& operator<<( SvStream& rOStm, const SvtGraphicStroke& rClass )
+SvStream& WriteSvtGraphicStroke( SvStream& rOStm, const SvtGraphicStroke& rClass )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
@@ -287,12 +287,12 @@ void SvtGraphicFill::setPath( const PolyPolygon& rPath )
maPath = rPath;
}
-SvStream& operator<<( SvStream& rOStm, const SvtGraphicFill& rClass )
+SvStream& WriteSvtGraphicFill( SvStream& rOStm, const SvtGraphicFill& rClass )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
rClass.maPath.Write( rOStm );
- rOStm << rClass.maFillColor;
+ WriteColor( rOStm, rClass.maFillColor );
rOStm.WriteDouble( rClass.mfTransparency );
sal_uInt16 nTmp = sal::static_int_cast<sal_uInt16>( rClass.maFillRule );
rOStm.WriteUInt16( nTmp );
@@ -305,13 +305,13 @@ SvStream& operator<<( SvStream& rOStm, const SvtGraphicFill& rClass )
rOStm.WriteUInt16( nTmp );
nTmp = sal::static_int_cast<sal_uInt16>( rClass.maHatchType );
rOStm.WriteUInt16( nTmp );
- rOStm << rClass.maHatchColor;
+ WriteColor( rOStm, rClass.maHatchColor );
nTmp = sal::static_int_cast<sal_uInt16>( rClass.maGradientType );
rOStm.WriteUInt16( nTmp );
- rOStm << rClass.maGradient1stColor;
- rOStm << rClass.maGradient2ndColor;
+ WriteColor( rOStm, rClass.maGradient1stColor );
+ WriteColor( rOStm, rClass.maGradient2ndColor );
rOStm.WriteInt32( rClass.maGradientStepCount );
- rOStm << rClass.maFillGraphic;
+ WriteGraphic( rOStm, rClass.maFillGraphic );
return rOStm;
}
diff --git a/vcl/source/gdi/hatch.cxx b/vcl/source/gdi/hatch.cxx
index d1867ce18600..b55b22abed2a 100644
--- a/vcl/source/gdi/hatch.cxx
+++ b/vcl/source/gdi/hatch.cxx
@@ -133,11 +133,12 @@ SvStream& operator>>( SvStream& rIStm, ImplHatch& rImplHatch )
return rIStm;
}
-SvStream& operator<<( SvStream& rOStm, const ImplHatch& rImplHatch )
+SvStream& WriteImplHatch( SvStream& rOStm, const ImplHatch& rImplHatch )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
- rOStm.WriteUInt16( (sal_uInt16) rImplHatch.meStyle ) << rImplHatch.maColor;
+ rOStm.WriteUInt16( (sal_uInt16) rImplHatch.meStyle );
+ WriteColor( rOStm, rImplHatch.maColor );
//#fdo39428 SvStream no longer supports operator<<(long)
rOStm.WriteInt32( sal::static_int_cast<sal_Int32>(rImplHatch.mnDistance) ).WriteUInt16( rImplHatch.mnAngle );
@@ -150,9 +151,9 @@ SvStream& operator>>( SvStream& rIStm, Hatch& rHatch )
return( rIStm >> *rHatch.mpImplHatch );
}
-SvStream& operator<<( SvStream& rOStm, const Hatch& rHatch )
+SvStream& WriteHatch( SvStream& rOStm, const Hatch& rHatch )
{
- return( rOStm << *rHatch.mpImplHatch );
+ return WriteImplHatch( rOStm, *rHatch.mpImplHatch );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index df6de2a60d90..387ee0b22f8e 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -1247,8 +1247,8 @@ sal_Bool ImpGraphic::ImplWriteEmbedded( SvStream& rOStm )
nDataFieldPos = rOStm.Tell();
rOStm << (sal_Int32) 0;
- rOStm << aSize;
- rOStm << aMapMode;
+ WritePair( rOStm, aSize );
+ WriteMapMode( rOStm, aMapMode );
delete pCompat;
}
@@ -1278,7 +1278,7 @@ sal_Bool ImpGraphic::ImplWriteEmbedded( SvStream& rOStm )
const sal_uLong nDataStart = rOStm.Tell();
if( ImplIsSupportedGraphic() )
- rOStm << *this;
+ WriteImpGraphic( rOStm, *this );
if( !rOStm.GetError() )
{
@@ -1572,7 +1572,7 @@ sal_Bool ImpGraphic::ImplExportNative( SvStream& rOStm ) const
bResult = mpGfxLink->ExportNative( rOStm );
else
{
- rOStm << *this;
+ WriteImpGraphic( rOStm, *this );
bResult = ( rOStm.GetError() == ERRCODE_NONE );
}
}
@@ -1738,7 +1738,7 @@ SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
return rIStm;
}
-SvStream& operator<<( SvStream& rOStm, const ImpGraphic& rImpGraphic )
+SvStream& WriteImpGraphic( SvStream& rOStm, const ImpGraphic& rImpGraphic )
{
if( !rOStm.GetError() )
{
@@ -1759,7 +1759,7 @@ SvStream& operator<<( SvStream& rOStm, const ImpGraphic& rImpGraphic )
rImpGraphic.mpGfxLink->SetPrefMapMode( rImpGraphic.ImplGetPrefMapMode() );
rImpGraphic.mpGfxLink->SetPrefSize( rImpGraphic.ImplGetPrefSize() );
- rOStm << *rImpGraphic.mpGfxLink;
+ WriteGfxLink( rOStm, *rImpGraphic.mpGfxLink );
}
else
{
@@ -1791,7 +1791,7 @@ SvStream& operator<<( SvStream& rOStm, const ImpGraphic& rImpGraphic )
}
else if( rImpGraphic.ImplIsAnimated())
{
- rOStm << *rImpGraphic.mpAnimation;
+ WriteAnimation( rOStm, *rImpGraphic.mpAnimation );
}
else
{
@@ -1803,7 +1803,7 @@ SvStream& operator<<( SvStream& rOStm, const ImpGraphic& rImpGraphic )
default:
{
if( rImpGraphic.ImplIsSupportedGraphic() )
- rOStm << rImpGraphic.maMetaFile;
+ WriteGDIMetaFile( rOStm, rImpGraphic.maMetaFile );
}
break;
}
diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx
index 96c12e2e7c6d..9184dc6199a7 100644
--- a/vcl/source/gdi/jobset.cxx
+++ b/vcl/source/gdi/jobset.cxx
@@ -311,7 +311,7 @@ SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup )
return rIStream;
}
-SvStream& operator<<( SvStream& rOStream, const JobSetup& rJobSetup )
+SvStream& WriteJobSetup( SvStream& rOStream, const JobSetup& rJobSetup )
{
DBG_ASSERTWARNING( rOStream.GetVersion(), "JobSetup::<< - Solar-Version not set on rOStream" );
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx
index b7dc0f746feb..0151836257ba 100644
--- a/vcl/source/gdi/lineinfo.cxx
+++ b/vcl/source/gdi/lineinfo.cxx
@@ -268,7 +268,7 @@ SvStream& operator>>( SvStream& rIStm, ImplLineInfo& rImplLineInfo )
// -----------------------------------------------------------------------
-SvStream& operator<<( SvStream& rOStm, const ImplLineInfo& rImplLineInfo )
+SvStream& WriteImplLineInfo( SvStream& rOStm, const ImplLineInfo& rImplLineInfo )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 4 );
@@ -300,9 +300,9 @@ SvStream& operator>>( SvStream& rIStm, LineInfo& rLineInfo )
// -----------------------------------------------------------------------
-SvStream& operator<<( SvStream& rOStm, const LineInfo& rLineInfo )
+SvStream& WriteLineInfo( SvStream& rOStm, const LineInfo& rLineInfo )
{
- return( rOStm << *rLineInfo.mpImplLineInfo );
+ return WriteImplLineInfo( rOStm, *rLineInfo.mpImplLineInfo );
}
// -----------------------------------------------------------------------
diff --git a/vcl/source/gdi/mapmod.cxx b/vcl/source/gdi/mapmod.cxx
index 8c1a53c914dc..d4286d57361d 100644
--- a/vcl/source/gdi/mapmod.cxx
+++ b/vcl/source/gdi/mapmod.cxx
@@ -55,14 +55,14 @@ SvStream& operator>>( SvStream& rIStm, ImplMapMode& rImplMapMode )
return rIStm;
}
-SvStream& operator<<( SvStream& rOStm, const ImplMapMode& rImplMapMode )
+SvStream& WriteImplMapMode( SvStream& rOStm, const ImplMapMode& rImplMapMode )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
- rOStm.WriteUInt16( (sal_uInt16) rImplMapMode.meUnit ) <<
- rImplMapMode.maOrigin <<
- rImplMapMode.maScaleX <<
- rImplMapMode.maScaleY;
+ rOStm.WriteUInt16( (sal_uInt16) rImplMapMode.meUnit );
+ WritePair( rOStm, rImplMapMode.maOrigin );
+ WriteFraction( rOStm, rImplMapMode.maScaleX );
+ WriteFraction( rOStm, rImplMapMode.maScaleY );
rOStm.WriteUChar( rImplMapMode.mbSimple );
return rOStm;
@@ -237,9 +237,9 @@ SvStream& operator>>( SvStream& rIStm, MapMode& rMapMode )
return (rIStm >> *rMapMode.mpImplMapMode);
}
-SvStream& operator<<( SvStream& rOStm, const MapMode& rMapMode )
+SvStream& WriteMapMode( SvStream& rOStm, const MapMode& rMapMode )
{
- return (rOStm << *rMapMode.mpImplMapMode);
+ return WriteImplMapMode( rOStm, *rMapMode.mpImplMapMode );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index c622fecfb57d..3414abe46f32 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -289,7 +289,7 @@ sal_Bool MetaPixelAction::Compare( const MetaAction& rMetaAction ) const
void MetaPixelAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maPt;
+ WritePair( rOStm, maPt );
maColor.Write( rOStm, sal_True );
}
@@ -356,7 +356,7 @@ sal_Bool MetaPointAction::Compare( const MetaAction& rMetaAction ) const
void MetaPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maPt;
+ WritePair( rOStm, maPt );
}
// ------------------------------------------------------------------------
@@ -442,8 +442,9 @@ void MetaLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maStartPt << maEndPt; // Version 1
- rOStm << maLineInfo; // Version 2
+ WritePair( rOStm, maStartPt );
+ WritePair( rOStm, maEndPt ); // Version 1
+ WriteLineInfo( rOStm, maLineInfo ); // Version 2
}
// ------------------------------------------------------------------------
@@ -516,7 +517,7 @@ sal_Bool MetaRectAction::Compare( const MetaAction& rMetaAction ) const
void MetaRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRect;
+ WriteRectangle( rOStm, maRect );
}
// ------------------------------------------------------------------------
@@ -588,7 +589,7 @@ sal_Bool MetaRoundRectAction::Compare( const MetaAction& rMetaAction ) const
void MetaRoundRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRect;
+ WriteRectangle( rOStm, maRect );
rOStm.WriteUInt32( mnHorzRound ).WriteUInt32( mnVertRound );
}
@@ -654,7 +655,7 @@ sal_Bool MetaEllipseAction::Compare( const MetaAction& rMetaAction ) const
void MetaEllipseAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRect;
+ WriteRectangle( rOStm, maRect );
}
// ------------------------------------------------------------------------
@@ -728,7 +729,9 @@ sal_Bool MetaArcAction::Compare( const MetaAction& rMetaAction ) const
void MetaArcAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRect << maStartPt << maEndPt;
+ WriteRectangle( rOStm, maRect );
+ WritePair( rOStm, maStartPt );
+ WritePair( rOStm, maEndPt );
}
// ------------------------------------------------------------------------
@@ -802,7 +805,9 @@ sal_Bool MetaPieAction::Compare( const MetaAction& rMetaAction ) const
void MetaPieAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRect << maStartPt << maEndPt;
+ WriteRectangle( rOStm, maRect );
+ WritePair( rOStm, maStartPt );
+ WritePair( rOStm, maEndPt );
}
// ------------------------------------------------------------------------
@@ -876,7 +881,9 @@ sal_Bool MetaChordAction::Compare( const MetaAction& rMetaAction ) const
void MetaChordAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRect << maStartPt << maEndPt;
+ WriteRectangle( rOStm, maRect );
+ WritePair( rOStm, maStartPt );
+ WritePair( rOStm, maEndPt );
}
// ------------------------------------------------------------------------
@@ -964,8 +971,8 @@ void MetaPolyLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
Polygon aSimplePoly;
maPoly.AdaptiveSubdivide( aSimplePoly );
- rOStm << aSimplePoly; // Version 1
- rOStm << maLineInfo; // Version 2
+ WritePolygon( rOStm, aSimplePoly ); // Version 1
+ WriteLineInfo( rOStm, maLineInfo ); // Version 2
sal_uInt8 bHasPolyFlags = maPoly.HasFlags(); // Version 3
rOStm.WriteUChar( bHasPolyFlags );
@@ -1051,7 +1058,7 @@ void MetaPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
Polygon aSimplePoly; // Version 1
maPoly.AdaptiveSubdivide( aSimplePoly );
- rOStm << aSimplePoly;
+ WritePolygon( rOStm, aSimplePoly );
sal_uInt8 bHasPolyFlags = maPoly.HasFlags(); // Version 2
rOStm.WriteUChar( bHasPolyFlags );
@@ -1143,7 +1150,7 @@ void MetaPolyPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
if ( rPoly.HasFlags() )
nNumberOfComplexPolygons++;
rPoly.AdaptiveSubdivide( aSimplePoly );
- rOStm << aSimplePoly;
+ WritePolygon( rOStm, aSimplePoly );
}
rOStm.WriteUInt16( nNumberOfComplexPolygons ); // Version 2
@@ -1242,7 +1249,7 @@ sal_Bool MetaTextAction::Compare( const MetaAction& rMetaAction ) const
void MetaTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maPt;
+ WritePair( rOStm, maPt );
rOStm.WriteUniOrByteString( maStr, pData->meActualCharSet );
rOStm.WriteInt32(mnIndex);
rOStm.WriteInt32(mnLen);
@@ -1379,7 +1386,7 @@ void MetaTextArrayAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
const sal_Int32 nAryLen = mpDXAry ? mnLen : 0;
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maStartPt;
+ WritePair( rOStm, maStartPt );
rOStm.WriteUniOrByteString( maStr, pData->meActualCharSet );
rOStm.WriteInt32(mnIndex);
rOStm.WriteInt32(mnLen);
@@ -1516,7 +1523,7 @@ sal_Bool MetaStretchTextAction::Compare( const MetaAction& rMetaAction ) const
void MetaStretchTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maPt;
+ WritePair( rOStm, maPt );
rOStm.WriteUniOrByteString( maStr, pData->meActualCharSet );
rOStm.WriteUInt32( mnWidth );
rOStm.WriteInt32( mnIndex );
@@ -1599,7 +1606,7 @@ sal_Bool MetaTextRectAction::Compare( const MetaAction& rMetaAction ) const
void MetaTextRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 2, pData );
- rOStm << maRect;
+ WriteRectangle( rOStm, maRect );
rOStm.WriteUniOrByteString( maStr, pData->meActualCharSet );
rOStm.WriteUInt16( mnStyle );
@@ -1687,7 +1694,7 @@ void MetaTextLineAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WRITE_BASE_COMPAT( rOStm, 2, pData );
//#fdo39428 SvStream no longer supports operator<<(long)
- rOStm << maPos;
+ WritePair( rOStm, maPos );
rOStm.WriteInt32( sal::static_int_cast<sal_Int32>(mnWidth) );
rOStm.WriteUInt32( static_cast<sal_uInt32>(meStrikeout) );
rOStm.WriteUInt32( static_cast<sal_uInt32>(meUnderline) );
@@ -1776,7 +1783,7 @@ void MetaBmpAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIB(maBmp, rOStm, false, true);
- rOStm << maPt;
+ WritePair( rOStm, maPt );
}
}
@@ -1854,7 +1861,8 @@ void MetaBmpScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIB(maBmp, rOStm, false, true);
- rOStm << maPt << maSz;
+ WritePair( rOStm, maPt );
+ WritePair( rOStm, maSz );
}
}
@@ -1937,7 +1945,10 @@ void MetaBmpScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIB(maBmp, rOStm, false, true);
- rOStm << maDstPt << maDstSz << maSrcPt << maSrcSz;
+ WritePair( rOStm, maDstPt );
+ WritePair( rOStm, maDstSz );
+ WritePair( rOStm, maSrcPt );
+ WritePair( rOStm, maSrcSz );
}
}
@@ -2009,7 +2020,7 @@ void MetaBmpExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIBBitmapEx(maBmpEx, rOStm);
- rOStm << maPt;
+ WritePair( rOStm, maPt );
}
}
@@ -2087,7 +2098,8 @@ void MetaBmpExScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIBBitmapEx(maBmpEx, rOStm);
- rOStm << maPt << maSz;
+ WritePair( rOStm, maPt );
+ WritePair( rOStm, maSz );
}
}
@@ -2170,7 +2182,10 @@ void MetaBmpExScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIBBitmapEx(maBmpEx, rOStm);
- rOStm << maDstPt << maDstSz << maSrcPt << maSrcSz;
+ WritePair( rOStm, maDstPt );
+ WritePair( rOStm, maDstSz );
+ WritePair( rOStm, maSrcPt );
+ WritePair( rOStm, maSrcSz );
}
}
@@ -2246,7 +2261,7 @@ void MetaMaskAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIB(maBmp, rOStm, false, true);
- rOStm << maPt;
+ WritePair( rOStm, maPt );
}
}
@@ -2327,7 +2342,8 @@ void MetaMaskScaleAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIB(maBmp, rOStm, false, true);
- rOStm << maPt << maSz;
+ WritePair( rOStm, maPt );
+ WritePair( rOStm, maSz );
}
}
@@ -2414,7 +2430,10 @@ void MetaMaskScalePartAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
WRITE_BASE_COMPAT( rOStm, 1, pData );
WriteDIB(maBmp, rOStm, false, true);
maColor.Write( rOStm, sal_True );
- rOStm << maDstPt << maDstSz << maSrcPt << maSrcSz;
+ WritePair( rOStm, maDstPt );
+ WritePair( rOStm, maDstSz );
+ WritePair( rOStm, maSrcPt );
+ WritePair( rOStm, maSrcSz );
}
}
@@ -2484,7 +2503,8 @@ sal_Bool MetaGradientAction::Compare( const MetaAction& rMetaAction ) const
void MetaGradientAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRect << maGradient;
+ WriteRectangle( rOStm, maRect );
+ WriteGradient( rOStm, maGradient );
}
// ------------------------------------------------------------------------
@@ -2570,8 +2590,8 @@ void MetaGradientExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
PolyPolygon aNoCurvePolyPolygon;
maPolyPoly.AdaptiveSubdivide(aNoCurvePolyPolygon);
- rOStm << aNoCurvePolyPolygon;
- rOStm << maGradient;
+ WritePolyPolygon( rOStm, aNoCurvePolyPolygon );
+ WriteGradient( rOStm, maGradient );
}
// ------------------------------------------------------------------------
@@ -2644,8 +2664,8 @@ void MetaHatchAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
PolyPolygon aNoCurvePolyPolygon;
maPolyPoly.AdaptiveSubdivide(aNoCurvePolyPolygon);
- rOStm << aNoCurvePolyPolygon;
- rOStm << maHatch;
+ WritePolyPolygon( rOStm, aNoCurvePolyPolygon );
+ WriteHatch( rOStm, maHatch );
}
// ------------------------------------------------------------------------
@@ -2713,7 +2733,7 @@ sal_Bool MetaWallpaperAction::Compare( const MetaAction& rMetaAction ) const
void MetaWallpaperAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maWallpaper;
+ WriteWallpaper( rOStm, maWallpaper );
}
// ------------------------------------------------------------------------
@@ -2783,7 +2803,7 @@ sal_Bool MetaClipRegionAction::Compare( const MetaAction& rMetaAction ) const
void MetaClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRegion;
+ WriteRegion( rOStm, maRegion );
rOStm.WriteUChar( mbClip );
}
@@ -2849,7 +2869,7 @@ sal_Bool MetaISectRectClipRegionAction::Compare( const MetaAction& rMetaAction )
void MetaISectRectClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRect;
+ WriteRectangle( rOStm, maRect );
}
// ------------------------------------------------------------------------
@@ -2914,7 +2934,7 @@ sal_Bool MetaISectRegionClipRegionAction::Compare( const MetaAction& rMetaAction
void MetaISectRegionClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRegion;
+ WriteRegion( rOStm, maRegion );
}
// ------------------------------------------------------------------------
@@ -3435,7 +3455,7 @@ sal_Bool MetaMapModeAction::Compare( const MetaAction& rMetaAction ) const
void MetaMapModeAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maMapMode;
+ WriteMapMode( rOStm, maMapMode );
}
// ------------------------------------------------------------------------
@@ -3505,7 +3525,7 @@ sal_Bool MetaFontAction::Compare( const MetaAction& rMetaAction ) const
void MetaFontAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maFont;
+ WriteFont( rOStm, maFont );
pData->meActualCharSet = maFont.GetCharSet();
if ( pData->meActualCharSet == RTL_TEXTENCODING_DONTKNOW )
pData->meActualCharSet = osl_getThreadTextEncoding();
@@ -3730,7 +3750,7 @@ void MetaTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
PolyPolygon aNoCurvePolyPolygon;
maPolyPoly.AdaptiveSubdivide(aNoCurvePolyPolygon);
- rOStm << aNoCurvePolyPolygon;
+ WritePolyPolygon( rOStm, aNoCurvePolyPolygon );
rOStm.WriteUInt16( mnTransPercent );
}
@@ -3809,7 +3829,9 @@ void MetaFloatTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pDat
WRITE_BASE_COMPAT( rOStm, 1, pData );
maMtf.Write( rOStm );
- rOStm << maPoint << maSize << maGradient;
+ WritePair( rOStm, maPoint );
+ WritePair( rOStm, maSize );
+ WriteGradient( rOStm, maGradient );
}
// ------------------------------------------------------------------------
@@ -3884,9 +3906,9 @@ sal_Bool MetaEPSAction::Compare( const MetaAction& rMetaAction ) const
void MetaEPSAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maGfxLink;
- rOStm << maPoint;
- rOStm << maSize;
+ WriteGfxLink( rOStm, maGfxLink );
+ WritePair( rOStm, maPoint );
+ WritePair( rOStm, maSize );
maSubst.Write( rOStm );
}
@@ -3946,7 +3968,7 @@ sal_Bool MetaRefPointAction::Compare( const MetaAction& rMetaAction ) const
void MetaRefPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
{
WRITE_BASE_COMPAT( rOStm, 1, pData );
- rOStm << maRefPoint;
+ WritePair( rOStm, maRefPoint );
rOStm.WriteUChar( mbSet );
}
@@ -4062,7 +4084,7 @@ void MetaCommentAction::Move( long nXMove, long nYMove )
aEndArrow.Move(nXMove, nYMove);
aStroke.setEndArrow(aEndArrow);
- aDest << aStroke;
+ WriteSvtGraphicStroke( aDest, aStroke );
}
else
{
@@ -4074,7 +4096,7 @@ void MetaCommentAction::Move( long nXMove, long nYMove )
aPath.Move( nXMove, nYMove );
aFill.setPath( aPath );
- aDest << aFill;
+ WriteSvtGraphicFill( aDest, aFill );
}
delete[] mpData;
ImplInitDynamicData( static_cast<const sal_uInt8*>( aDest.GetData() ), aDest.Tell() );
@@ -4104,7 +4126,7 @@ void MetaCommentAction::Scale( double fXScale, double fYScale )
SvtGraphicStroke aStroke;
aMemStm >> aStroke;
aStroke.scale( fXScale, fYScale );
- aDest << aStroke;
+ WriteSvtGraphicStroke( aDest, aStroke );
}
else
{
@@ -4114,7 +4136,7 @@ void MetaCommentAction::Scale( double fXScale, double fYScale )
aFill.getPath( aPath );
aPath.Scale( fXScale, fYScale );
aFill.setPath( aPath );
- aDest << aFill;
+ WriteSvtGraphicFill( aDest, aFill );
}
delete[] mpData;
ImplInitDynamicData( static_cast<const sal_uInt8*>( aDest.GetData() ), aDest.Tell() );
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 5ab65becab24..375be676d44a 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -249,7 +249,7 @@ bool QueueInfo::operator==( const QueueInfo& rInfo ) const
}
-SvStream& operator<<( SvStream& rOStream, const QueueInfo& rInfo )
+SvStream& WriteQueueInfo( SvStream& rOStream, const QueueInfo& rInfo )
{
VersionCompat aCompat( rOStream, STREAM_WRITE, 1 );
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index e013c1b6bc22..b2ad73285b05 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -1617,7 +1617,7 @@ SvStream& operator>>(SvStream& rIStrm, Region& rRegion)
return rIStrm;
}
-SvStream& operator<<( SvStream& rOStrm, const Region& rRegion )
+SvStream& WriteRegion( SvStream& rOStrm, const Region& rRegion )
{
const sal_uInt16 nVersion(2);
VersionCompat aCompat(rOStrm, STREAM_WRITE, nVersion);
@@ -1683,7 +1683,7 @@ SvStream& operator<<( SvStream& rOStrm, const Region& rRegion )
PolyPolygon aNoCurvePolyPolygon;
rRegion.GetAsPolyPolygon().AdaptiveSubdivide(aNoCurvePolyPolygon);
- rOStrm << aNoCurvePolyPolygon;
+ WritePolyPolygon( rOStrm, aNoCurvePolyPolygon );
}
return rOStrm;
diff --git a/vcl/source/gdi/wall.cxx b/vcl/source/gdi/wall.cxx
index 0dad0148f842..297d98b85353 100644
--- a/vcl/source/gdi/wall.cxx
+++ b/vcl/source/gdi/wall.cxx
@@ -152,7 +152,7 @@ SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
// -----------------------------------------------------------------------
-SvStream& operator<<( SvStream& rOStm, const ImplWallpaper& rImplWallpaper )
+SvStream& WriteImplWallpaper( SvStream& rOStm, const ImplWallpaper& rImplWallpaper )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 3 );
sal_Bool bRect = ( rImplWallpaper.mpRect != NULL );
@@ -161,17 +161,17 @@ SvStream& operator<<( SvStream& rOStm, const ImplWallpaper& rImplWallpaper )
sal_Bool bDummy = sal_False;
// version 1
- rOStm << rImplWallpaper.maColor;
+ WriteColor( rOStm, rImplWallpaper.maColor );
rOStm.WriteUInt16( (sal_uInt16) rImplWallpaper.meStyle );
// version 2
rOStm.WriteUChar( bRect ).WriteUChar( bGrad ).WriteUChar( bBmp ).WriteUChar( bDummy ).WriteUChar( bDummy ).WriteUChar( bDummy );
if( bRect )
- rOStm << *rImplWallpaper.mpRect;
+ WriteRectangle( rOStm, *rImplWallpaper.mpRect );
if( bGrad )
- rOStm << *rImplWallpaper.mpGradient;
+ WriteGradient( rOStm, *rImplWallpaper.mpGradient );
if( bBmp )
WriteDIBBitmapEx(*rImplWallpaper.mpBitmap, rOStm);
@@ -557,9 +557,9 @@ SvStream& operator>>( SvStream& rIStm, Wallpaper& rWallpaper )
// -----------------------------------------------------------------------
-SvStream& operator<<( SvStream& rOStm, const Wallpaper& rWallpaper )
+SvStream& WriteWallpaper( SvStream& rOStm, const Wallpaper& rWallpaper )
{
- return( rOStm << *rWallpaper.mpImplWallpaper );
+ return WriteImplWallpaper( rOStm, *rWallpaper.mpImplWallpaper );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */