summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-11-20 17:17:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-21 13:53:26 +0100
commit8cbb22c4679f0922ea2b28372678357e77b55b42 (patch)
tree51418eb4866add0795c3a5eb53b9ef3031804dd9 /xmloff
parent119b8e1d6b54137b3028ce58e62c1d2beb659dc3 (diff)
fastparser in XMLAutoTextContainerEventImport
Change-Id: I1f4003166185fca67bc6ce8abe967e7c99d2237a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106278 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLAutoTextContainerEventImport.cxx13
-rw-r--r--xmloff/source/text/XMLAutoTextContainerEventImport.hxx7
2 files changed, 10 insertions, 10 deletions
diff --git a/xmloff/source/text/XMLAutoTextContainerEventImport.cxx b/xmloff/source/text/XMLAutoTextContainerEventImport.cxx
index 1c9bc76eaaa1..bb5101b52afa 100644
--- a/xmloff/source/text/XMLAutoTextContainerEventImport.cxx
+++ b/xmloff/source/text/XMLAutoTextContainerEventImport.cxx
@@ -25,6 +25,7 @@
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/XMLEventsImportContext.hxx>
+#include <sal/log.hxx>
using namespace ::com::sun::star;
@@ -48,16 +49,16 @@ XMLAutoTextContainerEventImport::~XMLAutoTextContainerEventImport()
{
}
-SvXMLImportContextRef XMLAutoTextContainerEventImport::CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const Reference<XAttributeList> & )
+css::uno::Reference< css::xml::sax::XFastContextHandler > XMLAutoTextContainerEventImport::createFastChildContext(
+ sal_Int32 nElement,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList >& )
{
- if ( (XML_NAMESPACE_OFFICE == nPrefix) &&
- IsXMLToken( rLocalName, XML_EVENT_LISTENERS) )
+ if ( nElement == XML_ELEMENT(OFFICE, XML_EVENT_LISTENERS) )
{
return new XMLEventsImportContext(GetImport(), rEvents);
}
+ else
+ XMLOFF_WARN_UNKNOWN_ELEMENT("xmloff", nElement);
return nullptr;
}
diff --git a/xmloff/source/text/XMLAutoTextContainerEventImport.hxx b/xmloff/source/text/XMLAutoTextContainerEventImport.hxx
index f943ac51653d..26270a505838 100644
--- a/xmloff/source/text/XMLAutoTextContainerEventImport.hxx
+++ b/xmloff/source/text/XMLAutoTextContainerEventImport.hxx
@@ -51,10 +51,9 @@ public:
protected:
- virtual SvXMLImportContextRef CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList ) override;
+ virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
+ sal_Int32 nElement,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
};
#endif