summaryrefslogtreecommitdiff
path: root/include/svx/svdtypes.hxx
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/svx/svdtypes.hxx
parente00aa45d3456e2f76ed70d593d6ae1646aa1ae51 (diff)
convert SdrDragMode to scoped enum
Change-Id: I244132d2240a46f42f14d453e5987968d274e907
Diffstat (limited to 'include/svx/svdtypes.hxx')
-rw-r--r--include/svx/svdtypes.hxx28
1 files changed, 14 insertions, 14 deletions
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;
/*