summaryrefslogtreecommitdiff
path: root/sd
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 /sd
parent8267445b2e923b9de0ebe8c15e928e91c834ab86 (diff)
convert SdrPathSegmentKind to scoped enum
Change-Id: I1f5da7fb90b0100610677279e93b6e02347c120f
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/motionpathtag.cxx2
-rw-r--r--sd/source/ui/view/drbezob.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx
index df05aedae0c7..4a786171cbfb 100644
--- a/sd/source/ui/animations/motionpathtag.cxx
+++ b/sd/source/ui/animations/motionpathtag.cxx
@@ -1091,7 +1091,7 @@ SdrPathSegmentKind MotionPathTag::GetMarkedSegmentsKind() const
if( mpPathObj )
return mrView.GetMarkedSegmentsKind();
else
- return SDRPATHSEGMENT_LINE;
+ return SdrPathSegmentKind::Line;
}
void MotionPathTag::SetMarkedSegmentsKind(SdrPathSegmentKind eKind)
diff --git a/sd/source/ui/view/drbezob.cxx b/sd/source/ui/view/drbezob.cxx
index c002971f7e5b..55a755341bc8 100644
--- a/sd/source/ui/view/drbezob.cxx
+++ b/sd/source/ui/view/drbezob.cxx
@@ -150,9 +150,9 @@ void BezierObjectBar::GetAttrState(SfxItemSet& rSet)
SdrPathSegmentKind eSegm = pIPPEC->GetMarkedSegmentsKind();
switch (eSegm)
{
- case SDRPATHSEGMENT_DONTCARE: rSet.InvalidateItem(SID_BEZIER_CONVERT); break;
- case SDRPATHSEGMENT_LINE : rSet.Put(SfxBoolItem(SID_BEZIER_CONVERT,false)); break; // Button down = 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 down = curve
+ case SdrPathSegmentKind::Curve : rSet.Put(SfxBoolItem(SID_BEZIER_CONVERT,true)); break;
default: break;
}
}
@@ -236,7 +236,7 @@ void BezierObjectBar::Execute(SfxRequest& rReq)
case SID_BEZIER_CONVERT:
{
- pIPPEC->SetMarkedSegmentsKind(SDRPATHSEGMENT_TOGGLE);
+ pIPPEC->SetMarkedSegmentsKind(SdrPathSegmentKind::Toggle);
break;
}