summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLFontAutoStylePool.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-02-21 12:45:12 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-21 18:26:21 +0100
commit895dc882c451bcc03236267d3ce33be218451721 (patch)
treec1ce54188d19d0850a0cfcdc0d0019c4aa10c137 /xmloff/source/style/XMLFontAutoStylePool.cxx
parent93363ff6ba8198e83417eb805b9342e8711b8c09 (diff)
generic integers to enums
Change-Id: Ic43283b9e1666c0f2162e277dc79fc6f992ef616
Diffstat (limited to 'xmloff/source/style/XMLFontAutoStylePool.cxx')
-rw-r--r--xmloff/source/style/XMLFontAutoStylePool.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/xmloff/source/style/XMLFontAutoStylePool.cxx b/xmloff/source/style/XMLFontAutoStylePool.cxx
index 0f92d66c41e9..9163ef593476 100644
--- a/xmloff/source/style/XMLFontAutoStylePool.cxx
+++ b/xmloff/source/style/XMLFontAutoStylePool.cxx
@@ -44,8 +44,8 @@ class XMLFontAutoStylePoolEntry_Impl
OUString sName;
OUString sFamilyName;
OUString sStyleName;
- sal_Int16 nFamily;
- sal_Int16 nPitch;
+ FontFamily nFamily;
+ FontPitch nPitch;
rtl_TextEncoding eEnc;
public:
@@ -54,22 +54,22 @@ public:
const ::rtl::OUString& rName,
const ::rtl::OUString& rFamilyName,
const ::rtl::OUString& rStyleName,
- sal_Int16 nFamily,
- sal_Int16 nPitch,
+ FontFamily nFamily,
+ FontPitch nPitch,
rtl_TextEncoding eEnc );
inline XMLFontAutoStylePoolEntry_Impl(
const ::rtl::OUString& rFamilyName,
const ::rtl::OUString& rStyleName,
- sal_Int16 nFamily,
- sal_Int16 nPitch,
+ FontFamily nFamily,
+ FontPitch nPitch,
rtl_TextEncoding eEnc );
const OUString& GetName() const { return sName; }
const OUString& GetFamilyName() const { return sFamilyName; }
const OUString& GetStyleName() const { return sStyleName; }
- sal_Int16 GetFamily() const { return nFamily; }
- sal_Int16 GetPitch() const { return nPitch; }
+ FontFamily GetFamily() const { return nFamily; }
+ FontPitch GetPitch() const { return nPitch; }
rtl_TextEncoding GetEncoding() const { return eEnc; }
};
@@ -78,8 +78,8 @@ inline XMLFontAutoStylePoolEntry_Impl::XMLFontAutoStylePoolEntry_Impl(
const ::rtl::OUString& rName,
const ::rtl::OUString& rFamilyName,
const ::rtl::OUString& rStyleName,
- sal_Int16 nFam,
- sal_Int16 nP,
+ FontFamily nFam,
+ FontPitch nP,
rtl_TextEncoding eE ) :
sName( rName ),
sFamilyName( rFamilyName ),
@@ -93,8 +93,8 @@ inline XMLFontAutoStylePoolEntry_Impl::XMLFontAutoStylePoolEntry_Impl(
inline XMLFontAutoStylePoolEntry_Impl::XMLFontAutoStylePoolEntry_Impl(
const ::rtl::OUString& rFamilyName,
const ::rtl::OUString& rStyleName,
- sal_Int16 nFam,
- sal_Int16 nP,
+ FontFamily nFam,
+ FontPitch nP,
rtl_TextEncoding eE ) :
sFamilyName( rFamilyName ),
sStyleName( rStyleName ),
@@ -149,8 +149,8 @@ XMLFontAutoStylePool::~XMLFontAutoStylePool()
OUString XMLFontAutoStylePool::Add(
const OUString& rFamilyName,
const OUString& rStyleName,
- sal_Int16 nFamily,
- sal_Int16 nPitch,
+ FontFamily nFamily,
+ FontPitch nPitch,
rtl_TextEncoding eEnc )
{
OUString sPoolName;
@@ -203,8 +203,8 @@ OUString XMLFontAutoStylePool::Add(
::rtl::OUString XMLFontAutoStylePool::Find(
const OUString& rFamilyName,
const OUString& rStyleName,
- sal_Int16 nFamily,
- sal_Int16 nPitch,
+ FontFamily nFamily,
+ FontPitch nPitch,
rtl_TextEncoding eEnc ) const
{
OUString sName;