From fc518ed954aa73eeeb529c21afbcfdfa55ef7fb4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 18 Aug 2016 12:20:08 +0200 Subject: convert SdrDragMode to scoped enum Change-Id: I244132d2240a46f42f14d453e5987968d274e907 --- include/svx/svdtypes.hxx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'include/svx/svdtypes.hxx') 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; /* -- cgit