diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-19 14:37:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-20 09:52:09 +0200 |
commit | 23b439a664549e1b43347bc625c267fa3c4f4d3b (patch) | |
tree | 157c173a91b49e78aaf037e1cee482fe3925134b /include/vcl/outdev.hxx | |
parent | 49e13aa41895e8562d83cff189ab6a78d5d902aa (diff) |
convert DEFAULTCONSTANT constant to scoped enum
Change-Id: I5ebd77edfa29d6c6c7acea37e826ef1d625916c3
Diffstat (limited to 'include/vcl/outdev.hxx')
-rw-r--r-- | include/vcl/outdev.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index f9586ca7023a..27cee53d4c00 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -278,7 +278,16 @@ namespace o3tl template<> struct typed_flags<AddFontSubstituteFlags> : is_typed_flags<AddFontSubstituteFlags, 0x03> {}; } -#define DEFAULTFONT_FLAGS_ONLYONE ((sal_uLong)0x00000001) +// GetDefaultFont() flags +enum GetDefaultFontFlags +{ + NONE = 0x0000, + OnlyOne = 0x0001, +}; +namespace o3tl +{ + template<> struct typed_flags<GetDefaultFontFlags> : is_typed_flags<GetDefaultFontFlags, 0x01> {}; +} enum OutDevType { OUTDEV_DONTKNOW, OUTDEV_WINDOW, OUTDEV_PRINTER, OUTDEV_VIRDEV }; @@ -1273,7 +1282,7 @@ public: static vcl::Font GetDefaultFont( DefaultFontType nType, LanguageType eLang, - sal_uLong nFlags, + GetDefaultFontFlags nFlags, const OutputDevice* pOutDev = NULL ); SAL_DLLPRIVATE void ImplInitFontList() const; |