diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-20 21:23:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-06 10:59:40 +0200 |
commit | d1ce6effb62745e9f9c85badd44a1be0aa4a1d8f (patch) | |
tree | 76d1a74cb1f86ab42a9e2841776ba1f1bc705e86 /include/xmloff | |
parent | bae855e667993ea6cddd551452c6e2fa60bdc2f3 (diff) |
fdo#84938: convert TEXT_PROP_MAP #defines to 'enum class'
Change-Id: Ia8c5913c60e3d509a906965d813c8d1380396dc6
Diffstat (limited to 'include/xmloff')
-rw-r--r-- | include/xmloff/txtprmap.hxx | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/include/xmloff/txtprmap.hxx b/include/xmloff/txtprmap.hxx index dc8de7026395..a08915f92597 100644 --- a/include/xmloff/txtprmap.hxx +++ b/include/xmloff/txtprmap.hxx @@ -198,25 +198,27 @@ #define CTF_RELHEIGHTREL (XML_TEXT_CTF_START + 169) -#define TEXT_PROP_MAP_TEXT 0 -#define TEXT_PROP_MAP_PARA 1 -#define TEXT_PROP_MAP_FRAME 2 -#define TEXT_PROP_MAP_AUTO_FRAME 3 -#define TEXT_PROP_MAP_SECTION 4 -#define TEXT_PROP_MAP_SHAPE 5 -#define TEXT_PROP_MAP_RUBY 6 -#define TEXT_PROP_MAP_SHAPE_PARA 7 -#define TEXT_PROP_MAP_TEXT_ADDITIONAL_DEFAULTS 8 -#define TEXT_PROP_MAP_TABLE_DEFAULTS 9 -#define TEXT_PROP_MAP_TABLE_ROW_DEFAULTS 10 +enum class TextPropMap { + TEXT = 0, + PARA = 1, + FRAME = 2, + AUTO_FRAME = 3, + SECTION = 4, + SHAPE = 5, + RUBY = 6, + SHAPE_PARA = 7, + TEXT_ADDITIONAL_DEFAULTS = 8, + TABLE_DEFAULTS = 9, + TABLE_ROW_DEFAULTS = 10 +}; class XMLOFF_DLLPUBLIC XMLTextPropertySetMapper : public XMLPropertySetMapper { public: - XMLTextPropertySetMapper( sal_uInt16 nType, bool bForExport ); + XMLTextPropertySetMapper( TextPropMap nType, bool bForExport ); virtual ~XMLTextPropertySetMapper(); - static const XMLPropertyMapEntry* getPropertyMapForType( sal_uInt16 _nType ); + static const XMLPropertyMapEntry* getPropertyMapForType( TextPropMap _nType ); }; #endif |