summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-21 11:17:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-21 14:18:46 +0100
commit996f1b9b325dcccd7b0ebfcacb45a4ffb4cba58e (patch)
tree04af03c2d0fa8a55cd5a549fc1e610c3d62583f6 /reportdesign
parent08e633d777f1d2cf11a93ccb55f231d084f3220c (diff)
Use FastParser in XMLDocumentSettingsContext
and flatten the pImpl data Change-Id: I8d817cd2af0a3855d10dbfaa580c3379119d5067 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87126 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index d6cedca1f54a..768a68753265 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -599,18 +599,11 @@ public:
const css::uno::Reference< css::xml::sax::XFastAttributeList >& ) 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
- {
- return nullptr;
- }
-
- virtual SvXMLImportContextRef CreateChildContext(sal_uInt16 const nPrefix,
- const OUString& rLocalName,
- const uno::Reference<xml::sax::XAttributeList> & xAttrList) override
+ sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& /*xAttrList*/ ) override
{
- if (nPrefix == XML_NAMESPACE_OFFICE && IsXMLToken(rLocalName, XML_SETTINGS))
+ if (nElement == XML_ELEMENT(OFFICE, XML_SETTINGS))
{
- return new XMLDocumentSettingsContext(GetImport(), nPrefix, rLocalName, xAttrList);
+ return new XMLDocumentSettingsContext(GetImport());
}
return nullptr;
}