summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-12-02 14:42:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-03 09:15:05 +0100
commit8cf3181243d9a4695ef430463df34699c37462f9 (patch)
tree2a0590eb99e960f67736844cd42048d7c279c90e /xmloff
parent7fc2fe5c612f95b9624f49b5fdea2d3c8c94caf1 (diff)
fastparser in XMLIndexBodyContext
Change-Id: I4fd0342f8d008ec9dfd3f148d5cdfb3a27c1753e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107130 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLIndexBodyContext.cxx9
-rw-r--r--xmloff/source/text/XMLIndexBodyContext.hxx7
2 files changed, 7 insertions, 9 deletions
diff --git a/xmloff/source/text/XMLIndexBodyContext.cxx b/xmloff/source/text/XMLIndexBodyContext.cxx
index b83e7fd36531..05392d57a4b4 100644
--- a/xmloff/source/text/XMLIndexBodyContext.cxx
+++ b/xmloff/source/text/XMLIndexBodyContext.cxx
@@ -37,14 +37,13 @@ XMLIndexBodyContext::~XMLIndexBodyContext()
{
}
-SvXMLImportContextRef XMLIndexBodyContext::CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const Reference<XAttributeList> & xAttrList)
+css::uno::Reference< css::xml::sax::XFastContextHandler > XMLIndexBodyContext::createFastChildContext(
+ sal_Int32 nElement,
+ const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
{
// return text content (if possible)
SvXMLImportContext* pContext = GetImport().GetTextImport()->CreateTextChildContext(
- GetImport(), nPrefix, rLocalName, xAttrList, XMLTextType::Section );
+ GetImport(), nElement, xAttrList, XMLTextType::Section );
if (pContext)
bHasContent = true;
diff --git a/xmloff/source/text/XMLIndexBodyContext.hxx b/xmloff/source/text/XMLIndexBodyContext.hxx
index 936542e243ea..769c1f04b51b 100644
--- a/xmloff/source/text/XMLIndexBodyContext.hxx
+++ b/xmloff/source/text/XMLIndexBodyContext.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 >& AttrList ) override;
};
inline bool XMLIndexBodyContext::HasContent() const