summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-23 16:01:41 +0200
committerNoel Grandin <noel@peralex.com>2016-08-24 08:47:57 +0200
commitc222fa9c2206e3b8b0e8cf55bf61be26e32ea2d7 (patch)
treecd5434003af4683b0b65feb843a7caa5f85dd28b /sw
parent9649154f1d844c76ca134d73cd3736452f4f55d4 (diff)
convert SdrPathSmoothKind to scoped enum
Change-Id: I9b4a4226322c4d4eb2ab220ecf0b0efb068eea8e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/beziersh.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/uibase/shells/beziersh.cxx b/sw/source/uibase/shells/beziersh.cxx
index 115628b6e5d5..b05c39313cc3 100644
--- a/sw/source/uibase/shells/beziersh.cxx
+++ b/sw/source/uibase/shells/beziersh.cxx
@@ -168,13 +168,13 @@ void SwBezierShell::Execute(SfxRequest &rReq)
case SID_BEZIER_SMOOTH:
case SID_BEZIER_SYMMTR:
{
- SdrPathSmoothKind eKind = SDRPATHSMOOTH_ASYMMETRIC;
+ SdrPathSmoothKind eKind = SdrPathSmoothKind::Asymmetric;
switch (nSlotId)
{
- case SID_BEZIER_EDGE: eKind = SDRPATHSMOOTH_ANGULAR; break;
- case SID_BEZIER_SMOOTH: eKind = SDRPATHSMOOTH_ASYMMETRIC; break;
- case SID_BEZIER_SYMMTR: eKind = SDRPATHSMOOTH_SYMMETRIC; break;
+ case SID_BEZIER_EDGE: eKind = SdrPathSmoothKind::Angular; break;
+ case SID_BEZIER_SMOOTH: eKind = SdrPathSmoothKind::Asymmetric; break;
+ case SID_BEZIER_SYMMTR: eKind = SdrPathSmoothKind::Symmetric; break;
}
SdrPathSmoothKind eSmooth = pSdrView->GetMarkedPointsSmooth();
@@ -284,15 +284,15 @@ void SwBezierShell::GetState(SfxItemSet &rSet)
bool bEnable = false;
switch (eSmooth)
{
- case SDRPATHSMOOTH_DONTCARE :
+ case SdrPathSmoothKind::DontCare :
break;
- case SDRPATHSMOOTH_ANGULAR :
+ case SdrPathSmoothKind::Angular :
bEnable = nWhich == SID_BEZIER_EDGE;
break;
- case SDRPATHSMOOTH_ASYMMETRIC:
+ case SdrPathSmoothKind::Asymmetric:
bEnable = nWhich == SID_BEZIER_SMOOTH;
break;
- case SDRPATHSMOOTH_SYMMETRIC :
+ case SdrPathSmoothKind::Symmetric :
bEnable = nWhich == SID_BEZIER_SYMMTR;
break;
}