diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-19 13:12:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-20 09:52:09 +0200 |
commit | 49e13aa41895e8562d83cff189ab6a78d5d902aa (patch) | |
tree | 4c20a5e23a8f24b055df17d7c1075d4996b34995 /include | |
parent | 456c379ffd8683cd8c22969268900787cf1ac28e (diff) |
convert FONT_SUBSTITUTE constants to scoped enum
Change-Id: I8312f0117f33349218a09ccdfea946c66ceb1b3e
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/outdev.hxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index dda1507807ea..f9586ca7023a 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -266,9 +266,17 @@ namespace o3tl template<> struct typed_flags<AntialiasingFlags> : is_typed_flags<AntialiasingFlags, 0x07> {}; } -// AddFontSubstitute -#define FONT_SUBSTITUTE_ALWAYS ((sal_uInt16)0x0001) -#define FONT_SUBSTITUTE_SCREENONLY ((sal_uInt16)0x0002) +// AddFontSubstitute() flags +enum class AddFontSubstituteFlags +{ + NONE = 0x00, + ALWAYS = 0x01, + ScreenOnly = 0x02, +}; +namespace o3tl +{ + template<> struct typed_flags<AddFontSubstituteFlags> : is_typed_flags<AddFontSubstituteFlags, 0x03> {}; +} #define DEFAULTFONT_FLAGS_ONLYONE ((sal_uLong)0x00000001) @@ -1259,7 +1267,7 @@ public: static void EndFontSubstitution(); static void AddFontSubstitute( const OUString& rFontName, const OUString& rReplaceFontName, - sal_uInt16 nFlags = 0 ); + AddFontSubstituteFlags nFlags = AddFontSubstituteFlags::NONE ); static void RemoveFontSubstitute( sal_uInt16 n ); static sal_uInt16 GetFontSubstituteCount(); |