diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-20 15:47:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-21 09:20:50 +0200 |
commit | c48ad62924754025266f6ed3986beac44d1c2452 (patch) | |
tree | 1647934028b04eaab4c52225e12e22060bfa7dd1 /include/svtools/parhtml.hxx | |
parent | 42b2c0042b04184c94fb7cba3f301d394d21274e (diff) |
convert HTML_OPTION_IDS to scoped enum
Change-Id: Ia766dc58a571e5853005fd394283d7b53f02e4a6
Reviewed-on: https://gerrit.libreoffice.org/36748
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools/parhtml.hxx')
-rw-r--r-- | include/svtools/parhtml.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx index ddb65c2abd7c..b6e7260b235c 100644 --- a/include/svtools/parhtml.hxx +++ b/include/svtools/parhtml.hxx @@ -34,6 +34,7 @@ namespace com { namespace sun { namespace star { class Color; class SvNumberFormatter; class SvKeyValueIterator; +enum class HtmlOptionId; #define HTMLFONTSZ1_DFLT 7 #define HTMLFONTSZ2_DFLT 10 @@ -86,14 +87,14 @@ class SVT_DLLPUBLIC HTMLOption { OUString aValue; // value of the option (always as string) OUString aToken; // name of the option as string - sal_uInt16 nToken; // and respective token + HtmlOptionId nToken; // and respective token public: - HTMLOption( sal_uInt16 nTyp, const OUString& rToken, const OUString& rValue ); + HTMLOption( HtmlOptionId nTyp, const OUString& rToken, const OUString& rValue ); // name of the option... - sal_uInt16 GetToken() const { return nToken; } // ... as enum + HtmlOptionId GetToken() const { return nToken; } // ... as enum const OUString& GetTokenString() const { return aToken; } // ... as string // value of the option ... @@ -226,7 +227,7 @@ public: // Determine the options. pNoConvertToken is the optional token // of an option, for which the CR/LFs are not deleted from the value // of the option. - const HTMLOptions& GetOptions( sal_uInt16 *pNoConvertToken=nullptr ); + const HTMLOptions& GetOptions( HtmlOptionId *pNoConvertToken=nullptr ); // for asynchronous reading from the SvStream virtual void Continue( int nToken ) override; |