summaryrefslogtreecommitdiff
path: root/dbaccess
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 /dbaccess
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 'dbaccess')
-rw-r--r--dbaccess/source/filter/xml/xmlfilter.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index b8a6cc215d26..5b250b9f881c 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -407,21 +407,15 @@ public:
virtual void SAL_CALL startFastElement( sal_Int32 /*nElement*/,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& ) override {}
- virtual SvXMLImportContextRef CreateChildContext(sal_uInt16 const nPrefix,
- const OUString& rLocalName,
- const uno::Reference<xml::sax::XAttributeList> & xAttrList) override
+ virtual uno::Reference< xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
+ sal_Int32 nElement, const uno::Reference< 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;
}
- virtual uno::Reference< xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
- sal_Int32 /*nElement*/, const uno::Reference< xml::sax::XFastAttributeList >& /*xAttrList*/ ) override
- {
- return nullptr;
- }
};
class DBXMLDocumentStylesContext : public SvXMLImportContext