summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-26 09:38:35 +0200
committerNoel Grandin <noel@peralex.com>2015-03-26 09:41:35 +0200
commitccea3b6721da2dbf7a319c6e3e24428429cdf3ba (patch)
tree0fec552fa0f0cb951a62779022dac7fc5640605a /editeng
parent871740210e5608e619b37297b47362f534f7ed8d (diff)
the valid flags in SvxBulletItem are unused
Change-Id: Ifd06179e42edc916002e8b0feaabd888852f1aa6
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/bulitem.cxx41
1 files changed, 12 insertions, 29 deletions
diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx
index a7bd2e22c346..1a5738d9453d 100644
--- a/editeng/source/items/bulitem.cxx
+++ b/editeng/source/items/bulitem.cxx
@@ -105,7 +105,6 @@ SvxBulletItem::SvxBulletItem( sal_uInt16 _nWhich ) : SfxPoolItem( _nWhich )
{
SetDefaultFont_Impl();
SetDefaults_Impl();
- nValidMask = 0xFFFF;
}
SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
@@ -163,8 +162,6 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
// UNICODE: rStrm >> aFollowText;
aFollowText = rStrm.ReadUniOrByteString(rStrm.GetStreamCharSet());
-
- nValidMask = 0xFFFF;
}
SvxBulletItem::SvxBulletItem( const SvxBulletItem& rItem) : SfxPoolItem( rItem )
@@ -178,7 +175,6 @@ SvxBulletItem::SvxBulletItem( const SvxBulletItem& rItem) : SfxPoolItem( rItem )
nWidth = rItem.nWidth;
nScale = rItem.nScale;
cSymbol = rItem.cSymbol;
- nValidMask = rItem.nValidMask;
}
@@ -237,29 +233,17 @@ void SvxBulletItem::CopyValidProperties( const SvxBulletItem& rCopyFrom )
{
vcl::Font _aFont = GetFont();
vcl::Font aNewFont = rCopyFrom.GetFont();
- if ( rCopyFrom.IsValid( VALID_FONTNAME ) )
- {
- _aFont.SetName( aNewFont.GetName() );
- _aFont.SetFamily( aNewFont.GetFamily() );
- _aFont.SetStyleName( aNewFont.GetStyleName() );
- }
- if ( rCopyFrom.IsValid( VALID_FONTCOLOR ) )
- _aFont.SetColor( aNewFont.GetColor() );
- if ( rCopyFrom.IsValid( VALID_SYMBOL ) )
- SetSymbol( rCopyFrom.GetSymbol() );
- if ( rCopyFrom.IsValid( VALID_BITMAP ) )
- SetGraphicObject( rCopyFrom.GetGraphicObject() );
- if ( rCopyFrom.IsValid( VALID_SCALE ) )
- SetScale( rCopyFrom.GetScale() );
- if ( rCopyFrom.IsValid( VALID_START ) )
- SetStart( rCopyFrom.GetStart() );
- if ( rCopyFrom.IsValid( VALID_STYLE ) )
- SetStyle( rCopyFrom.GetStyle() );
- if ( rCopyFrom.IsValid( VALID_PREVTEXT ) )
- SetPrevText( rCopyFrom.GetPrevText() );
- if ( rCopyFrom.IsValid( VALID_FOLLOWTEXT ) )
- SetFollowText( rCopyFrom.GetFollowText() );
-
+ _aFont.SetName( aNewFont.GetName() );
+ _aFont.SetFamily( aNewFont.GetFamily() );
+ _aFont.SetStyleName( aNewFont.GetStyleName() );
+ _aFont.SetColor( aNewFont.GetColor() );
+ SetSymbol( rCopyFrom.GetSymbol() );
+ SetGraphicObject( rCopyFrom.GetGraphicObject() );
+ SetScale( rCopyFrom.GetScale() );
+ SetStart( rCopyFrom.GetStart() );
+ SetStyle( rCopyFrom.GetStyle() );
+ SetPrevText( rCopyFrom.GetPrevText() );
+ SetFollowText( rCopyFrom.GetFollowText() );
SetFont( _aFont );
}
@@ -272,8 +256,7 @@ bool SvxBulletItem::operator==( const SfxPoolItem& rItem ) const
const SvxBulletItem& rBullet = static_cast<const SvxBulletItem&>(rItem);
// Compare with ValidMask, otherwise no put possible in a AttrSet if the
// item differs only in terms of the ValidMask from an existing one.
- if( nValidMask != rBullet.nValidMask ||
- nStyle != rBullet.nStyle ||
+ if( nStyle != rBullet.nStyle ||
nScale != rBullet.nScale ||
nWidth != rBullet.nWidth ||
nStart != rBullet.nStart ||