diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-30 08:37:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-30 09:43:10 +0200 |
commit | e4da8ae4bef37f5450dcf34d9f06b68e3b901c01 (patch) | |
tree | 5ce67402f1bc237745046e43caf096896f3a92d2 /xmloff/inc | |
parent | 315d56582f8a56d8f2d3ea6cda63ea4832249608 (diff) |
Revert "Convert TokenContext to fastparser APIs"
This reverts commit b7bfe6ae08f5b214f2d03d70a40b66c894c0b659.
Reason for revert: I missed some call-sites which means this is not going to work properly, which also means we don't have any tests for this functionality :-(
Change-Id: Ie340a5e2331609258e79176c3dd12249ad46ba7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93134
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/inc')
-rw-r--r-- | xmloff/inc/DomBuilderContext.hxx | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/xmloff/inc/DomBuilderContext.hxx b/xmloff/inc/DomBuilderContext.hxx index a3ce39574473..cf73d6e7d608 100644 --- a/xmloff/inc/DomBuilderContext.hxx +++ b/xmloff/inc/DomBuilderContext.hxx @@ -32,7 +32,7 @@ namespace com { namespace sun { namespace star { class XDocument; } } namespace xml { namespace sax { - class XFastAttributeList; + class XAttributeList; } } } } } class SvXMLImport; @@ -48,11 +48,14 @@ class DomBuilderContext final : public SvXMLImportContext public: /** default constructor: create new DOM tree */ - DomBuilderContext( SvXMLImport& rImport, sal_Int32 nElement ); + DomBuilderContext( SvXMLImport& rImport, + sal_uInt16 nPrefix, + const OUString& rLocalName ); /** constructor: create DOM subtree under the given node */ DomBuilderContext( SvXMLImport& rImport, - sal_Int32 nElement, + sal_uInt16 nPrefix, + const OUString& rLocalName, css::uno::Reference<css::xml::dom::XNode> const & ); virtual ~DomBuilderContext() override; @@ -67,12 +70,16 @@ public: // implement SvXMLImportContext methods: - virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( - sal_Int32 nElement, - const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override; - virtual void SAL_CALL startFastElement( sal_Int32 nElement, - const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override; + virtual SvXMLImportContextRef CreateChildContext( + sal_uInt16 nPrefix, + const OUString& rLocalName, + const css::uno::Reference<css::xml::sax::XAttributeList >& xAttrList ) override; + + virtual void StartElement( + const css::uno::Reference<css::xml::sax::XAttributeList>& xAttrList ) override; + + virtual void EndElement() override; virtual void Characters( const OUString& rChars ) override; }; |