summaryrefslogtreecommitdiff
path: root/include/tools/fontenum.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/fontenum.hxx')
-rw-r--r--include/tools/fontenum.hxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/tools/fontenum.hxx b/include/tools/fontenum.hxx
index eeb35be1985c..419a6baaeb62 100644
--- a/include/tools/fontenum.hxx
+++ b/include/tools/fontenum.hxx
@@ -27,7 +27,15 @@ enum FontFamily { FAMILY_DONTKNOW, FAMILY_DECORATIVE, FAMILY_MODERN,
enum FontPitch { PITCH_DONTKNOW, PITCH_FIXED, PITCH_VARIABLE, FontPitch_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
-enum TextAlign { ALIGN_TOP, ALIGN_BASELINE, ALIGN_BOTTOM, TextAlign_FORCE_EQUAL_SIZE=SAL_MAX_ENUM };
+enum class TextAlign : sal_Int16 {
+ Top = 0x0000,
+ Baseline = 0x0001,
+ Bottom = 0x0002,
+};
+namespace o3tl
+{
+ template<> struct typed_flags<TextAlign> : is_typed_flags<TextAlign, 0x3> {};
+}
enum FontWeight { WEIGHT_DONTKNOW, WEIGHT_THIN, WEIGHT_ULTRALIGHT,
WEIGHT_LIGHT, WEIGHT_SEMILIGHT, WEIGHT_NORMAL,