diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-23 16:01:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-24 08:47:57 +0200 |
commit | c222fa9c2206e3b8b0e8cf55bf61be26e32ea2d7 (patch) | |
tree | cd5434003af4683b0b65feb843a7caa5f85dd28b /svx | |
parent | 9649154f1d844c76ca134d73cd3736452f4f55d4 (diff) |
convert SdrPathSmoothKind to scoped enum
Change-Id: I9b4a4226322c4d4eb2ab220ecf0b0efb068eea8e
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/graphctl.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdpoev.cxx | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx index 896a0932a7b1..cbd6fda345c5 100644 --- a/svx/source/dialog/graphctl.cxx +++ b/svx/source/dialog/graphctl.cxx @@ -156,7 +156,7 @@ void GraphCtrl::InitSdrModel() pView->EnableExtendedMouseEventDispatcher( true ); pView->ShowSdrPage(pView->GetModel()->GetPage(0)); pView->SetFrameDragSingles(); - pView->SetMarkedPointsSmooth( SDRPATHSMOOTH_SYMMETRIC ); + pView->SetMarkedPointsSmooth( SdrPathSmoothKind::Symmetric ); pView->SetEditMode(); // #i72889# set needed flags 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; } |