summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-30 13:46:42 +0200
committerMichael Stahl <mstahl@redhat.com>2014-02-04 22:50:39 +0000
commit186b4ebc99a2e80740fee51f9d0276886a003617 (patch)
treea86a4ff5fe3cd36add7053212ef37531540be253 /vcl/source/gdi
parent95a7e952552adb834f92d1477f83938e7c8d0204 (diff)
convert specialised SvStream::operator>> methods to ReadXXX methods
as preparation for converting the SvStream::operator>> methods on primitive types Change-Id: I62f134bced15c687d6e0d46924f56e8d1c3d95b9 Reviewed-on: https://gerrit.libreoffice.org/7798 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/animate.cxx8
-rw-r--r--vcl/source/gdi/cvtsvm.cxx67
-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.cxx12
-rw-r--r--vcl/source/gdi/gfxlink.cxx5
-rw-r--r--vcl/source/gdi/gradient.cxx12
-rw-r--r--vcl/source/gdi/graph.cxx6
-rw-r--r--vcl/source/gdi/graphictools.cxx14
-rw-r--r--vcl/source/gdi/hatch.cxx8
-rw-r--r--vcl/source/gdi/impgraph.cxx14
-rw-r--r--vcl/source/gdi/jobset.cxx2
-rw-r--r--vcl/source/gdi/lineinfo.cxx6
-rw-r--r--vcl/source/gdi/mapmod.cxx12
-rw-r--r--vcl/source/gdi/metaact.cxx122
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx4
-rw-r--r--vcl/source/gdi/print.cxx2
-rw-r--r--vcl/source/gdi/region.cxx4
-rw-r--r--vcl/source/gdi/wall.cxx12
20 files changed, 187 insertions, 137 deletions
diff --git a/vcl/source/gdi/animate.cxx b/vcl/source/gdi/animate.cxx
index 2c1d817519d2..dc228087dd07 100644
--- a/vcl/source/gdi/animate.cxx
+++ b/vcl/source/gdi/animate.cxx
@@ -738,7 +738,7 @@ SvStream& WriteAnimation( SvStream& rOStm, const Animation& rAnimation )
return rOStm;
}
-SvStream& operator>>( SvStream& rIStm, Animation& rAnimation )
+SvStream& ReadAnimation( SvStream& rIStm, Animation& rAnimation )
{
Bitmap aBmp;
sal_uLong nStmPos = rIStm.Tell();
@@ -782,9 +782,9 @@ SvStream& operator>>( SvStream& rIStm, Animation& rAnimation )
do
{
ReadDIBBitmapEx(aAnimBmp.aBmpEx, rIStm);
- rIStm >> aAnimBmp.aPosPix;
- rIStm >> aAnimBmp.aSizePix;
- rIStm >> rAnimation.maGlobalSize;
+ ReadPair( rIStm, aAnimBmp.aPosPix );
+ ReadPair( rIStm, aAnimBmp.aSizePix );
+ ReadPair( rIStm, rAnimation.maGlobalSize );
rIStm >> nTmp16; aAnimBmp.nWait = ( ( 65535 == nTmp16 ) ? ANIMATION_TIMEOUT_ON_CLICK : nTmp16 );
rIStm >> nTmp16; aAnimBmp.eDisposal = ( Disposal) nTmp16;
rIStm >> cTmp; aAnimBmp.bUserInput = (sal_Bool) cTmp;
diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx
index bad3016c6c19..75461611d20d 100644
--- a/vcl/source/gdi/cvtsvm.cxx
+++ b/vcl/source/gdi/cvtsvm.cxx
@@ -37,8 +37,8 @@ void ImplReadRect( SvStream& rIStm, Rectangle& rRect )
Point aTL;
Point aBR;
- rIStm >> aTL;
- rIStm >> aBR;
+ ReadPair( rIStm, aTL );
+ ReadPair( rIStm, aBR );
rRect = Rectangle( aTL, aBR );
}
@@ -57,7 +57,7 @@ void ImplReadPoly( SvStream& rIStm, Polygon& rPoly )
rPoly = Polygon( (sal_uInt16) nSize );
for( sal_uInt16 i = 0; i < (sal_uInt16) nSize; i++ )
- rIStm >> rPoly[ i ];
+ ReadPair( rIStm, rPoly[ i ] );
}
void ImplReadPolyPoly( SvStream& rIStm, PolyPolygon& rPolyPoly )
@@ -135,7 +135,9 @@ void ImplReadMapMode( SvStream& rIStm, MapMode& rMapMode )
sal_Int32 nYDenom;
sal_Int16 nUnit;
- rIStm >> nUnit >> aOrg >> nXNum >> nXDenom >> nYNum >> nYDenom;
+ rIStm >> nUnit;
+ ReadPair( rIStm, aOrg );
+ rIStm >> nXNum >> nXDenom >> nYNum >> nYDenom;
rMapMode = MapMode( (MapUnit) nUnit, aOrg, Fraction( nXNum, nXDenom ), Fraction( nYNum, nYDenom ) );
}
@@ -403,7 +405,7 @@ void ImplReadExtendedPolyPolygonAction(SvStream& rIStm, PolyPolygon& rPolyPoly)
{
for(sal_uInt16 b(0); b < nPointCount; b++)
{
- rIStm >> aCandidate[b];
+ ReadPair( rIStm , aCandidate[b] );
}
sal_uInt8 bHasFlags(false);
@@ -509,7 +511,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
{
case( GDI_PIXEL_ACTION ):
{
- rIStm >> aPt;
+ ReadPair( rIStm, aPt );
ImplReadColor( rIStm, aActionColor );
rMtf.AddAction( new MetaPixelAction( aPt, aActionColor ) );
}
@@ -517,14 +519,15 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_POINT_ACTION ):
{
- rIStm >> aPt;
+ ReadPair( rIStm, aPt );
rMtf.AddAction( new MetaPointAction( aPt ) );
}
break;
case( GDI_LINE_ACTION ):
{
- rIStm >> aPt >> aPt1;
+ ReadPair( rIStm, aPt );
+ ReadPair( rIStm, aPt1 );
rMtf.AddAction( new MetaLineAction( aPt, aPt1, aLineInfo ) );
}
break;
@@ -672,7 +675,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_ARC_ACTION ):
{
ImplReadRect( rIStm, aRect );
- rIStm >> aPt >> aPt1;
+ ReadPair( rIStm, aPt );
+ ReadPair( rIStm, aPt1 );
if( bFatLine )
{
@@ -692,7 +696,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
case( GDI_PIE_ACTION ):
{
ImplReadRect( rIStm, aRect );
- rIStm >> aPt >> aPt1;
+ ReadPair( rIStm, aPt );
+ ReadPair( rIStm, aPt1 );
if( bFatLine )
{
@@ -827,7 +832,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
{
sal_Int32 nIndex, nLen;
- rIStm >> aPt >> nIndex >> nLen >> nTmp;
+ ReadPair( rIStm, aPt ) >> nIndex >> nLen >> nTmp;
if (nTmp > 0)
{
OString aByteStr = read_uInt8s_ToOString(rIStm, nTmp);
@@ -849,7 +854,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
sal_Int32* pDXAry = NULL;
sal_Int32 nIndex, nLen, nAryLen;
- rIStm >> aPt >> nIndex >> nLen >> nTmp >> nAryLen;
+ ReadPair( rIStm, aPt ) >> nIndex >> nLen >> nTmp >> nAryLen;
if (nTmp > 0)
{
OString aByteStr = read_uInt8s_ToOString(rIStm, nTmp);
@@ -911,7 +916,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
{
sal_Int32 nIndex, nLen, nWidth;
- rIStm >> aPt >> nIndex >> nLen >> nTmp >> nWidth;
+ ReadPair( rIStm, aPt ) >> nIndex >> nLen >> nTmp >> nWidth;
if (nTmp > 0)
{
OString aByteStr = read_uInt8s_ToOString(rIStm, nTmp);
@@ -932,7 +937,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
{
Bitmap aBmp;
- rIStm >> aPt;
+ ReadPair( rIStm, aPt );
ReadDIB(aBmp, rIStm, true);
rMtf.AddAction( new MetaBmpAction( aPt, aBmp ) );
}
@@ -942,7 +947,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
{
Bitmap aBmp;
- rIStm >> aPt >> aSz;
+ ReadPair( rIStm, aPt );
+ ReadPair( rIStm, aSz );
ReadDIB(aBmp, rIStm, true);
rMtf.AddAction( new MetaBmpScaleAction( aPt, aSz, aBmp ) );
}
@@ -953,7 +959,10 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
Bitmap aBmp;
Size aSz2;
- rIStm >> aPt >> aSz >> aPt1 >> aSz2;
+ ReadPair( rIStm, aPt );
+ ReadPair( rIStm, aSz );
+ ReadPair( rIStm, aPt1 );
+ ReadPair( rIStm, aSz2 );
ReadDIB(aBmp, rIStm, true);
rMtf.AddAction( new MetaBmpScalePartAction( aPt, aSz, aPt1, aSz2, aBmp ) );
}
@@ -1170,7 +1179,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
sal_Int32 nFollowingActionCount;
sal_Int16 nTrans;
- rIStm >> aPolyPoly >> nTrans >> nFollowingActionCount;
+ ReadPolyPolygon( rIStm, aPolyPoly );
+ rIStm >> nTrans >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
rMtf.AddAction( new MetaTransparentAction( aPolyPoly, nTrans ) );
@@ -1186,7 +1196,11 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
Gradient aGradient;
sal_Int32 nFollowingActionCount;
- rIStm >> aMtf >> aPos >> aSize >> aGradient >> nFollowingActionCount;
+ ReadGDIMetaFile( rIStm, aMtf );
+ ReadPair( rIStm, aPos );
+ ReadPair( rIStm, aSize );
+ ReadGradient( rIStm, aGradient );
+ rIStm >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
rMtf.AddAction( new MetaFloatTransparentAction( aMtf, aPos, aSize, aGradient ) );
@@ -1200,7 +1214,9 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
Hatch aHatch;
sal_Int32 nFollowingActionCount;
- rIStm >> aPolyPoly >> aHatch >> nFollowingActionCount;
+ ReadPolyPolygon( rIStm, aPolyPoly );
+ ReadHatch( rIStm, aHatch );
+ rIStm >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
rMtf.AddAction( new MetaHatchAction( aPolyPoly, aHatch ) );
@@ -1214,7 +1230,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
sal_Bool bSet;
sal_Int32 nFollowingActionCount;
- rIStm >> aRefPoint >> bSet >> nFollowingActionCount;
+ ReadPair( rIStm, aRefPoint );
+ rIStm >> bSet >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
rMtf.AddAction( new MetaRefPointAction( aRefPoint, bSet ) );
@@ -1234,7 +1251,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
sal_Bool bSet;
sal_Int32 nFollowingActionCount;
- rIStm >> aColor >> bSet >> nFollowingActionCount;
+ ReadColor( rIStm, aColor );
+ rIStm >> bSet >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
rMtf.AddAction( new MetaTextLineColorAction( aColor, bSet ) );
@@ -1251,7 +1269,8 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
sal_uInt32 nUnderline;
sal_Int32 nFollowingActionCount;
- rIStm >> aStartPt >> nWidth >> nStrikeout >> nUnderline >> nFollowingActionCount;
+ ReadPair( rIStm, aStartPt );
+ rIStm >> nWidth >> nStrikeout >> nUnderline >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
rMtf.AddAction( new MetaTextLineAction( aStartPt, nWidth,
(FontStrikeout) nStrikeout,
@@ -1268,7 +1287,9 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
Gradient aGradient;
sal_Int32 nFollowingActionCount;
- rIStm >> aPolyPoly >> aGradient >> nFollowingActionCount;
+ ReadPolyPolygon( rIStm, aPolyPoly );
+ ReadGradient( rIStm, aGradient );
+ rIStm >> nFollowingActionCount;
ImplSkipActions( rIStm, nFollowingActionCount );
rMtf.AddAction( new MetaGradientExAction( aPolyPoly, aGradient ) );
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index 389f17ec198d..9de7205622be 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -1491,7 +1491,7 @@ bool ReadDIBBitmapEx(
{
Color aTransparentColor;
- rIStm >> aTransparentColor;
+ ReadColor( rIStm, aTransparentColor );
bRetval = !rIStm.GetError();
if(bRetval)
diff --git a/vcl/source/gdi/font.cxx b/vcl/source/gdi/font.cxx
index 2da441818035..fb2c49bafa9d 100644
--- a/vcl/source/gdi/font.cxx
+++ b/vcl/source/gdi/font.cxx
@@ -655,7 +655,7 @@ void Font::GetFontAttributes( ImplFontAttributes& rAttrs ) const
rAttrs.SetSymbolFlag( mpImplFont->meCharSet == RTL_TEXTENCODING_SYMBOL );
}
-SvStream& operator>>( SvStream& rIStm, Impl_Font& rImpl_Font )
+SvStream& ReadImpl_Font( SvStream& rIStm, Impl_Font& rImpl_Font )
{
VersionCompat aCompat( rIStm, STREAM_READ );
sal_uInt16 nTmp16;
@@ -664,7 +664,7 @@ SvStream& operator>>( SvStream& rIStm, Impl_Font& rImpl_Font )
rImpl_Font.maFamilyName = rIStm.ReadUniOrByteString(rIStm.GetStreamCharSet());
rImpl_Font.maStyleName = rIStm.ReadUniOrByteString(rIStm.GetStreamCharSet());
- rIStm >> rImpl_Font.maSize;
+ ReadPair( rIStm, rImpl_Font.maSize );
rIStm >> nTmp16; rImpl_Font.meCharSet = (rtl_TextEncoding) nTmp16;
rIStm >> nTmp16; rImpl_Font.meFamily = (FontFamily) nTmp16;
@@ -736,10 +736,10 @@ SvStream& WriteImpl_Font( SvStream& rOStm, const Impl_Font& rImpl_Font )
return rOStm;
}
-SvStream& operator>>( SvStream& rIStm, Font& rFont )
+SvStream& ReadFont( SvStream& rIStm, Font& rFont )
{
rFont.MakeUnique();
- return( rIStm >> *rFont.mpImplFont );
+ return ReadImpl_Font( rIStm, *rFont.mpImplFont );
}
SvStream& WriteFont( SvStream& rOStm, const Font& rFont )
diff --git a/vcl/source/gdi/gdimetafiletools.cxx b/vcl/source/gdi/gdimetafiletools.cxx
index 6d3e213be91d..45623853bfda 100644
--- a/vcl/source/gdi/gdimetafiletools.cxx
+++ b/vcl/source/gdi/gdimetafiletools.cxx
@@ -880,7 +880,7 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource)
{ // read SvtGraphicFill
SvMemoryStream aMemStm((void*)pA->GetData(), pA->GetDataSize(),STREAM_READ);
- aMemStm >> aFilling;
+ ReadSvtGraphicFill( aMemStm, aFilling );
}
aFilling.getPath(aPath);
@@ -921,7 +921,7 @@ void clipMetafileContentAgainstOwnRegions(GDIMetaFile& rSource)
{ // read SvtGraphicFill
SvMemoryStream aMemStm((void*)pA->GetData(), pA->GetDataSize(),STREAM_READ);
- aMemStm >> aStroke;
+ ReadSvtGraphicStroke( aMemStm, aStroke );
}
aStroke.getPath(aPath);
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index cdef014221c7..d11fbbbbd9ee 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -1197,7 +1197,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
if ( bPathStroke )
{
SvtGraphicStroke aStroke;
- aMemStm >> aStroke;
+ ReadSvtGraphicStroke( aMemStm, aStroke );
Polygon aPath;
aStroke.getPath( aPath );
aStroke.setPath( ImplGetRotatedPolygon( aPath, aRotAnchor, aRotOffset, fSin, fCos ) );
@@ -1208,7 +1208,7 @@ void GDIMetaFile::Rotate( long nAngle10 )
else
{
SvtGraphicFill aFill;
- aMemStm >> aFill;
+ ReadSvtGraphicFill( aMemStm, aFill );
PolyPolygon aPath;
aFill.getPath( aPath );
aFill.setPath( ImplGetRotatedPolyPolygon( aPath, aRotAnchor, aRotOffset, fSin, fCos ) );
@@ -2726,7 +2726,7 @@ sal_uLong GDIMetaFile::GetSizeBytes() const
return( nSizeBytes );
}
-SvStream& operator>>( SvStream& rIStm, GDIMetaFile& rGDIMetaFile )
+SvStream& ReadGDIMetaFile( SvStream& rIStm, GDIMetaFile& rGDIMetaFile )
{
if( !rIStm.GetError() )
{
@@ -2751,8 +2751,8 @@ SvStream& operator>>( SvStream& rIStm, GDIMetaFile& rGDIMetaFile )
pCompat = new VersionCompat( rIStm, STREAM_READ );
rIStm >> nStmCompressMode;
- rIStm >> rGDIMetaFile.aPrefMapMode;
- rIStm >> rGDIMetaFile.aPrefSize;
+ ReadMapMode( rIStm, rGDIMetaFile.aPrefMapMode );
+ ReadPair( rIStm, rGDIMetaFile.aPrefSize );
rIStm >> nCount;
delete pCompat;
@@ -2830,7 +2830,7 @@ Please set environment variable SAL_ENABLE_SVM1 to '1' to reenable old behavior"
SvStream& GDIMetaFile::Read( SvStream& rIStm )
{
Clear();
- rIStm >> *this;
+ ReadGDIMetaFile( rIStm, *this );
return rIStm;
}
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx
index de5daf3444d2..51f9cc344d01 100644
--- a/vcl/source/gdi/gfxlink.cxx
+++ b/vcl/source/gdi/gfxlink.cxx
@@ -293,7 +293,7 @@ SvStream& WriteGfxLink( SvStream& rOStream, const GfxLink& rGfxLink )
return rOStream;
}
-SvStream& operator>>( SvStream& rIStream, GfxLink& rGfxLink)
+SvStream& ReadGfxLink( SvStream& rIStream, GfxLink& rGfxLink)
{
Size aSize;
MapMode aMapMode;
@@ -309,7 +309,8 @@ SvStream& operator>>( SvStream& rIStream, GfxLink& rGfxLink)
if( pCompat->GetVersion() >= 2 )
{
- rIStream >> aSize >> aMapMode;
+ ReadPair( rIStream, aSize );
+ ReadMapMode( rIStream, aMapMode );
bMapAndSizeValid = true;
}
diff --git a/vcl/source/gdi/gradient.cxx b/vcl/source/gdi/gradient.cxx
index 89d3ec182b62..73ca288f8ddf 100644
--- a/vcl/source/gdi/gradient.cxx
+++ b/vcl/source/gdi/gradient.cxx
@@ -286,16 +286,16 @@ sal_Bool Gradient::operator==( const Gradient& rGradient ) const
return sal_False;
}
-SvStream& operator>>( SvStream& rIStm, Impl_Gradient& rImpl_Gradient )
+SvStream& ReadImpl_Gradient( SvStream& rIStm, Impl_Gradient& rImpl_Gradient )
{
VersionCompat aCompat( rIStm, STREAM_READ );
sal_uInt16 nTmp16;
rIStm >> nTmp16; rImpl_Gradient.meStyle = (GradientStyle) nTmp16;
- rIStm >> rImpl_Gradient.maStartColor >>
- rImpl_Gradient.maEndColor >>
- rImpl_Gradient.mnAngle >>
+ ReadColor( rIStm, rImpl_Gradient.maStartColor );
+ ReadColor( rIStm, rImpl_Gradient.maEndColor );
+ rIStm >> rImpl_Gradient.mnAngle >>
rImpl_Gradient.mnBorder >>
rImpl_Gradient.mnOfsX >>
rImpl_Gradient.mnOfsY >>
@@ -324,10 +324,10 @@ SvStream& WriteImpl_Gradient( SvStream& rOStm, const Impl_Gradient& rImpl_Gradie
return rOStm;
}
-SvStream& operator>>( SvStream& rIStm, Gradient& rGradient )
+SvStream& ReadGradient( SvStream& rIStm, Gradient& rGradient )
{
rGradient.MakeUnique();
- return( rIStm >> *rGradient.mpImplGradient );
+ return ReadImpl_Gradient( rIStm, *rGradient.mpImplGradient );
}
SvStream& WriteGradient( SvStream& rOStm, const Gradient& rGradient )
diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx
index afa17a3aff5f..20b1b090464c 100644
--- a/vcl/source/gdi/graph.cxx
+++ b/vcl/source/gdi/graph.cxx
@@ -306,7 +306,7 @@ sal_Bool Graphic::operator!() const
void Graphic::Load( SvStream& rIStm )
{
- rIStm >> *this;
+ ReadGraphic( rIStm, *this );
}
void Graphic::Save( SvStream& rOStm )
@@ -571,10 +571,10 @@ sal_Bool Graphic::ExportNative( SvStream& rOStream ) const
return mpImpGraphic->ImplExportNative( rOStream );
}
-SvStream& operator>>( SvStream& rIStream, Graphic& rGraphic )
+SvStream& ReadGraphic( SvStream& rIStream, Graphic& rGraphic )
{
rGraphic.ImplTestRefCount();
- return rIStream >> *rGraphic.mpImpGraphic;
+ return ReadImpGraphic( rIStream, *rGraphic.mpImpGraphic );
}
SvStream& WriteGraphic( SvStream& rOStream, const Graphic& rGraphic )
diff --git a/vcl/source/gdi/graphictools.cxx b/vcl/source/gdi/graphictools.cxx
index 31d9d61d23a7..b2a6eda87cfd 100644
--- a/vcl/source/gdi/graphictools.cxx
+++ b/vcl/source/gdi/graphictools.cxx
@@ -158,7 +158,7 @@ SvStream& WriteSvtGraphicStroke( SvStream& rOStm, const SvtGraphicStroke& rClass
return rOStm;
}
-SvStream& operator>>( SvStream& rIStm, SvtGraphicStroke& rClass )
+SvStream& ReadSvtGraphicStroke( SvStream& rIStm, SvtGraphicStroke& rClass )
{
VersionCompat aCompat( rIStm, STREAM_READ );
@@ -316,12 +316,12 @@ SvStream& WriteSvtGraphicFill( SvStream& rOStm, const SvtGraphicFill& rClass )
return rOStm;
}
-SvStream& operator>>( SvStream& rIStm, SvtGraphicFill& rClass )
+SvStream& ReadSvtGraphicFill( SvStream& rIStm, SvtGraphicFill& rClass )
{
VersionCompat aCompat( rIStm, STREAM_READ );
rClass.maPath.Read( rIStm );
- rIStm >> rClass.maFillColor;
+ ReadColor( rIStm, rClass.maFillColor );
rIStm >> rClass.mfTransparency;
sal_uInt16 nTmp;
rIStm >> nTmp;
@@ -335,13 +335,13 @@ SvStream& operator>>( SvStream& rIStm, SvtGraphicFill& rClass )
rClass.mbTiling = nTmp;
rIStm >> nTmp;
rClass.maHatchType = SvtGraphicFill::HatchType( nTmp );
- rIStm >> rClass.maHatchColor;
+ ReadColor( rIStm, rClass.maHatchColor );
rIStm >> nTmp;
rClass.maGradientType = SvtGraphicFill::GradientType( nTmp );
- rIStm >> rClass.maGradient1stColor;
- rIStm >> rClass.maGradient2ndColor;
+ ReadColor( rIStm, rClass.maGradient1stColor );
+ ReadColor( rIStm, rClass.maGradient2ndColor );
rIStm >> rClass.maGradientStepCount;
- rIStm >> rClass.maFillGraphic;
+ ReadGraphic( rIStm, rClass.maFillGraphic );
return rIStm;
}
diff --git a/vcl/source/gdi/hatch.cxx b/vcl/source/gdi/hatch.cxx
index b55b22abed2a..8ad2368da8f0 100644
--- a/vcl/source/gdi/hatch.cxx
+++ b/vcl/source/gdi/hatch.cxx
@@ -119,7 +119,7 @@ void Hatch::SetAngle( sal_uInt16 nAngle10 )
mpImplHatch->mnAngle = nAngle10;
}
-SvStream& operator>>( SvStream& rIStm, ImplHatch& rImplHatch )
+SvStream& ReadImplHatch( SvStream& rIStm, ImplHatch& rImplHatch )
{
VersionCompat aCompat( rIStm, STREAM_READ );
sal_uInt16 nTmp16;
@@ -127,7 +127,7 @@ SvStream& operator>>( SvStream& rIStm, ImplHatch& rImplHatch )
rIStm >> nTmp16; rImplHatch.meStyle = (HatchStyle) nTmp16;
//#fdo39428 SvStream no longer supports operator>>(long&)
- rIStm >> rImplHatch.maColor >> nTmp32 >> rImplHatch.mnAngle;
+ ReadColor( rIStm, rImplHatch.maColor ) >> nTmp32 >> rImplHatch.mnAngle;
rImplHatch.mnDistance = nTmp32;
return rIStm;
@@ -145,10 +145,10 @@ SvStream& WriteImplHatch( SvStream& rOStm, const ImplHatch& rImplHatch )
return rOStm;
}
-SvStream& operator>>( SvStream& rIStm, Hatch& rHatch )
+SvStream& ReadHatch( SvStream& rIStm, Hatch& rHatch )
{
rHatch.ImplMakeUnique();
- return( rIStm >> *rHatch.mpImplHatch );
+ return ReadImplHatch( rIStm, *rHatch.mpImplHatch );
}
SvStream& WriteHatch( SvStream& rOStm, const Hatch& rHatch )
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index 5fe15726bdd8..b1b04606e497 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -1015,8 +1015,8 @@ sal_Bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm, sal_Bool bSwap )
rIStm >> nType;
rIStm >> nLen;
- rIStm >> aSize;
- rIStm >> aMapMode;
+ ReadPair( rIStm, aSize );
+ ReadMapMode( rIStm, aMapMode );
delete pCompat;
}
@@ -1173,7 +1173,7 @@ sal_Bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm, sal_Bool bSwap )
}
else if( meType == GRAPHIC_BITMAP || meType == GRAPHIC_GDIMETAFILE )
{
- rIStm >> *this;
+ ReadImpGraphic( rIStm, *this );
bRet = ( rIStm.GetError() == 0UL );
}
else if( sal::static_int_cast<sal_uLong>(meType) >= SYS_WINMETAFILE
@@ -1587,7 +1587,7 @@ const SvgDataPtr& ImpGraphic::getSvgData() const
return maSvgData;
}
-SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
+SvStream& ReadImpGraphic( SvStream& rIStm, ImpGraphic& rImpGraphic )
{
if( !rIStm.GetError() )
{
@@ -1616,7 +1616,7 @@ SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
pCompat = new VersionCompat( rIStm, STREAM_READ );
delete pCompat;
- rIStm >> aLink;
+ ReadGfxLink( rIStm, aLink );
// set dummy link to avoid creation of additional link after filtering;
// we set a default link to avoid unnecessary swapping of native data
@@ -1668,7 +1668,7 @@ SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
{
delete rImpGraphic.mpAnimation;
rImpGraphic.mpAnimation = new Animation;
- rIStm >> *rImpGraphic.mpAnimation;
+ ReadAnimation( rIStm, *rImpGraphic.mpAnimation );
// #108077# manually set loaded BmpEx to Animation
// (which skips loading its BmpEx if already done)
@@ -1683,7 +1683,7 @@ SvStream& operator>>( SvStream& rIStm, ImpGraphic& rImpGraphic )
rIStm.Seek( nStmPos1 );
rIStm.ResetError();
- rIStm >> aMtf;
+ ReadGDIMetaFile( rIStm, aMtf );
if( !rIStm.GetError() )
{
diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx
index b0204af4cc39..35133b88ca30 100644
--- a/vcl/source/gdi/jobset.cxx
+++ b/vcl/source/gdi/jobset.cxx
@@ -221,7 +221,7 @@ sal_Bool JobSetup::operator==( const JobSetup& rJobSetup ) const
return sal_False;
}
-SvStream& operator>>( SvStream& rIStream, JobSetup& rJobSetup )
+SvStream& ReadJobSetup( SvStream& rIStream, JobSetup& rJobSetup )
{
DBG_ASSERTWARNING( rIStream.GetVersion(), "JobSetup::>> - Solar-Version not set on rOStream" );
diff --git a/vcl/source/gdi/lineinfo.cxx b/vcl/source/gdi/lineinfo.cxx
index 0151836257ba..c733808b2ca5 100644
--- a/vcl/source/gdi/lineinfo.cxx
+++ b/vcl/source/gdi/lineinfo.cxx
@@ -229,7 +229,7 @@ sal_Bool LineInfo::IsDefault() const
// -----------------------------------------------------------------------
-SvStream& operator>>( SvStream& rIStm, ImplLineInfo& rImplLineInfo )
+SvStream& ReadImplLineInfo( SvStream& rIStm, ImplLineInfo& rImplLineInfo )
{
VersionCompat aCompat( rIStm, STREAM_READ );
sal_uInt16 nTmp16(0);
@@ -292,10 +292,10 @@ SvStream& WriteImplLineInfo( SvStream& rOStm, const ImplLineInfo& rImplLineInfo
// -----------------------------------------------------------------------
-SvStream& operator>>( SvStream& rIStm, LineInfo& rLineInfo )
+SvStream& ReadLineInfo( SvStream& rIStm, LineInfo& rLineInfo )
{
rLineInfo.ImplMakeUnique();
- return( rIStm >> *rLineInfo.mpImplLineInfo );
+ return ReadImplLineInfo( rIStm, *rLineInfo.mpImplLineInfo );
}
// -----------------------------------------------------------------------
diff --git a/vcl/source/gdi/mapmod.cxx b/vcl/source/gdi/mapmod.cxx
index d4286d57361d..56d8380e589a 100644
--- a/vcl/source/gdi/mapmod.cxx
+++ b/vcl/source/gdi/mapmod.cxx
@@ -43,14 +43,16 @@ ImplMapMode::ImplMapMode( const ImplMapMode& rImplMapMode ) :
mbSimple = sal_False;
}
-SvStream& operator>>( SvStream& rIStm, ImplMapMode& rImplMapMode )
+SvStream& ReadImplMapMode( SvStream& rIStm, ImplMapMode& rImplMapMode )
{
VersionCompat aCompat( rIStm, STREAM_READ );
sal_uInt16 nTmp16;
rIStm >> nTmp16; rImplMapMode.meUnit = (MapUnit) nTmp16;
- rIStm >> rImplMapMode.maOrigin >> rImplMapMode.maScaleX >>
- rImplMapMode.maScaleY >> rImplMapMode.mbSimple;
+ ReadPair( rIStm, rImplMapMode.maOrigin );
+ ReadFraction( rIStm, rImplMapMode.maScaleX );
+ ReadFraction( rIStm, rImplMapMode.maScaleY );
+ rIStm >> rImplMapMode.mbSimple;
return rIStm;
}
@@ -231,10 +233,10 @@ sal_Bool MapMode::IsDefault() const
return sal_False;
}
-SvStream& operator>>( SvStream& rIStm, MapMode& rMapMode )
+SvStream& ReadMapMode( SvStream& rIStm, MapMode& rMapMode )
{
rMapMode.ImplMakeUnique();
- return (rIStm >> *rMapMode.mpImplMapMode);
+ return ReadImplMapMode( rIStm, *rMapMode.mpImplMapMode );
}
SvStream& WriteMapMode( SvStream& rOStm, const MapMode& rMapMode )
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 307e81088fd0..30fcd3909153 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -298,7 +298,7 @@ void MetaPixelAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaPixelAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPt;
+ ReadPair( rIStm, maPt );
maColor.Read( rIStm, true );
}
@@ -364,7 +364,7 @@ void MetaPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaPointAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPt;
+ ReadPair( rIStm, maPt );
}
// ========================================================================
@@ -454,12 +454,13 @@ void MetaLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
COMPAT( rIStm );
// Version 1
- rIStm >> maStartPt >> maEndPt;
+ ReadPair( rIStm, maStartPt );
+ ReadPair( rIStm, maEndPt );
// Version 2
if( aCompat.GetVersion() >= 2 )
{
- rIStm >> maLineInfo;
+ ReadLineInfo( rIStm, maLineInfo );
}
}
@@ -525,7 +526,7 @@ void MetaRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaRectAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRect;
+ ReadRectangle( rIStm, maRect );
}
// ========================================================================
@@ -598,7 +599,7 @@ void MetaRoundRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaRoundRectAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRect >> mnHorzRound >> mnVertRound;
+ ReadRectangle( rIStm, maRect ) >> mnHorzRound >> mnVertRound;
}
// ========================================================================
@@ -663,7 +664,7 @@ void MetaEllipseAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaEllipseAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRect;
+ ReadRectangle( rIStm, maRect );
}
// ========================================================================
@@ -739,7 +740,9 @@ void MetaArcAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaArcAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRect >> maStartPt >> maEndPt;
+ ReadRectangle( rIStm, maRect );
+ ReadPair( rIStm, maStartPt );
+ ReadPair( rIStm, maEndPt );
}
// ========================================================================
@@ -815,7 +818,9 @@ void MetaPieAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaPieAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRect >> maStartPt >> maEndPt;
+ ReadRectangle( rIStm, maRect );
+ ReadPair( rIStm, maStartPt );
+ ReadPair( rIStm, maEndPt );
}
// ========================================================================
@@ -891,7 +896,9 @@ void MetaChordAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaChordAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRect >> maStartPt >> maEndPt;
+ ReadRectangle( rIStm, maRect );
+ ReadPair( rIStm, maStartPt );
+ ReadPair( rIStm, maEndPt );
}
// ========================================================================
@@ -987,11 +994,11 @@ void MetaPolyLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
COMPAT( rIStm );
// Version 1
- rIStm >> maPoly;
+ ReadPolygon( rIStm, maPoly );
// Version 2
if( aCompat.GetVersion() >= 2 )
- rIStm >> maLineInfo;
+ ReadLineInfo( rIStm, maLineInfo );
if ( aCompat.GetVersion() >= 3 )
{
sal_uInt8 bHasPolyFlags;
@@ -1072,7 +1079,7 @@ void MetaPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPoly; // Version 1
+ ReadPolygon( rIStm, maPoly ); // Version 1
if( aCompat.GetVersion() >= 2 ) // Version 2
{
@@ -1172,7 +1179,7 @@ void MetaPolyPolygonAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaPolyPolygonAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPolyPoly; // Version 1
+ ReadPolyPolygon( rIStm, maPolyPoly ); // Version 1
if ( aCompat.GetVersion() >= 2 ) // Version 2
{
@@ -1262,7 +1269,7 @@ void MetaTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
COMPAT( rIStm );
- rIStm >> maPt;
+ ReadPair( rIStm, maPt );
maStr = rIStm.ReadUniOrByteString(pData->meActualCharSet);
rIStm >> mnIndex;
rIStm >> mnLen;
@@ -1407,7 +1414,7 @@ void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
delete[] mpDXAry;
COMPAT( rIStm );
- rIStm >> maStartPt;
+ ReadPair( rIStm, maStartPt );
maStr = rIStm.ReadUniOrByteString(pData->meActualCharSet);
rIStm >> mnIndex;
rIStm >> mnLen;
@@ -1537,7 +1544,7 @@ void MetaStretchTextAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaStretchTextAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
COMPAT( rIStm );
- rIStm >> maPt;
+ ReadPair( rIStm, maPt );
maStr = rIStm.ReadUniOrByteString(pData->meActualCharSet);
rIStm >> mnWidth;
rIStm >> mnIndex;
@@ -1618,7 +1625,7 @@ void MetaTextRectAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaTextRectAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
COMPAT( rIStm );
- rIStm >> maRect;
+ ReadRectangle( rIStm, maRect );
maStr = rIStm.ReadUniOrByteString(pData->meActualCharSet);
rIStm >> mnStyle;
@@ -1711,7 +1718,7 @@ void MetaTextLineAction::Read( SvStream& rIStm, ImplMetaReadData* )
//#fdo39428 SvStream no longer supports operator>>(long&)
sal_uInt32 nTemp;
sal_Int32 nTemp2;
- rIStm >> maPos;
+ ReadPair( rIStm, maPos );
rIStm >> nTemp2;
mnWidth = nTemp2;
rIStm >> nTemp;
@@ -1793,7 +1800,7 @@ void MetaBmpAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
ReadDIB(maBmp, rIStm, true);
- rIStm >> maPt;
+ ReadPair( rIStm, maPt );
}
// ========================================================================
@@ -1872,7 +1879,8 @@ void MetaBmpScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
ReadDIB(maBmp, rIStm, true);
- rIStm >> maPt >> maSz;
+ ReadPair( rIStm, maPt );
+ ReadPair( rIStm, maSz );
}
// ========================================================================
@@ -1958,7 +1966,10 @@ void MetaBmpScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
ReadDIB(maBmp, rIStm, true);
- rIStm >> maDstPt >> maDstSz >> maSrcPt >> maSrcSz;
+ ReadPair( rIStm, maDstPt );
+ ReadPair( rIStm, maDstSz );
+ ReadPair( rIStm, maSrcPt );
+ ReadPair( rIStm, maSrcSz );
}
// ========================================================================
@@ -2030,7 +2041,7 @@ void MetaBmpExAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
ReadDIBBitmapEx(maBmpEx, rIStm);
- rIStm >> maPt;
+ ReadPair( rIStm, maPt );
}
// ========================================================================
@@ -2109,7 +2120,8 @@ void MetaBmpExScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
ReadDIBBitmapEx(maBmpEx, rIStm);
- rIStm >> maPt >> maSz;
+ ReadPair( rIStm, maPt );
+ ReadPair( rIStm, maSz );
}
// ========================================================================
@@ -2195,7 +2207,10 @@ void MetaBmpExScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
ReadDIBBitmapEx(maBmpEx, rIStm);
- rIStm >> maDstPt >> maDstSz >> maSrcPt >> maSrcSz;
+ ReadPair( rIStm, maDstPt );
+ ReadPair( rIStm, maDstSz );
+ ReadPair( rIStm, maSrcPt );
+ ReadPair( rIStm, maSrcSz );
}
// ========================================================================
@@ -2271,7 +2286,7 @@ void MetaMaskAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
ReadDIB(maBmp, rIStm, true);
- rIStm >> maPt;
+ ReadPair( rIStm, maPt );
}
// ========================================================================
@@ -2353,7 +2368,8 @@ void MetaMaskScaleAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
ReadDIB(maBmp, rIStm, true);
- rIStm >> maPt >> maSz;
+ ReadPair( rIStm, maPt );
+ ReadPair( rIStm, maSz );
}
// ========================================================================
@@ -2444,7 +2460,10 @@ void MetaMaskScalePartAction::Read( SvStream& rIStm, ImplMetaReadData* )
COMPAT( rIStm );
ReadDIB(maBmp, rIStm, true);
maColor.Read( rIStm, true );
- rIStm >> maDstPt >> maDstSz >> maSrcPt >> maSrcSz;
+ ReadPair( rIStm, maDstPt );
+ ReadPair( rIStm, maDstSz );
+ ReadPair( rIStm, maSrcPt );
+ ReadPair( rIStm, maSrcSz );
}
// ========================================================================
@@ -2512,7 +2531,8 @@ void MetaGradientAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaGradientAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRect >> maGradient;
+ ReadRectangle( rIStm, maRect );
+ ReadGradient( rIStm, maGradient );
}
// ========================================================================
@@ -2599,7 +2619,8 @@ void MetaGradientExAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaGradientExAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPolyPoly >> maGradient;
+ ReadPolyPolygon( rIStm, maPolyPoly );
+ ReadGradient( rIStm, maGradient );
}
// ========================================================================
@@ -2673,7 +2694,8 @@ void MetaHatchAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaHatchAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPolyPoly >> maHatch;
+ ReadPolyPolygon( rIStm, maPolyPoly );
+ ReadHatch( rIStm, maHatch );
}
// ========================================================================
@@ -2741,7 +2763,7 @@ void MetaWallpaperAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaWallpaperAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maWallpaper;
+ ReadWallpaper( rIStm, maWallpaper );
}
// ========================================================================
@@ -2812,7 +2834,8 @@ void MetaClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRegion >> mbClip;
+ ReadRegion( rIStm, maRegion );
+ rIStm >> mbClip;
}
// ========================================================================
@@ -2877,7 +2900,7 @@ void MetaISectRectClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData* p
void MetaISectRectClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRect;
+ ReadRectangle( rIStm, maRect );
}
// ========================================================================
@@ -2942,7 +2965,7 @@ void MetaISectRegionClipRegionAction::Write( SvStream& rOStm, ImplMetaWriteData*
void MetaISectRegionClipRegionAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRegion;
+ ReadRegion( rIStm, maRegion );
}
// ========================================================================
@@ -3463,7 +3486,7 @@ void MetaMapModeAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaMapModeAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maMapMode;
+ ReadMapMode( rIStm, maMapMode );
}
// ========================================================================
@@ -3536,7 +3559,7 @@ void MetaFontAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaFontAction::Read( SvStream& rIStm, ImplMetaReadData* pData )
{
COMPAT( rIStm );
- rIStm >> maFont;
+ ReadFont( rIStm, maFont );
pData->meActualCharSet = maFont.GetCharSet();
if ( pData->meActualCharSet == RTL_TEXTENCODING_DONTKNOW )
pData->meActualCharSet = osl_getThreadTextEncoding();
@@ -3759,7 +3782,7 @@ void MetaTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaTransparentAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maPolyPoly;
+ ReadPolyPolygon( rIStm, maPolyPoly );
rIStm >> mnTransPercent;
}
@@ -3839,7 +3862,10 @@ void MetaFloatTransparentAction::Write( SvStream& rOStm, ImplMetaWriteData* pDat
void MetaFloatTransparentAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maMtf >> maPoint >> maSize >> maGradient;
+ ReadGDIMetaFile( rIStm, maMtf );
+ ReadPair( rIStm, maPoint );
+ ReadPair( rIStm, maSize );
+ ReadGradient( rIStm, maGradient );
}
// ========================================================================
@@ -3917,10 +3943,10 @@ void MetaEPSAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaEPSAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maGfxLink;
- rIStm >> maPoint;
- rIStm >> maSize;
- rIStm >> maSubst;
+ ReadGfxLink( rIStm, maGfxLink );
+ ReadPair( rIStm, maPoint );
+ ReadPair( rIStm, maSize );
+ ReadGDIMetaFile( rIStm, maSubst );
}
// ========================================================================
@@ -3977,7 +4003,7 @@ void MetaRefPointAction::Write( SvStream& rOStm, ImplMetaWriteData* pData )
void MetaRefPointAction::Read( SvStream& rIStm, ImplMetaReadData* )
{
COMPAT( rIStm );
- rIStm >> maRefPoint >> mbSet;
+ ReadPair( rIStm, maRefPoint ) >> mbSet;
}
// ========================================================================
@@ -4067,7 +4093,7 @@ void MetaCommentAction::Move( long nXMove, long nYMove )
if ( bPathStroke )
{
SvtGraphicStroke aStroke;
- aMemStm >> aStroke;
+ ReadSvtGraphicStroke( aMemStm, aStroke );
Polygon aPath;
aStroke.getPath( aPath );
@@ -4089,7 +4115,7 @@ void MetaCommentAction::Move( long nXMove, long nYMove )
else
{
SvtGraphicFill aFill;
- aMemStm >> aFill;
+ ReadSvtGraphicFill( aMemStm, aFill );
PolyPolygon aPath;
aFill.getPath( aPath );
@@ -4124,14 +4150,14 @@ void MetaCommentAction::Scale( double fXScale, double fYScale )
if ( bPathStroke )
{
SvtGraphicStroke aStroke;
- aMemStm >> aStroke;
+ ReadSvtGraphicStroke( aMemStm, aStroke );
aStroke.scale( fXScale, fYScale );
WriteSvtGraphicStroke( aDest, aStroke );
}
else
{
SvtGraphicFill aFill;
- aMemStm >> aFill;
+ ReadSvtGraphicFill( aMemStm, aFill );
PolyPolygon aPath;
aFill.getPath( aPath );
aPath.Scale( fXScale, fYScale );
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index b04565905a47..135d5b0a43a2 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -563,7 +563,7 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa
{
sSeqEnd = OString("XPATHSTROKE_SEQ_END");
SvtGraphicStroke aStroke;
- aMemStm >> aStroke;
+ ReadSvtGraphicStroke( aMemStm, aStroke );
Polygon aPath;
aStroke.getPath( aPath );
@@ -648,7 +648,7 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa
{
sSeqEnd = OString("XPATHFILL_SEQ_END");
SvtGraphicFill aFill;
- aMemStm >> aFill;
+ ReadSvtGraphicFill( aMemStm, aFill );
if ( ( aFill.getFillType() == SvtGraphicFill::fillSolid ) && ( aFill.getFillRule() == SvtGraphicFill::fillEvenOdd ) )
{
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 5fd03256fa84..a77bdce9ec51 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -264,7 +264,7 @@ SvStream& WriteQueueInfo( SvStream& rOStream, const QueueInfo& rInfo )
}
-SvStream& operator>>( SvStream& rIStream, QueueInfo& rInfo )
+SvStream& ReadQueueInfo( SvStream& rIStream, QueueInfo& rInfo )
{
VersionCompat aCompat( rIStream, STREAM_READ );
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index b2ad73285b05..5432c9b79267 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -1558,7 +1558,7 @@ bool Region::operator==( const Region& rRegion ) const
return false;
}
-SvStream& operator>>(SvStream& rIStrm, Region& rRegion)
+SvStream& ReadRegion(SvStream& rIStrm, Region& rRegion)
{
VersionCompat aCompat(rIStrm, STREAM_READ);
sal_uInt16 nVersion(0);
@@ -1605,7 +1605,7 @@ SvStream& operator>>(SvStream& rIStrm, Region& rRegion)
if(bHasPolyPolygon)
{
PolyPolygon* pNewPoly = new PolyPolygon();
- rIStrm >> *pNewPoly;
+ ReadPolyPolygon( rIStrm, *pNewPoly );
rRegion.mpPolyPolygon.reset(pNewPoly);
}
}
diff --git a/vcl/source/gdi/wall.cxx b/vcl/source/gdi/wall.cxx
index 3b7bbab66562..a303d25ca508 100644
--- a/vcl/source/gdi/wall.cxx
+++ b/vcl/source/gdi/wall.cxx
@@ -97,7 +97,7 @@ void ImplWallpaper::ImplReleaseCachedBitmap()
// -----------------------------------------------------------------------
-SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
+SvStream& ReadImplWallpaper( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
{
VersionCompat aCompat( rIStm, STREAM_READ );
sal_uInt16 nTmp16;
@@ -112,7 +112,7 @@ SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
rImplWallpaper.mpBitmap = NULL;
// version 1
- rIStm >> rImplWallpaper.maColor;
+ ReadColor( rIStm, rImplWallpaper.maColor );
rIStm >> nTmp16; rImplWallpaper.meStyle = (WallpaperStyle) nTmp16;
// version 2
@@ -125,13 +125,13 @@ SvStream& operator>>( SvStream& rIStm, ImplWallpaper& rImplWallpaper )
if( bRect )
{
rImplWallpaper.mpRect = new Rectangle;
- rIStm >> *rImplWallpaper.mpRect;
+ ReadRectangle( rIStm, *rImplWallpaper.mpRect );
}
if( bGrad )
{
rImplWallpaper.mpGradient = new Gradient;
- rIStm >> *rImplWallpaper.mpGradient;
+ ReadGradient( rIStm, *rImplWallpaper.mpGradient );
}
if( bBmp )
@@ -549,10 +549,10 @@ sal_Bool Wallpaper::operator==( const Wallpaper& rWallpaper ) const
// -----------------------------------------------------------------------
-SvStream& operator>>( SvStream& rIStm, Wallpaper& rWallpaper )
+SvStream& ReadWallpaper( SvStream& rIStm, Wallpaper& rWallpaper )
{
rWallpaper.ImplMakeUnique();
- return( rIStm >> *rWallpaper.mpImplWallpaper );
+ return ReadImplWallpaper( rIStm, *rWallpaper.mpImplWallpaper );
}
// -----------------------------------------------------------------------