From c222fa9c2206e3b8b0e8cf55bf61be26e32ea2d7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Aug 2016 16:01:41 +0200 Subject: convert SdrPathSmoothKind to scoped enum Change-Id: I9b4a4226322c4d4eb2ab220ecf0b0efb068eea8e --- svx/source/svdraw/svdpoev.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'svx/source/svdraw/svdpoev.cxx') diff --git a/svx/source/svdraw/svdpoev.cxx b/svx/source/svdraw/svdpoev.cxx index 502a1d7036b4..d4c2e2a528e5 100644 --- a/svx/source/svdraw/svdpoev.cxx +++ b/svx/source/svdraw/svdpoev.cxx @@ -38,7 +38,7 @@ using namespace sdr; void SdrPolyEditView::ImpResetPolyPossibilityFlags() { - eMarkedPointsSmooth=SDRPATHSMOOTH_DONTCARE; + eMarkedPointsSmooth=SdrPathSmoothKind::DontCare; eMarkedSegmentsKind=SdrPathSegmentKind::DontCare; bSetMarkedPointsSmoothPossible=false; bSetMarkedSegmentsKindPossible=false; @@ -153,17 +153,17 @@ void SdrPolyEditView::CheckPolyPossibilitiesHelper( SdrMark* pM, bool& b1stSmoot { if(basegfx::B2VectorContinuity::NONE == eSmooth) { - eMarkedPointsSmooth = SDRPATHSMOOTH_ANGULAR; + eMarkedPointsSmooth = SdrPathSmoothKind::Angular; } if(basegfx::B2VectorContinuity::C1 == eSmooth) { - eMarkedPointsSmooth = SDRPATHSMOOTH_ASYMMETRIC; + eMarkedPointsSmooth = SdrPathSmoothKind::Asymmetric; } if(basegfx::B2VectorContinuity::C2 == eSmooth) { - eMarkedPointsSmooth = SDRPATHSMOOTH_SYMMETRIC; + eMarkedPointsSmooth = SdrPathSmoothKind::Symmetric; } } @@ -179,15 +179,15 @@ void SdrPolyEditView::SetMarkedPointsSmooth(SdrPathSmoothKind eKind) { basegfx::B2VectorContinuity eFlags; - if(SDRPATHSMOOTH_ANGULAR == eKind) + if(SdrPathSmoothKind::Angular == eKind) { eFlags = basegfx::B2VectorContinuity::NONE; } - else if(SDRPATHSMOOTH_ASYMMETRIC == eKind) + else if(SdrPathSmoothKind::Asymmetric == eKind) { eFlags = basegfx::B2VectorContinuity::C1; } - else if(SDRPATHSMOOTH_SYMMETRIC == eKind) + else if(SdrPathSmoothKind::Symmetric == eKind) { eFlags = basegfx::B2VectorContinuity::C2; } -- cgit