diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-26 15:55:17 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-27 09:09:54 +0100 |
commit | 61e4c00eee8c5d07a29cf7ec97bad653e3e8f8ce (patch) | |
tree | 0b1e7a824d52a655315e8bc22eccc8bd76031a75 /include | |
parent | 78233e47d07d89d656ef75b534272f71ea540572 (diff) |
sw HTML import: allow custom XHTML namespace alias
This helps in case the HTML filter is given an XHTML that has an
explicit namespace alias for <http://www.w3.org/1999/xhtml>.
Change-Id: I437fa85ba19ce907c9c4b10c8d10aaf2217dc0ea
Reviewed-on: https://gerrit.libreoffice.org/50380
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/parhtml.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx index 762c60e1006e..53c0727fcbf9 100644 --- a/include/svtools/parhtml.hxx +++ b/include/svtools/parhtml.hxx @@ -168,6 +168,9 @@ private: OUString aEndToken; + /// XML namespace, in case of XHTML. + OUString maNamespace; + protected: OUString sSaveToken; // the read tag as string @@ -182,6 +185,8 @@ protected: void FinishHeader() { bIsInHeader = false; } + void SetNamespace(const OUString& rNamespace); + public: HTMLParser( SvStream& rIn, bool bReadNewDoc = true ); |