diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-06 12:54:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-06 12:54:53 +0200 |
commit | 14ac70c74a9abd62936db74d825ab9d3375f2504 (patch) | |
tree | bccb11f46b3a158498fecc67f99e12681026215a /cui | |
parent | 3efa3ad7b6de78c291f49858e50e6bedbd6a2173 (diff) |
Consistency around SdrMetricItem in svx/sxelditm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."
(SdrEdgeLine1DeltaItem::Clone had been recently---and in retrospect needlessly
---introduced in 596ec6f52fe3a8d56d5c20df568633cfbcadc74d "Missing
SdrEdgeLine1DeltaItem::Clone override" before
3efa3ad7b6de78c291f49858e50e6bedbd6a2173 "SdrEdgreLine*DeltaItem::Put/QueryValue
are same as underlying" revealed that SdrEdgeLine1DeltaItem was a needless
derivation of SdrMetricItem.)
Change-Id: I154d32d46a7c01c792aa4e812cf576d4d749e0c9
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/connect.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cui/source/tabpages/connect.cxx b/cui/source/tabpages/connect.cxx index 97cc1c282704..59a0dbdc3702 100644 --- a/cui/source/tabpages/connect.cxx +++ b/cui/source/tabpages/connect.cxx @@ -224,7 +224,7 @@ void SvxConnectionPage::Reset( const SfxItemSet* rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_EDGELINE1DELTA ); if( pItem ) { - long nValue = ( ( const SdrEdgeLine1DeltaItem* )pItem )->GetValue(); + long nValue = ( ( const SdrMetricItem* )pItem )->GetValue(); SetMetricValue( *m_pMtrFldLine1, nValue, eUnit ); } else @@ -238,7 +238,7 @@ void SvxConnectionPage::Reset( const SfxItemSet* rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_EDGELINE2DELTA ); if( pItem ) { - long nValue = ( ( const SdrEdgeLine2DeltaItem* )pItem )->GetValue(); + long nValue = ( ( const SdrMetricItem* )pItem )->GetValue(); SetMetricValue( *m_pMtrFldLine2, nValue, eUnit ); } else @@ -252,7 +252,7 @@ void SvxConnectionPage::Reset( const SfxItemSet* rAttrs ) pItem = &pPool->GetDefaultItem( SDRATTR_EDGELINE3DELTA ); if( pItem ) { - long nValue = ( ( const SdrEdgeLine3DeltaItem* )pItem )->GetValue(); + long nValue = ( ( const SdrMetricItem* )pItem )->GetValue(); SetMetricValue( *m_pMtrFldLine3, nValue, eUnit ); } else @@ -343,21 +343,21 @@ bool SvxConnectionPage::FillItemSet( SfxItemSet* rAttrs) if( m_pMtrFldLine1->IsValueChangedFromSaved() ) { nValue = GetCoreValue( *m_pMtrFldLine1, eUnit ); - rAttrs->Put( SdrEdgeLine1DeltaItem( nValue ) ); + rAttrs->Put( makeSdrEdgeLine1DeltaItem( nValue ) ); bModified = true; } if( m_pMtrFldLine2->IsValueChangedFromSaved() ) { nValue = GetCoreValue( *m_pMtrFldLine2, eUnit ); - rAttrs->Put( SdrEdgeLine2DeltaItem( nValue ) ); + rAttrs->Put( makeSdrEdgeLine2DeltaItem( nValue ) ); bModified = true; } if( m_pMtrFldLine3->IsValueChangedFromSaved() ) { nValue = GetCoreValue( *m_pMtrFldLine3, eUnit ); - rAttrs->Put( SdrEdgeLine3DeltaItem( nValue ) ); + rAttrs->Put( makeSdrEdgeLine3DeltaItem( nValue ) ); bModified = true; } @@ -429,19 +429,19 @@ IMPL_LINK( SvxConnectionPage, ChangeAttrHdl_Impl, void *, p ) if( p == m_pMtrFldLine1 ) { sal_Int32 nValue = GetCoreValue( *m_pMtrFldLine1, eUnit ); - aAttrSet.Put( SdrEdgeLine1DeltaItem( nValue ) ); + aAttrSet.Put( makeSdrEdgeLine1DeltaItem( nValue ) ); } if( p == m_pMtrFldLine2 ) { sal_Int32 nValue = GetCoreValue( *m_pMtrFldLine2, eUnit ); - aAttrSet.Put( SdrEdgeLine2DeltaItem( nValue ) ); + aAttrSet.Put( makeSdrEdgeLine2DeltaItem( nValue ) ); } if( p == m_pMtrFldLine3 ) { sal_Int32 nValue = GetCoreValue( *m_pMtrFldLine3, eUnit ); - aAttrSet.Put( SdrEdgeLine3DeltaItem( nValue ) ); + aAttrSet.Put( makeSdrEdgeLine3DeltaItem( nValue ) ); } |