diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-18 12:20:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-19 08:18:37 +0200 |
commit | fc518ed954aa73eeeb529c21afbcfdfa55ef7fb4 (patch) | |
tree | c04bd1402c84d8e7abe8224ebe7c7fb178174ad2 /svx/source/svdraw/svdedtv1.cxx | |
parent | e00aa45d3456e2f76ed70d593d6ae1646aa1ae51 (diff) |
convert SdrDragMode to scoped enum
Change-Id: I244132d2240a46f42f14d453e5987968d274e907
Diffstat (limited to 'svx/source/svdraw/svdedtv1.cxx')
-rw-r--r-- | svx/source/svdraw/svdedtv1.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx index c56fa18c47f0..fcb0128404b8 100644 --- a/svx/source/svdraw/svdedtv1.cxx +++ b/svx/source/svdraw/svdedtv1.cxx @@ -886,13 +886,13 @@ void SdrEditView::MergeNotPersistAttrFromMarked(SfxItemSet& rAttr, bool /*bOnlyH rAttr.Put(SdrVertShearAllItem()); } - if(meDragMode == SDRDRAG_ROTATE || meDragMode == SDRDRAG_MIRROR) + if(meDragMode == SdrDragMode::Rotate || meDragMode == SdrDragMode::Mirror) { rAttr.Put(SdrTransformRef1XItem(GetRef1().X())); rAttr.Put(SdrTransformRef1YItem(GetRef1().Y())); } - if(meDragMode == SDRDRAG_MIRROR) + if(meDragMode == SdrDragMode::Mirror) { rAttr.Put(SdrTransformRef2XItem(GetRef2().X())); rAttr.Put(SdrTransformRef2YItem(GetRef2().Y())); @@ -1300,7 +1300,7 @@ SfxItemSet SdrEditView::GetGeoAttrFromMarked() const // size long nResizeRefX=aRect.Left(); long nResizeRefY=aRect.Top(); - if (meDragMode==SDRDRAG_ROTATE) { // use rotation axis as a reference for resizing, too + if (meDragMode==SdrDragMode::Rotate) { // use rotation axis as a reference for resizing, too nResizeRefX=maRef1.X(); nResizeRefY=maRef1.Y(); } @@ -1319,7 +1319,7 @@ SfxItemSet SdrEditView::GetGeoAttrFromMarked() const // rotation long nRotateRefX=aRect.Center().X(); long nRotateRefY=aRect.Center().Y(); - if (meDragMode==SDRDRAG_ROTATE) { + if (meDragMode==SdrDragMode::Rotate) { nRotateRefX=aRotateAxe.X(); nRotateRefY=aRotateAxe.Y(); } @@ -1330,7 +1330,7 @@ SfxItemSet SdrEditView::GetGeoAttrFromMarked() const // shearing long nShearRefX=aRect.Left(); long nShearRefY=aRect.Bottom(); - if (meDragMode==SDRDRAG_ROTATE) { // use rotation axis as a reference for shearing, too + if (meDragMode==SdrDragMode::Rotate) { // use rotation axis as a reference for shearing, too nShearRefX=aRotateAxe.X(); nShearRefY=aRotateAxe.Y(); } @@ -1472,7 +1472,7 @@ void SdrEditView::SetGeoAttrToMarked(const SfxItemSet& rAttr) long nSizY=0; long nRotateAngle=0; - bool bModeIsRotate(meDragMode == SDRDRAG_ROTATE); + bool bModeIsRotate(meDragMode == SdrDragMode::Rotate); long nRotateX(0); long nRotateY(0); long nOldRotateX(0); |