diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-07 16:28:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-27 08:20:43 +0000 |
commit | 644487a1152c7586a7f20c7f372572a71d8494d5 (patch) | |
tree | 683cdbd755ec1660e75f930e5be4cd6867e3e734 /svtools | |
parent | 1b4dff2c371d31c99f34324c3f6f31888bdc34d7 (diff) |
loplugin:unusedmethods
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861
Reviewed-on: https://gerrit.libreoffice.org/19231
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfattr.cxx | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/svtools/source/graphic/grfattr.cxx b/svtools/source/graphic/grfattr.cxx index 26001ee13da0..6a1c1a7b73cd 100644 --- a/svtools/source/graphic/grfattr.cxx +++ b/svtools/source/graphic/grfattr.cxx @@ -73,49 +73,4 @@ bool GraphicAttr::operator==( const GraphicAttr& rAttr ) const -SvStream& ReadGraphicAttr( SvStream& rIStm, GraphicAttr& rAttr ) -{ - VersionCompat aCompat( rIStm, StreamMode::READ ); - sal_uInt32 nTmp32, nTmpMirrFlags; - sal_uInt16 nTmp16; - - rIStm.ReadUInt32( nTmp32 ).ReadUInt32( nTmp32 ).ReadDouble( rAttr.mfGamma ).ReadUInt32( nTmpMirrFlags ).ReadUInt16( rAttr.mnRotate10 ); - rAttr.mnMirrFlags = static_cast<BmpMirrorFlags>(nTmpMirrFlags); - rIStm.ReadInt16( rAttr.mnContPercent ).ReadInt16( rAttr.mnLumPercent ).ReadInt16( rAttr.mnRPercent ).ReadInt16( rAttr.mnGPercent ).ReadInt16( rAttr.mnBPercent ); - rIStm.ReadCharAsBool( rAttr.mbInvert ).ReadUChar( rAttr.mcTransparency ).ReadUInt16( nTmp16 ); - rAttr.meDrawMode = (GraphicDrawMode) nTmp16; - - if( aCompat.GetVersion() >= 2 ) - { - sal_Int32 nTmpL(0), nTmpT(0), nTmpR(0), nTmpB(0); - rIStm.ReadInt32( nTmpL ).ReadInt32( nTmpT ).ReadInt32( nTmpR ).ReadInt32( nTmpB ); - rAttr.mnLeftCrop = nTmpL; - rAttr.mnTopCrop = nTmpT; - rAttr.mnRightCrop = nTmpR; - rAttr.mnBottomCrop = nTmpB; - } - - return rIStm; -} - - - -SvStream& WriteGraphicAttr( SvStream& rOStm, const GraphicAttr& rAttr ) -{ - VersionCompat aCompat( rOStm, StreamMode::WRITE, 2 ); - const sal_uInt32 nTmp32 = 0; - - rOStm.WriteUInt32( nTmp32 ).WriteUInt32( nTmp32 ); - rOStm.WriteDouble( rAttr.mfGamma ); - rOStm.WriteUInt32( static_cast<sal_uInt32>(rAttr.mnMirrFlags) ).WriteUInt16( rAttr.mnRotate10 ); - rOStm.WriteInt16( rAttr.mnContPercent ).WriteInt16( rAttr.mnLumPercent ).WriteInt16( rAttr.mnRPercent ).WriteInt16( rAttr.mnGPercent ).WriteInt16( rAttr.mnBPercent ); - rOStm.WriteBool( rAttr.mbInvert ).WriteUChar( rAttr.mcTransparency ).WriteUInt16( rAttr.meDrawMode ); - rOStm.WriteInt32( rAttr.mnLeftCrop ) - .WriteInt32( rAttr.mnTopCrop ) - .WriteInt32( rAttr.mnRightCrop ) - .WriteInt32( rAttr.mnBottomCrop ); - - return rOStm; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |