summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-18 12:20:08 +0200
committerNoel Grandin <noel@peralex.com>2016-08-19 08:18:37 +0200
commitfc518ed954aa73eeeb529c21afbcfdfa55ef7fb4 (patch)
treec04bd1402c84d8e7abe8224ebe7c7fb178174ad2 /include
parente00aa45d3456e2f76ed70d593d6ae1646aa1ae51 (diff)
convert SdrDragMode to scoped enum
Change-Id: I244132d2240a46f42f14d453e5987968d274e907
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdmrkv.hxx2
-rw-r--r--include/svx/svdtypes.hxx28
2 files changed, 15 insertions, 15 deletions
diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx
index f958aa9de275..3bfc6eb217b8 100644
--- a/include/svx/svdmrkv.hxx
+++ b/include/svx/svdmrkv.hxx
@@ -189,7 +189,7 @@ public:
void BrkMarkObj();
bool IsMarkObj() const { return (nullptr != mpMarkObjOverlay); }
- // DragModes: SDRDRAG_CREATE,SDRDRAG_MOVE,SDRDRAG_RESIZE,SDRDRAG_ROTATE,SDRDRAG_MIRROR,SDRDRAG_SHEAR,SDRDRAG_CROOK
+ // DragModes: SDRDRAG_CREATE,SdrDragMode::Move,SdrDragMode::Resize,SdrDragMode::Rotate,SdrDragMode::Mirror,SdrDragMode::Shear,SdrDragMode::Crook
// Move==Resize
// The interface might maybe be changed in the future because of Ortho-Drag
void SetDragMode(SdrDragMode eMode);
diff --git a/include/svx/svdtypes.hxx b/include/svx/svdtypes.hxx
index 1acc7875f798..e58a1fd611ca 100644
--- a/include/svx/svdtypes.hxx
+++ b/include/svx/svdtypes.hxx
@@ -35,22 +35,22 @@ enum SdrCreateCmd {SDRCREATE_NEXTPOINT, // next traverse station, segment of
SDRCREATE_NEXTOBJECT, // next polygon in PolyPolygon
SDRCREATE_FORCEEND}; // forced end
-enum SdrDragMode
+enum class SdrDragMode
{
- SDRDRAG_MOVE,
- SDRDRAG_RESIZE,
- SDRDRAG_ROTATE,
- SDRDRAG_MIRROR,
- SDRDRAG_SHEAR,
- SDRDRAG_CROOK,
- SDRDRAG_DISTORT, // Free deform (transform Rect in arbitrary quad)
+ Move,
+ Resize,
+ Rotate,
+ Mirror,
+ Shear,
+ Crook,
+ Distort, // Free deform (transform Rect in arbitrary quad)
// new modes for interactive transparence and gradient tools
- SDRDRAG_TRANSPARENCE,
- SDRDRAG_GRADIENT,
+ Transparence,
+ Gradient,
// new mode for interactive cropping of graphics
- SDRDRAG_CROP
+ Crop
};
@@ -61,9 +61,9 @@ enum SdrDragMode
// If there is no layer when it should be identified, then
// drLayerAdmin::GetLayerID(const String&) returns a value.
#define SDRLAYER_NOTFOUND 0xFF
-// You can use this value in the methods of SdrLayerSet, but sal_False is returned
-// every time or the methode does nothing.
-// type deklaration for Layer-IDs
+// You can use this value in the methods of SdrLayerSet, but false is returned
+// every time or the method does nothing.
+// type declaration for Layer-IDs
typedef sal_uInt8 SdrLayerID;
/*