summaryrefslogtreecommitdiff
path: root/svx/source/toolbars/fontworkbar.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-23 12:26:18 +0200
committerNoel Grandin <noel@peralex.com>2016-08-24 08:47:57 +0200
commit92743c1da67485338aadfc9e9444146f9bacd6d1 (patch)
treee0b858d6f41a5bac900b2ee046dd17c68524f820 /svx/source/toolbars/fontworkbar.cxx
parent44b2afa192fbf78d337cf18840c26b7d04e91a4e (diff)
convert SdrFitToSizeType to scoped enum
Change-Id: Id732c74b590db7006058d1919be2438b649a795e
Diffstat (limited to 'svx/source/toolbars/fontworkbar.cxx')
-rw-r--r--svx/source/toolbars/fontworkbar.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/toolbars/fontworkbar.cxx b/svx/source/toolbars/fontworkbar.cxx
index 07b688e84b8f..0dcad4f989a2 100644
--- a/svx/source/toolbars/fontworkbar.cxx
+++ b/svx/source/toolbars/fontworkbar.cxx
@@ -69,9 +69,9 @@ void SetAlignmentState( SdrView* pSdrView, SfxItemSet& rSet )
case SDRTEXTHORZADJUST_RIGHT : nAlignment = 2; break;
case SDRTEXTHORZADJUST_BLOCK :
{
- if ( rTextFitToSizeTypeItem.GetValue() == SDRTEXTFIT_NONE )
+ if ( rTextFitToSizeTypeItem.GetValue() == SdrFitToSizeType::NONE )
nAlignment = 3;
- else if ( rTextFitToSizeTypeItem.GetValue() == SDRTEXTFIT_ALLLINES )
+ else if ( rTextFitToSizeTypeItem.GetValue() == SdrFitToSizeType::AllLines )
nAlignment = 4;
}
}
@@ -271,11 +271,11 @@ static void impl_execute( SdrView*, SfxRequest& rReq, SdrCustomShapeGeometryItem
sal_Int32 nValue = static_cast<const SfxInt32Item*>(rReq.GetArgs()->GetItem(SID_FONTWORK_ALIGNMENT))->GetValue();
if ( ( nValue >= 0 ) && ( nValue < 5 ) )
{
- SdrFitToSizeType eFTS = SDRTEXTFIT_NONE;
+ SdrFitToSizeType eFTS = SdrFitToSizeType::NONE;
SdrTextHorzAdjust eHorzAdjust;
switch ( nValue )
{
- case 4 : eFTS = SDRTEXTFIT_ALLLINES; SAL_FALLTHROUGH;
+ case 4 : eFTS = SdrFitToSizeType::AllLines; SAL_FALLTHROUGH;
case 3 : eHorzAdjust = SDRTEXTHORZADJUST_BLOCK; break;
default: eHorzAdjust = SDRTEXTHORZADJUST_LEFT; break;
case 1 : eHorzAdjust = SDRTEXTHORZADJUST_CENTER; break;