diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-18 10:55:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-18 10:55:36 +0200 |
commit | a51c423743835793bf132c925ad962283fd2dc22 (patch) | |
tree | 830680b766492f00f7706ee6680dba4b644c1394 /sc | |
parent | b5a0b00d494928482e4dd44395765c480c8ae252 (diff) |
Consistency around SdrMetricItem in svx/sdsxyitm.hxx
...similar to what has been done for svx/sdtmfitm.hxx in
6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and
68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem."
Change-Id: I3734cb14b6ed8f556af85b234968682a55ac8a4c
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/postit.cxx | 8 | ||||
-rw-r--r-- | sc/source/core/tool/detfunc.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 70f7634da6f4..a6dc6e7323c9 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -221,8 +221,8 @@ ScDrawLayer::ScDrawLayer( ScDocument* pDocument, const OUString& rName ) : // #i33700# // Set shadow distance defaults as PoolDefaultItems. Details see bug. - rPool.SetPoolDefaultItem(SdrShadowXDistItem(300)); - rPool.SetPoolDefaultItem(SdrShadowYDistItem(300)); + rPool.SetPoolDefaultItem(makeSdrShadowXDistItem(300)); + rPool.SetPoolDefaultItem(makeSdrShadowYDistItem(300)); // default for script spacing depends on locale, see SdDrawDocument ctor in sd LanguageType eOfficeLanguage = Application::GetSettings().GetLanguageTag().getLanguageType(); diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index 433138ddfbba..c1d56b0ac948 100644 --- a/sc/source/core/data/postit.cxx +++ b/sc/source/core/data/postit.cxx @@ -124,8 +124,8 @@ void ScCaptionUtil::SetDefaultItems( SdrCaptionObj& rCaption, ScDocument& rDoc ) rectangle only with SetSpecialTextBoxShadow() when the object is created (item must be set to adjust objects from older files). */ aItemSet.Put( makeSdrShadowItem( false ) ); - aItemSet.Put( SdrShadowXDistItem( 100 ) ); - aItemSet.Put( SdrShadowYDistItem( 100 ) ); + aItemSet.Put( makeSdrShadowXDistItem( 100 ) ); + aItemSet.Put( makeSdrShadowYDistItem( 100 ) ); // text attributes aItemSet.Put( makeSdrTextLeftDistItem( 100 ) ); @@ -147,8 +147,8 @@ void ScCaptionUtil::SetCaptionItems( SdrCaptionObj& rCaption, const SfxItemSet& rCaption.SetMergedItemSet( rItemSet ); // reset shadow items rCaption.SetMergedItem( makeSdrShadowItem( false ) ); - rCaption.SetMergedItem( SdrShadowXDistItem( 100 ) ); - rCaption.SetMergedItem( SdrShadowYDistItem( 100 ) ); + rCaption.SetMergedItem( makeSdrShadowXDistItem( 100 ) ); + rCaption.SetMergedItem( makeSdrShadowYDistItem( 100 ) ); rCaption.SetSpecialTextBoxShadow(); } diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index c71b7c5b6e88..9ecebad81f53 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -215,8 +215,8 @@ ScCommentData::ScCommentData( ScDocument& rDoc, SdrModel* pModel ) : // only with SetSpecialTextBoxShadow when the object is created // (item must be set to adjust objects from older files) aCaptionSet.Put( makeSdrShadowItem( false ) ); - aCaptionSet.Put( SdrShadowXDistItem( 100 ) ); - aCaptionSet.Put( SdrShadowYDistItem( 100 ) ); + aCaptionSet.Put( makeSdrShadowXDistItem( 100 ) ); + aCaptionSet.Put( makeSdrShadowYDistItem( 100 ) ); // text attributes aCaptionSet.Put( makeSdrTextLeftDistItem( 100 ) ); diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index 3f5a1f1a2818..858c154a2d8d 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -769,8 +769,8 @@ void XclImpDrawObjBase::ConvertFrameStyle( SdrObject& rSdrObj, sal_uInt16 nFrame if( ::get_flag( nFrameFlags, EXC_OBJ_FRAME_SHADOW ) ) { rSdrObj.SetMergedItem( makeSdrShadowItem( true ) ); - rSdrObj.SetMergedItem( SdrShadowXDistItem( 35 ) ); - rSdrObj.SetMergedItem( SdrShadowYDistItem( 35 ) ); + rSdrObj.SetMergedItem( makeSdrShadowXDistItem( 35 ) ); + rSdrObj.SetMergedItem( makeSdrShadowYDistItem( 35 ) ); rSdrObj.SetMergedItem( SdrShadowColorItem( GetPalette().GetColor( EXC_COLOR_WINDOWTEXT ) ) ); } } |