summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-08-18 20:45:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-08-19 08:22:49 +0200
commit97968ab9a221aae1e25cbf9e18bae4460a488f79 (patch)
treef7a85abd5d90f591982ddb0c6af24ac41177e8a1 /include
parent6538e5b0bb01fd07183cc6ab99b493cf2b87c3d9 (diff)
convert SvXMLStylesTokens to scoped enum
as a step towards converting the *StyleContext classes to fastparser Change-Id: I0440cbce91d7b20e7181c3a6112791a9af2210b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100954 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/xmloff/xmlnumfi.hxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/xmloff/xmlnumfi.hxx b/include/xmloff/xmlnumfi.hxx
index b337fad36832..e428edc671ce 100644
--- a/include/xmloff/xmlnumfi.hxx
+++ b/include/xmloff/xmlnumfi.hxx
@@ -35,15 +35,15 @@ namespace com::sun::star::xml::sax { class XAttributeList; }
#define XML_NUMBERSTYLES "NumberStyles"
-enum SvXMLStylesTokens
+enum class SvXMLStylesTokens
{
- XML_TOK_STYLES_NUMBER_STYLE,
- XML_TOK_STYLES_CURRENCY_STYLE,
- XML_TOK_STYLES_PERCENTAGE_STYLE,
- XML_TOK_STYLES_DATE_STYLE,
- XML_TOK_STYLES_TIME_STYLE,
- XML_TOK_STYLES_BOOLEAN_STYLE,
- XML_TOK_STYLES_TEXT_STYLE
+ NUMBER_STYLE,
+ CURRENCY_STYLE,
+ PERCENTAGE_STYLE,
+ DATE_STYLE,
+ TIME_STYLE,
+ BOOLEAN_STYLE,
+ TEXT_STYLE
};
enum SvXMLDateElementAttributes
@@ -120,7 +120,7 @@ class XMLOFF_DLLPUBLIC SvXMLNumFormatContext : public SvXMLStyleContext
SvXMLNumImpData* pData;
SvXMLStylesContext* pStyles;
std::vector <MyCondition> aMyConditions;
- sal_uInt16 nType;
+ SvXMLStylesTokens nType;
sal_Int32 nKey;
// OUString sFormatName;
OUString sFormatTitle;
@@ -157,7 +157,7 @@ public:
sal_uInt16 nPrfx,
const OUString& rLName,
SvXMLNumImpData* pNewData,
- sal_uInt16 nNewType,
+ SvXMLStylesTokens nNewType,
const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
SvXMLStylesContext& rStyles );
SvXMLNumFormatContext( SvXMLImport& rImport,
@@ -178,7 +178,7 @@ public:
sal_Int32 GetKey();
sal_Int32 CreateAndInsert( SvNumberFormatter* pFormatter );
sal_Int32 CreateAndInsert( css::uno::Reference< css::util::XNumberFormatsSupplier > const & xFormatsSupplier );
- sal_uInt16 GetType() const { return nType; } // SvXMLStylesTokens
+ SvXMLStylesTokens GetType() const { return nType; } // SvXMLStylesTokens
bool HasLongDoW() const { return bHasLongDoW; }
void SetHasLongDoW(bool bSet) { bHasLongDoW = bSet; }