summaryrefslogtreecommitdiff
path: root/sw/inc/fesh.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-12 17:25:33 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-12 16:43:49 +0000
commitc967872d46a7cfd7c52063068313d5ec0356453e (patch)
treeec35d758d389d9abdb955429d8797c712ce6828a /sw/inc/fesh.hxx
parentab06f67ee26e730f209a3ff8c4717901f70765fe (diff)
convert SW_MOVE constants to enum
Change-Id: I504862618bfeeeed674c1cb816104a167cb2e27e Reviewed-on: https://gerrit.libreoffice.org/11935 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/inc/fesh.hxx')
-rw-r--r--sw/inc/fesh.hxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index 2a10307ea7c7..f01e2d5c4722 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -143,10 +143,13 @@ struct SwGetCurColNumPara
#define SW_ENTER_GROUP 2
#define SW_LEAVE_FRAME 4
-#define SW_MOVE_UP 0
-#define SW_MOVE_DOWN 1
-#define SW_MOVE_LEFT 2
-#define SW_MOVE_RIGHT 3
+enum class SwMove
+{
+ UP = 0,
+ DOWN = 1,
+ LEFT = 2,
+ RIGHT = 3
+};
#define SW_TABCOL_NONE 0
#define SW_TABCOL_HORI 1
@@ -259,7 +262,7 @@ public:
the draw object. */
bool ShouldObjectBeSelected(const Point& rPt);
- bool MoveAnchor( sal_uInt16 nDir );
+ bool MoveAnchor( SwMove nDir );
/** @return if Upper of frame at current position is section frame
Currently only used by the rules. To be replaced by something more
@@ -453,7 +456,7 @@ public:
const SdrObject* GetBestObject( bool bNext, sal_uInt16 eType = GOTOOBJ_DRAW_ANY, bool bFlat = true, const ::svx::ISdrObjectFilter* pFilter = NULL );
bool GotoObj( bool bNext, sal_uInt16 /*GOTOOBJ_...*/ eType = GOTOOBJ_DRAW_ANY);
- /// Set DragMode (e.g. Rotae), but do nothing when frame is selected.
+ /// Set DragMode (e.g. Rotate), but do nothing when frame is selected.
void SetDragMode( sal_uInt16 eSdrDragMode );
sal_uInt16 IsObjSelected() const; ///< @return object count, but doesn't count the objects in groups.