diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-04 11:29:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-04 11:29:51 +0200 |
commit | 768d32cf5b7dc35ab1b93e898e1bb5beab43c27c (patch) | |
tree | 7de7cb2ddb064469385520e0a74e03a349f4f689 /cui | |
parent | 83f37705679f5176f0aa0c8e58da681c0a3c2319 (diff) |
Consistency around SdrMetricItem in svx/sdtditm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."
Change-Id: Ib0234883d441be668700df5ccd0e855973dc5426
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/textattr.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/tabpages/textattr.cxx b/cui/source/tabpages/textattr.cxx index 6b96c2717077..02533421cfce 100644 --- a/cui/source/tabpages/textattr.cxx +++ b/cui/source/tabpages/textattr.cxx @@ -124,7 +124,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet* rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_LEFTDIST ); if( pItem ) { - long nValue = ( ( const SdrTextLeftDistItem* )pItem )->GetValue(); + long nValue = ( ( const SdrMetricItem* )pItem )->GetValue(); SetMetricValue( *m_pMtrFldLeft, nValue, eUnit ); } else @@ -136,7 +136,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet* rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_RIGHTDIST ); if( pItem ) { - long nValue = ( ( const SdrTextRightDistItem* )pItem )->GetValue(); + long nValue = ( ( const SdrMetricItem* )pItem )->GetValue(); SetMetricValue( *m_pMtrFldRight, nValue, eUnit ); } else @@ -148,7 +148,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet* rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_UPPERDIST ); if( pItem ) { - long nValue = ( ( const SdrTextUpperDistItem* )pItem )->GetValue(); + long nValue = ( ( const SdrMetricItem* )pItem )->GetValue(); SetMetricValue( *m_pMtrFldTop, nValue, eUnit ); } else @@ -160,7 +160,7 @@ void SvxTextAttrPage::Reset( const SfxItemSet* rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_TEXT_LOWERDIST ); if( pItem ) { - long nValue = ( ( const SdrTextLowerDistItem* )pItem )->GetValue(); + long nValue = ( ( const SdrMetricItem* )pItem )->GetValue(); SetMetricValue( *m_pMtrFldBottom, nValue, eUnit ); } else @@ -334,25 +334,25 @@ bool SvxTextAttrPage::FillItemSet( SfxItemSet* rAttrs) if( m_pMtrFldLeft->IsValueChangedFromSaved() ) { nValue = GetCoreValue( *m_pMtrFldLeft, eUnit ); - rAttrs->Put( SdrTextLeftDistItem( nValue ) ); + rAttrs->Put( makeSdrTextLeftDistItem( nValue ) ); } if( m_pMtrFldRight->IsValueChangedFromSaved() ) { nValue = GetCoreValue( *m_pMtrFldRight, eUnit ); - rAttrs->Put( SdrTextRightDistItem( nValue ) ); + rAttrs->Put( makeSdrTextRightDistItem( nValue ) ); } if( m_pMtrFldTop->IsValueChangedFromSaved() ) { nValue = GetCoreValue( *m_pMtrFldTop, eUnit ); - rAttrs->Put( SdrTextUpperDistItem( nValue ) ); + rAttrs->Put( makeSdrTextUpperDistItem( nValue ) ); } if( m_pMtrFldBottom->IsValueChangedFromSaved() ) { nValue = GetCoreValue( *m_pMtrFldBottom, eUnit ); - rAttrs->Put( SdrTextLowerDistItem( nValue ) ); + rAttrs->Put( makeSdrTextLowerDistItem( nValue ) ); } eState = m_pTsbAutoGrowHeight->GetState(); |