summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-18 08:47:59 +0200
committerNoel Grandin <noel@peralex.com>2016-08-18 08:49:02 +0200
commit6fdfa13a096c55f5038c4a850cfb108d30143d4b (patch)
tree0c895f66159d0d7828a72e4d0a5f988205a8160e /sc
parent55b74b454f4fceccfc05406b44919a5276e0b3ae (diff)
convert SdrCaptionEscDir to scoped enum
Change-Id: Iec6dfbdc65efde86ff24ddc51c48eb697bf4ead1
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/postit.cxx2
-rw-r--r--sc/source/core/tool/detfunc.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index d87287705464..18da0ce9367d 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -118,7 +118,7 @@ void ScCaptionUtil::SetDefaultItems( SdrCaptionObj& rCaption, ScDocument& rDoc )
aItemSet.Put( XLineStartCenterItem( false ) );
aItemSet.Put( XFillStyleItem( drawing::FillStyle_SOLID ) );
aItemSet.Put( XFillColorItem( OUString(), ScDetectiveFunc::GetCommentColor() ) );
- aItemSet.Put( SdrCaptionEscDirItem( SDRCAPT_ESCBESTFIT ) );
+ aItemSet.Put( SdrCaptionEscDirItem( SdrCaptionEscDir::BestFit ) );
// shadow
/* SdrShadowItem has sal_False, instead the shadow is set for the
diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx
index 740174eeb3e5..b4d05d047239 100644
--- a/sc/source/core/tool/detfunc.cxx
+++ b/sc/source/core/tool/detfunc.cxx
@@ -234,7 +234,7 @@ ScCommentData::ScCommentData( ScDocument& rDoc, SdrModel* pModel ) :
// support the best position for the tail connector now that
// that notes can be resized and repositioned.
- aCaptionSet.Put( SdrCaptionEscDirItem( SDRCAPT_ESCBESTFIT) );
+ aCaptionSet.Put( SdrCaptionEscDirItem( SdrCaptionEscDir::BestFit) );
}
void ScCommentData::UpdateCaptionSet( const SfxItemSet& rItemSet )