summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/beziersh.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-23 15:43:55 +0200
committerNoel Grandin <noel@peralex.com>2016-08-24 08:47:57 +0200
commit9649154f1d844c76ca134d73cd3736452f4f55d4 (patch)
tree98f17b4887dc5d5210c28854ed69c41c2b3d7bb4 /sw/source/uibase/shells/beziersh.cxx
parent8267445b2e923b9de0ebe8c15e928e91c834ab86 (diff)
convert SdrPathSegmentKind to scoped enum
Change-Id: I1f5da7fb90b0100610677279e93b6e02347c120f
Diffstat (limited to 'sw/source/uibase/shells/beziersh.cxx')
-rw-r--r--sw/source/uibase/shells/beziersh.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/shells/beziersh.cxx b/sw/source/uibase/shells/beziersh.cxx
index 212717ae88c9..115628b6e5d5 100644
--- a/sw/source/uibase/shells/beziersh.cxx
+++ b/sw/source/uibase/shells/beziersh.cxx
@@ -160,7 +160,7 @@ void SwBezierShell::Execute(SfxRequest &rReq)
case SID_BEZIER_CONVERT:
{
- pSdrView->SetMarkedSegmentsKind(SDRPATHSEGMENT_TOGGLE);
+ pSdrView->SetMarkedSegmentsKind(SdrPathSegmentKind::Toggle);
break;
}
@@ -265,9 +265,9 @@ void SwBezierShell::GetState(SfxItemSet &rSet)
SdrPathSegmentKind eSegm = pSdrView->GetMarkedSegmentsKind();
switch (eSegm)
{
- case SDRPATHSEGMENT_DONTCARE: rSet.InvalidateItem(SID_BEZIER_CONVERT); break;
- case SDRPATHSEGMENT_LINE : rSet.Put(SfxBoolItem(SID_BEZIER_CONVERT,false)); break; // Button pressed = curve
- case SDRPATHSEGMENT_CURVE : rSet.Put(SfxBoolItem(SID_BEZIER_CONVERT,true)); break;
+ case SdrPathSegmentKind::DontCare: rSet.InvalidateItem(SID_BEZIER_CONVERT); break;
+ case SdrPathSegmentKind::Line : rSet.Put(SfxBoolItem(SID_BEZIER_CONVERT,false)); break; // Button pressed = curve
+ case SdrPathSegmentKind::Curve : rSet.Put(SfxBoolItem(SID_BEZIER_CONVERT,true)); break;
default:; //prevent warning
}
}