xmloff/source/chart/contexts.cxx | 23 ++++------------------- xmloff/source/chart/contexts.hxx | 5 ----- 2 files changed, 4 insertions(+), 24 deletions(-)
New commits: commit 50559ad1e3e345e4e99bdeb174591d3b4fa74163 Author: Noel <[email protected]> AuthorDate: Fri Nov 27 15:44:51 2020 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Sat Nov 28 09:46:03 2020 +0100 fastparser in SchXMLDocContext Change-Id: I15edc8de34ba6a21eec19ad2636d807ecf1e100b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106777 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> 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; }; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
