diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-08 13:01:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-08 20:56:30 +0200 |
commit | 61d49afadb2badc7572b04c73ee682afde1d2e7b (patch) | |
tree | ab72148a48dc97ef4fcf01218358e5e75b72a835 /editeng/source/items/bulitem.cxx | |
parent | fac539889e32e5e47ca6b6da0a588abbe4cbe066 (diff) |
loplugin:unusedmethods
Change-Id: Id66cf12e3a59aeed1b9a7a111b841e30b248635b
Reviewed-on: https://gerrit.libreoffice.org/40876
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/items/bulitem.cxx')
-rw-r--r-- | editeng/source/items/bulitem.cxx | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx index 951e6b6be85b..af28642f87cf 100644 --- a/editeng/source/items/bulitem.cxx +++ b/editeng/source/items/bulitem.cxx @@ -29,70 +29,6 @@ #define BULITEM_VERSION ((sal_uInt16)2) -void SvxBulletItem::StoreFont( SvStream& rStream, const vcl::Font& rFont ) -{ - sal_uInt16 nTemp; - - WriteColor( rStream, rFont.GetColor() ); - nTemp = (sal_uInt16)rFont.GetFamilyType(); rStream.WriteUInt16( nTemp ); - - nTemp = (sal_uInt16)GetSOStoreTextEncoding(rFont.GetCharSet()); - rStream.WriteUInt16( nTemp ); - - nTemp = (sal_uInt16)rFont.GetPitch(); rStream.WriteUInt16( nTemp ); - nTemp = (sal_uInt16)rFont.GetAlignment(); rStream.WriteUInt16( nTemp ); - nTemp = (sal_uInt16)rFont.GetWeight(); rStream.WriteUInt16( nTemp ); - nTemp = (sal_uInt16)rFont.GetUnderline(); rStream.WriteUInt16( nTemp ); - nTemp = (sal_uInt16)rFont.GetStrikeout(); rStream.WriteUInt16( nTemp ); - nTemp = (sal_uInt16)rFont.GetItalic(); rStream.WriteUInt16( nTemp ); - - // UNICODE: rStream << rFont.GetFamilyName(); - rStream.WriteUniOrByteString(rFont.GetFamilyName(), rStream.GetStreamCharSet()); - - rStream.WriteBool( rFont.IsOutline() ); - rStream.WriteBool( rFont.IsShadow() ); - rStream.WriteBool( rFont.IsTransparent() ); -} - - -vcl::Font SvxBulletItem::CreateFont( SvStream& rStream, sal_uInt16 nVer ) -{ - vcl::Font aFont; - Color aColor; - ReadColor( rStream, aColor ); aFont.SetColor( aColor ); - sal_uInt16 nTemp; - rStream.ReadUInt16( nTemp ); aFont.SetFamily((FontFamily)nTemp); - - rStream.ReadUInt16( nTemp ); - nTemp = (sal_uInt16)GetSOLoadTextEncoding((rtl_TextEncoding)nTemp); - aFont.SetCharSet((rtl_TextEncoding)nTemp); - - rStream.ReadUInt16( nTemp ); aFont.SetPitch((FontPitch)nTemp); - rStream.ReadUInt16( nTemp ); aFont.SetAlignment((FontAlign)nTemp); - rStream.ReadUInt16( nTemp ); aFont.SetWeight((FontWeight)nTemp); - rStream.ReadUInt16( nTemp ); aFont.SetUnderline((FontLineStyle)nTemp); - rStream.ReadUInt16( nTemp ); aFont.SetStrikeout((FontStrikeout)nTemp); - rStream.ReadUInt16( nTemp ); aFont.SetItalic((FontItalic)nTemp); - - // UNICODE: rStream >> aName; aFont.SetFamilyName( aName ); - OUString aName = rStream.ReadUniOrByteString(rStream.GetStreamCharSet()); - aFont.SetFamilyName( aName ); - - if( nVer == 1 ) - { - sal_Int32 nHeight(0), nWidth(0); - rStream.ReadInt32( nHeight ); rStream.ReadInt32( nWidth ); Size aSize( nWidth, nHeight ); - aFont.SetFontSize( aSize ); - } - - bool bTemp; - rStream.ReadCharAsBool( bTemp ); aFont.SetOutline( bTemp ); - rStream.ReadCharAsBool( bTemp ); aFont.SetShadow( bTemp ); - rStream.ReadCharAsBool( bTemp ); aFont.SetTransparent( bTemp ); - return aFont; -} - - SvxBulletItem::SvxBulletItem( sal_uInt16 _nWhich ) : SfxPoolItem( _nWhich ) { SetDefaultFont_Impl(); |