summaryrefslogtreecommitdiff
path: root/sw/inc/crstate.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-05-17 20:46:09 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-06-04 06:52:47 +0000
commit79800559268c636740fec69018b1f99f047c3f93 (patch)
tree4de6b7388032cfe632e69710ecc8ffe44b241d6f /sw/inc/crstate.hxx
parent81610561edfb8c899a062cc09fc1a80e8098577f (diff)
convert MT_ constants to scoped enum
Change-Id: I21e253ed9dccdab84be4838b5beee9385467ed37 Reviewed-on: https://gerrit.libreoffice.org/16068 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/inc/crstate.hxx')
-rw-r--r--sw/inc/crstate.hxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx
index 678ccd45549b..119817b0f67e 100644
--- a/sw/inc/crstate.hxx
+++ b/sw/inc/crstate.hxx
@@ -49,18 +49,21 @@ struct SwFillCrsrPos
// Multiportion types: two lines, bidirectional, 270 degrees rotation,
// ruby portion and 90 degrees rotation
-#define MT_TWOLINE 0
-#define MT_BIDI 1
-#define MT_ROT_270 3
-#define MT_RUBY 4
-#define MT_ROT_90 7
+enum class MultiPortionType : sal_uInt8
+{
+ TWOLINE = 0,
+ BIDI = 1,
+ ROT_270 = 3,
+ RUBY = 4,
+ ROT_90 = 7,
+};
struct Sw2LinesPos
{
SwRect aLine; ///< Position and size of the line
SwRect aPortion; ///< Position and size of the multi portion
SwRect aPortion2; ///< needed for nested multi portions
- sal_uInt8 nMultiType; ///< Multiportion type
+ MultiPortionType nMultiType; ///< Multiportion type
};
/**