diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-21 14:31:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-05 08:38:36 +0200 |
commit | 57f1934bdaa747f6e671419aa040e140d235f937 (patch) | |
tree | 98fe4a07f17f29d0e7bd17db5916a87bd30def3e /include/svtools/parhtml.hxx | |
parent | 3b39adee1965be05e4bae759f43f77ce530f326c (diff) |
convert HTML_TOKEN_IDS to scoped enum
Change-Id: I525506e0103e4f17e5b8b95f15c1285d65b93de9
Reviewed-on: https://gerrit.libreoffice.org/37220
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 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx index b6e7260b235c..89a0d5aeedf1 100644 --- a/include/svtools/parhtml.hxx +++ b/include/svtools/parhtml.hxx @@ -142,7 +142,7 @@ public: typedef ::std::vector<HTMLOption> HTMLOptions; -class SVT_DLLPUBLIC HTMLParser : public SvParser +class SVT_DLLPUBLIC HTMLParser : public SvParser<HtmlTokenId> { private: mutable HTMLOptions maOptions; // options of the start tag @@ -164,19 +164,19 @@ private: sal_uInt32 nPre_LinePos; // Pos in the line in the PRE-Tag - int mnPendingOffToken; ///< OFF token pending for a <XX.../> ON/OFF ON token + HtmlTokenId mnPendingOffToken; ///< OFF token pending for a <XX.../> ON/OFF ON token OUString aEndToken; protected: OUString sSaveToken; // the read tag as string - int ScanText( const sal_Unicode cBreak = 0U ); + HtmlTokenId ScanText( const sal_Unicode cBreak = 0U ); - int GetNextRawToken(); + HtmlTokenId GetNextRawToken(); // scan next token - virtual int GetNextToken_() override; + virtual HtmlTokenId GetNextToken_() override; virtual ~HTMLParser() override; @@ -198,15 +198,15 @@ public: // start PRE-/LISTING or XMP mode or filter tags respectively inline void StartPRE(); void FinishPRE() { bReadPRE = false; } - int FilterPRE( int nToken ); + HtmlTokenId FilterPRE( HtmlTokenId nToken ); inline void StartListing(); void FinishListing() { bReadListing = false; } - int FilterListing( int nToken ); + HtmlTokenId FilterListing( HtmlTokenId nToken ); inline void StartXMP(); void FinishXMP() { bReadXMP = false; } - int FilterXMP( int nToken ); + HtmlTokenId FilterXMP( HtmlTokenId nToken ); void FinishTextArea() { bReadTextArea = false; } @@ -217,7 +217,7 @@ public: // (PRE, XMP, ...) and set the flags. Is called by Continue before // NextToken is called. If you implement own loops or call // NextToken yourself, you should call this method beforehand. - int FilterToken( int nToken ); + HtmlTokenId FilterToken( HtmlTokenId nToken ); void ReadRawData( const OUString &rEndToken ) { aEndToken = rEndToken; } @@ -230,7 +230,7 @@ public: const HTMLOptions& GetOptions( HtmlOptionId *pNoConvertToken=nullptr ); // for asynchronous reading from the SvStream - virtual void Continue( int nToken ) override; + virtual void Continue( HtmlTokenId nToken ) override; protected: |