summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-08 13:01:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-08 20:56:30 +0200
commit61d49afadb2badc7572b04c73ee682afde1d2e7b (patch)
treeab72148a48dc97ef4fcf01218358e5e75b72a835 /editeng
parentfac539889e32e5e47ca6b6da0a588abbe4cbe066 (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')
-rw-r--r--editeng/source/editeng/editobj2.hxx1
-rw-r--r--editeng/source/items/bulitem.cxx64
-rw-r--r--editeng/source/items/flditem.cxx7
-rw-r--r--editeng/source/items/textitem.cxx105
-rw-r--r--editeng/source/rtf/rtfitem.cxx1
5 files changed, 0 insertions, 178 deletions
diff --git a/editeng/source/editeng/editobj2.hxx b/editeng/source/editeng/editobj2.hxx
index 71ca353acae6..3091ddaadb65 100644
--- a/editeng/source/editeng/editobj2.hxx
+++ b/editeng/source/editeng/editobj2.hxx
@@ -268,7 +268,6 @@ public:
void SetMetric( sal_uInt16 n ) { nMetric = n; }
bool IsOwnerOfPool() const { return bOwnerOfPool; }
- void StoreUnicodeStrings( bool b ) { bStoreUnicodeStrings = b; }
bool operator==( const EditTextObjectImpl& rCompare ) const;
bool Equals( const EditTextObjectImpl& rCompare, bool bComparePool ) const;
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();
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index c2bdb37ccbd8..3ab2c2623df3 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -272,13 +272,6 @@ MetaAction* SvxFieldData::createEndComment()
}
-SvxFieldItem::SvxFieldItem( SvxFieldData* pFld, const sal_uInt16 nId ) :
- SfxPoolItem( nId )
- , mxField( pFld ) // belongs directly to the item
-{
-}
-
-
SvxFieldItem::SvxFieldItem( const SvxFieldData& rField, const sal_uInt16 nId ) :
SfxPoolItem( nId )
, mxField( rField.Clone() )
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 4dbd8d708f88..24c33bc36aa2 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -67,7 +67,6 @@
#include <editeng/postitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/fhgtitem.hxx>
-#include <editeng/fwdtitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/shdditem.hxx>
@@ -419,11 +418,6 @@ bool SvxFontItem::GetPresentation
}
-void SvxFontItem::EnableStoreUnicodeNames( bool bEnable )
-{
- bEnableStoreUnicodeNames = bEnable;
-}
-
void SvxFontItem::dumpAsXml(xmlTextWriterPtr pWriter) const
{
xmlTextWriterStartElement(pWriter, BAD_CAST("SvxFontItem"));
@@ -1093,97 +1087,6 @@ void SvxFontHeightItem::dumpAsXml(xmlTextWriterPtr pWriter) const
xmlTextWriterEndElement(pWriter);
}
-// class SvxFontWidthItem -----------------------------------------------
-
-SvxFontWidthItem::SvxFontWidthItem( const sal_uInt16 nSz, const sal_uInt16 nPrp, const sal_uInt16 nId ) :
- SfxPoolItem( nId )
-{
- nWidth = nSz;
- nProp = nPrp;
-}
-
-
-SfxPoolItem* SvxFontWidthItem::Clone( SfxItemPool * ) const
-{
- return new SvxFontWidthItem( *this );
-}
-
-
-void SvxFontWidthItem::ScaleMetrics( long nMult, long nDiv )
-{
- nWidth = (sal_uInt16)Scale( nWidth, nMult, nDiv );
-}
-
-
-bool SvxFontWidthItem::HasMetrics() const
-{
- return true;
-}
-
-
-bool SvxFontWidthItem::operator==( const SfxPoolItem& rItem ) const
-{
- assert(SfxPoolItem::operator==(rItem));
- return GetWidth() == static_cast<const SvxFontWidthItem&>(rItem).GetWidth() &&
- GetProp() == static_cast<const SvxFontWidthItem&>(rItem).GetProp();
-}
-
-bool SvxFontWidthItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
-{
-// sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
- nMemberId &= ~CONVERT_TWIPS;
- switch(nMemberId)
- {
- case MID_FONTWIDTH:
- rVal <<= (sal_Int16)(nWidth);
- break;
- case MID_FONTWIDTH_PROP:
- rVal <<= (sal_Int16)(nProp);
- break;
- }
- return true;
-}
-
-bool SvxFontWidthItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
-{
-// sal_Bool bConvert = 0!=(nMemberId&CONVERT_TWIPS);
- nMemberId &= ~CONVERT_TWIPS;
- sal_Int16 nVal = sal_Int16();
- if(!(rVal >>= nVal))
- return false;
-
- switch(nMemberId)
- {
- case MID_FONTWIDTH:
- nProp = nVal;
- break;
- case MID_FONTWIDTH_PROP:
- nWidth = nVal;
- break;
- }
- return true;
-}
-
-
-bool SvxFontWidthItem::GetPresentation
-(
- SfxItemPresentation /*ePres*/,
- MapUnit eCoreUnit,
- MapUnit /*ePresUnit*/,
- OUString& rText, const IntlWrapper& rIntl
-) const
-{
- if ( 100 == nProp )
- {
- rText = GetMetricText( (long)nWidth,
- eCoreUnit, MapUnit::MapPoint, &rIntl ) +
- " " + EditResId(GetMetricId(MapUnit::MapPoint));
- }
- else
- rText = OUString::number( nProp ) + "%";
- return true;
-}
-
// class SvxTextLineItem ------------------------------------------------
SvxTextLineItem::SvxTextLineItem( const FontLineStyle eSt, const sal_uInt16 nId )
@@ -1742,14 +1645,6 @@ SvxBackgroundColorItem::SvxBackgroundColorItem( const Color& rCol,
{
}
-SvxBackgroundColorItem::SvxBackgroundColorItem(SvStream& rStrm, const sal_uInt16 nId)
- : SvxColorItem(nId)
-{
- Color aColor;
- aColor.Read(rStrm);
- SetValue(aColor);
-}
-
SvxBackgroundColorItem::SvxBackgroundColorItem( const SvxBackgroundColorItem& rCopy ) :
SvxColorItem( rCopy )
{
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index 4ce7e8cfb5c0..6913497186f8 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -23,7 +23,6 @@
#include <editeng/postitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/fhgtitem.hxx>
-#include <editeng/fwdtitem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/shdditem.hxx>