diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-11-24 20:13:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-25 07:14:34 +0100 |
commit | 7ac81c6a1dc0ccd6ab62793f4787002da73b4d5b (patch) | |
tree | 785c73b7f455231bad0ab5d1c8a5d650c6cd97a0 /xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx | |
parent | caf72d1f20547a94e29c0943eb94fa52aec430a4 (diff) |
fastparser in TOC
Change-Id: Ia46d61e202292c957299e77e133c7f7a9f6eb0ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106547
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx index 3c1725887fce..c5ad3ffe1c3a 100644 --- a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx +++ b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx @@ -197,16 +197,13 @@ void XMLIndexAlphabeticalSourceContext::endFastElement(sal_Int32 nElement) XMLIndexSourceBaseContext::endFastElement(nElement); } -SvXMLImportContextRef XMLIndexAlphabeticalSourceContext::CreateChildContext( - sal_uInt16 nPrefix, - const OUString& rLocalName, - const Reference<XAttributeList> & xAttrList ) +css::uno::Reference< css::xml::sax::XFastContextHandler > XMLIndexAlphabeticalSourceContext::createFastChildContext( + sal_Int32 nElement, + const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) { - if ( (XML_NAMESPACE_TEXT == nPrefix) && - IsXMLToken( rLocalName, XML_ALPHABETICAL_INDEX_ENTRY_TEMPLATE ) ) + if ( nElement == XML_ELEMENT(TEXT, XML_ALPHABETICAL_INDEX_ENTRY_TEMPLATE) ) { return new XMLIndexTemplateContext(GetImport(), rIndexPropertySet, - nPrefix, rLocalName, aLevelNameAlphaMap, XML_OUTLINE_LEVEL, aLevelStylePropNameAlphaMap, @@ -214,8 +211,7 @@ SvXMLImportContextRef XMLIndexAlphabeticalSourceContext::CreateChildContext( } else { - return XMLIndexSourceBaseContext::CreateChildContext(nPrefix, - rLocalName, + return XMLIndexSourceBaseContext::createFastChildContext(nElement, xAttrList); } } |