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 /sc | |
parent | Presumably no point in automatically disabling avmedia for iOS either then (diff) | |
download | core-768d32cf5b7dc35ab1b93e898e1bb5beab43c27c.tar.gz core-768d32cf5b7dc35ab1b93e898e1bb5beab43c27c.zip |
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 'sc')
-rw-r--r-- | sc/source/core/data/postit.cxx | 8 | ||||
-rw-r--r-- | sc/source/core/tool/detfunc.cxx | 8 | ||||
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index b573afeb70f5..fbc95ef008de 100644 --- a/sc/source/core/data/postit.cxx +++ b/sc/source/core/data/postit.cxx @@ -128,10 +128,10 @@ void ScCaptionUtil::SetDefaultItems( SdrCaptionObj& rCaption, ScDocument& rDoc ) aItemSet.Put( SdrShadowYDistItem( 100 ) ); // text attributes - aItemSet.Put( SdrTextLeftDistItem( 100 ) ); - aItemSet.Put( SdrTextRightDistItem( 100 ) ); - aItemSet.Put( SdrTextUpperDistItem( 100 ) ); - aItemSet.Put( SdrTextLowerDistItem( 100 ) ); + aItemSet.Put( makeSdrTextLeftDistItem( 100 ) ); + aItemSet.Put( makeSdrTextRightDistItem( 100 ) ); + aItemSet.Put( makeSdrTextUpperDistItem( 100 ) ); + aItemSet.Put( makeSdrTextLowerDistItem( 100 ) ); aItemSet.Put( SdrTextAutoGrowWidthItem( false ) ); aItemSet.Put( SdrTextAutoGrowHeightItem( true ) ); // use the default cell style to be able to modify the caption font diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index a4ac8cb6f619..5051a2ac8749 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -219,10 +219,10 @@ ScCommentData::ScCommentData( ScDocument& rDoc, SdrModel* pModel ) : aCaptionSet.Put( SdrShadowYDistItem( 100 ) ); // text attributes - aCaptionSet.Put( SdrTextLeftDistItem( 100 ) ); - aCaptionSet.Put( SdrTextRightDistItem( 100 ) ); - aCaptionSet.Put( SdrTextUpperDistItem( 100 ) ); - aCaptionSet.Put( SdrTextLowerDistItem( 100 ) ); + aCaptionSet.Put( makeSdrTextLeftDistItem( 100 ) ); + aCaptionSet.Put( makeSdrTextRightDistItem( 100 ) ); + aCaptionSet.Put( makeSdrTextUpperDistItem( 100 ) ); + aCaptionSet.Put( makeSdrTextLowerDistItem( 100 ) ); aCaptionSet.Put( SdrTextAutoGrowWidthItem( false ) ); aCaptionSet.Put( SdrTextAutoGrowHeightItem( true ) ); diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index e9366ff6be3c..6a75aa3f3deb 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -549,10 +549,10 @@ void XclImpDrawObjBase::PreProcessSdrObject( XclImpDffConverter& rDffConv, SdrOb if( mbAutoMargin ) { sal_Int32 nMargin = rDffConv.GetDefaultTextMargin(); - rSdrObj.SetMergedItem( SdrTextLeftDistItem( nMargin ) ); - rSdrObj.SetMergedItem( SdrTextRightDistItem( nMargin ) ); - rSdrObj.SetMergedItem( SdrTextUpperDistItem( nMargin ) ); - rSdrObj.SetMergedItem( SdrTextLowerDistItem( nMargin ) ); + rSdrObj.SetMergedItem( makeSdrTextLeftDistItem( nMargin ) ); + rSdrObj.SetMergedItem( makeSdrTextRightDistItem( nMargin ) ); + rSdrObj.SetMergedItem( makeSdrTextUpperDistItem( nMargin ) ); + rSdrObj.SetMergedItem( makeSdrTextLowerDistItem( nMargin ) ); } // macro and hyperlink |