summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-19 13:12:35 +0200
committerNoel Grandin <noel@peralex.com>2015-05-20 09:52:09 +0200
commit49e13aa41895e8562d83cff189ab6a78d5d902aa (patch)
tree4c20a5e23a8f24b055df17d7c1075d4996b34995 /vcl/inc
parent456c379ffd8683cd8c22969268900787cf1ac28e (diff)
convert FONT_SUBSTITUTE constants to scoped enum
Change-Id: I8312f0117f33349218a09ccdfea946c66ceb1b3e
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/outdev.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/inc/outdev.h b/vcl/inc/outdev.h
index eae0c597a03b..7d4479825667 100644
--- a/vcl/inc/outdev.h
+++ b/vcl/inc/outdev.h
@@ -36,6 +36,8 @@ class VirtualDevice;
class ImplGetDevFontList;
class GetDevSizeList;
class PhysicalFontCollection;
+enum class AddFontSubstituteFlags;
+
// an ImplGetDevFontList is created by an PhysicalFontCollection
// it becomes invalid when original PhysicalFontCollection is modified
class ImplGetDevFontList
@@ -90,9 +92,9 @@ struct ImplFontSubstEntry
OUString maReplaceName;
OUString maSearchName;
OUString maSearchReplaceName;
- sal_uInt16 mnFlags;
+ AddFontSubstituteFlags mnFlags;
- ImplFontSubstEntry( const OUString& rFontName, const OUString& rSubstFontName, sal_uInt16 nSubstFlags );
+ ImplFontSubstEntry( const OUString& rFontName, const OUString& rSubstFontName, AddFontSubstituteFlags nSubstFlags );
};
class ImplDirectFontSubstitution
@@ -102,13 +104,13 @@ private:
typedef std::list<ImplFontSubstEntry> FontSubstList;
FontSubstList maFontSubstList;
public:
- void AddFontSubstitute( const OUString& rFontName, const OUString& rSubstName, sal_uInt16 nFlags );
+ void AddFontSubstitute( const OUString& rFontName, const OUString& rSubstName, AddFontSubstituteFlags nFlags );
void RemoveFontSubstitute( int nIndex );
int GetFontSubstituteCount() const { return maFontSubstList.size(); };
bool Empty() const { return maFontSubstList.empty(); }
void Clear() { maFontSubstList.clear(); }
- bool FindFontSubstitute( OUString& rSubstName, const OUString& rFontName, sal_uInt16 nFlags ) const;
+ bool FindFontSubstitute( OUString& rSubstName, const OUString& rFontName, AddFontSubstituteFlags nFlags ) const;
};
// PreMatchFontSubstitution