summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-22 14:54:18 +0200
committerNoel Grandin <noel@peralex.com>2016-08-23 09:54:16 +0200
commit6fc92adb8f89e653fd733e77ab24b4fcffe6a909 (patch)
tree398e14591cdfb44fb146def9eab0ccfa3fe720d3 /chart2
parentconvert BitmapColorIndex to scoped enum (diff)
downloadcore-6fc92adb8f89e653fd733e77ab24b4fcffe6a909.tar.gz
core-6fc92adb8f89e653fd733e77ab24b4fcffe6a909.zip
convert SdrHdlKind to scoped enum
Change-Id: Ib0a06d94f8b51cce1f29f20d1c00d54be939c076
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx6
-rw-r--r--chart2/source/controller/main/SelectionHelper.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index d28252d4603f..9422892ce88c 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -675,11 +675,11 @@ void ChartController::execute_MouseButtonDown( const MouseEvent& rMEvt )
if(pHitSelectionHdl)
{
SdrHdlKind eKind = pHitSelectionHdl->GetKind();
- if( eKind==HDL_UPPER || eKind==HDL_LOWER )
+ if( eKind==SdrHdlKind::Upper || eKind==SdrHdlKind::Lower )
eRotationDirection = DragMethod_RotateDiagram::ROTATIONDIRECTION_X;
- else if( eKind==HDL_LEFT || eKind==HDL_RIGHT )
+ else if( eKind==SdrHdlKind::Left || eKind==SdrHdlKind::Right )
eRotationDirection = DragMethod_RotateDiagram::ROTATIONDIRECTION_Y;
- else if( eKind==HDL_UPLFT || eKind==HDL_UPRGT || eKind==HDL_LWLFT || eKind==HDL_LWRGT )
+ else if( eKind==SdrHdlKind::UpperLeft || eKind==SdrHdlKind::UpperRight || eKind==SdrHdlKind::LowerLeft || eKind==SdrHdlKind::LowerRight )
eRotationDirection = DragMethod_RotateDiagram::ROTATIONDIRECTION_Z;
}
pDragMethod = new DragMethod_RotateDiagram( *pDrawViewWrapper, m_aSelection.getSelectedCID(), getModel(), eRotationDirection );
diff --git a/chart2/source/controller/main/SelectionHelper.cxx b/chart2/source/controller/main/SelectionHelper.cxx
index 5f3739970449..4e6375cdd26b 100644
--- a/chart2/source/controller/main/SelectionHelper.cxx
+++ b/chart2/source/controller/main/SelectionHelper.cxx
@@ -602,7 +602,7 @@ bool SelectionHelper::getMarkHandles( SdrHdlList& rHdlList )
for( sal_uInt32 nM = 0L; nM < aPolygon.count(); nM++)
{
const ::basegfx::B2DPoint aPoint(aPolygon.getB2DPoint(nM));
- SdrHdl* pHdl = new SdrHdl(Point(basegfx::fround(aPoint.getX()), basegfx::fround(aPoint.getY())), HDL_POLY);
+ SdrHdl* pHdl = new SdrHdl(Point(basegfx::fround(aPoint.getX()), basegfx::fround(aPoint.getY())), SdrHdlKind::Poly);
rHdlList.AddHdl(pHdl);
}
}
@@ -648,7 +648,7 @@ bool SelectionHelper::getMarkHandles( SdrHdlList& rHdlList )
}
Point aPos = pSubObj->GetCurrentBoundRect().Center();
- SdrHdl* pHdl = new SdrHdl(aPos,HDL_POLY);
+ SdrHdl* pHdl = new SdrHdl(aPos,SdrHdlKind::Poly);
rHdlList.AddHdl(pHdl);
}
return true;