summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-27 15:44:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-28 09:46:03 +0100
commit50559ad1e3e345e4e99bdeb174591d3b4fa74163 (patch)
tree10a1a4264af5ffdb28c4b8a94f48be307ca4c2ad /xmloff
parenta66a3c3c55f6e338bc9cc0a3b71136786a71f1e6 (diff)
fastparser in SchXMLDocContext
Change-Id: I15edc8de34ba6a21eec19ad2636d807ecf1e100b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106777 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/contexts.cxx23
-rw-r--r--xmloff/source/chart/contexts.hxx5
2 files changed, 4 insertions, 24 deletions
diff --git a/xmloff/source/chart/contexts.cxx b/xmloff/source/chart/contexts.cxx
index c6056915382a..b11790df77c3 100644
--- a/xmloff/source/chart/contexts.cxx
+++ b/xmloff/source/chart/contexts.cxx
@@ -78,25 +78,6 @@ SchXMLDocContext::~SchXMLDocContext()
{}
-SvXMLImportContextRef SchXMLDocContext::CreateChildContext(
- sal_uInt16 nPrefix,
- const OUString& rLocalName,
- const uno::Reference< xml::sax::XAttributeList >& /*xAttrList*/ )
-{
- SvXMLImportContextRef xContext;
- const SvXMLTokenMap& rTokenMap = mrImportHelper.GetDocElemTokenMap();
-
- switch( rTokenMap.Get( nPrefix, rLocalName ))
- {
- case XML_TOK_DOC_META:
- // we come here in the flat ODF file format,
- // if XDocumentPropertiesSupplier is not supported at the model
- break;
- }
-
- return xContext;
-}
-
uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SchXMLDocContext::createFastChildContext(
sal_Int32 nElement, const uno::Reference< xml::sax::XFastAttributeList >& /*xAttrList*/ )
{
@@ -119,6 +100,10 @@ uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SchXMLDocContext::creat
return
static_cast< SchXMLImport& >( GetImport() ).CreateStylesContext();
break;
+ case XML_ELEMENT(OFFICE, XML_META):
+ // we come here in the flat ODF file format,
+ // if XDocumentPropertiesSupplier is not supported at the model
+ break;
}
return nullptr;
}
diff --git a/xmloff/source/chart/contexts.hxx b/xmloff/source/chart/contexts.hxx
index 81f5e6318239..342066135e2b 100644
--- a/xmloff/source/chart/contexts.hxx
+++ b/xmloff/source/chart/contexts.hxx
@@ -47,11 +47,6 @@ public:
virtual ~SchXMLDocContext() override;
- 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;
};