diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-13 10:53:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-14 12:00:40 +0200 |
commit | 19a32ddfd2b9c1beb17641e99f139ac0d3dcaf96 (patch) | |
tree | e2895b10ec66bae2ec47da748cf2848dea0bffa9 /include/vcl | |
parent | 3c0805e1f4f4d14e92c7e655d59c87de5c207e48 (diff) |
convert KERNING_ constants to scoped enum
Change-Id: I58031485aaa9ebdeb986a3ee0376f36a9f667947
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/fntstyle.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/vcl/fntstyle.hxx b/include/vcl/fntstyle.hxx index e2fc652cd900..481d0a2ff9cf 100644 --- a/include/vcl/fntstyle.hxx +++ b/include/vcl/fntstyle.hxx @@ -21,12 +21,20 @@ #define INCLUDED_VCL_FNTSTYLE_HXX #include <sal/types.h> +#include <o3tl/typed_flags_set.hxx> enum FontRelief { RELIEF_NONE, RELIEF_EMBOSSED, RELIEF_ENGRAVED, FontRelief_FORCE_EQUAL_SIZE=SAL_MAX_ENUM }; -typedef sal_uInt8 FontKerning; -#define KERNING_FONTSPECIFIC ((FontKerning)0x01) -#define KERNING_ASIAN ((FontKerning)0x02) +enum class FontKerning +{ + NONE = 0x00, + FontSpecific = 0x01, + Asian = 0x02, +}; +namespace o3tl +{ + template<> struct typed_flags<FontKerning> : is_typed_flags<FontKerning, 0x03> {}; +} #endif // INCLUDED_VCL_FNTSTYLE_HXX |