diff options
Diffstat (limited to 'include/xmloff/xmlnumfi.hxx')
-rw-r--r-- | include/xmloff/xmlnumfi.hxx | 22 |
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; } |