From cedc8a942e451a63dd1e7dae7f25642c0fcb4be8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 Mar 2020 12:47:21 +0200 Subject: use more FastParser in ScXMLTableContext Change-Id: I16018b07bb4c71b60c547dad2d53420a14686e18 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90056 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/filter/xml/xmltabi.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sc/source') diff --git a/sc/source/filter/xml/xmltabi.cxx b/sc/source/filter/xml/xmltabi.cxx index 5f529b60e79a..2d31ec749fee 100644 --- a/sc/source/filter/xml/xmltabi.cxx +++ b/sc/source/filter/xml/xmltabi.cxx @@ -231,14 +231,6 @@ SvXMLImportContextRef ScXMLTableContext::CreateChildContext( sal_uInt16 nPrefix, pContext = xmloff::OFormLayerXMLImport::createOfficeFormsContext( GetScImport(), nPrefix, rLName ); } break; - case XML_TOK_TABLE_EVENT_LISTENERS: - case XML_TOK_TABLE_EVENT_LISTENERS_EXT: - { - // use XEventsSupplier interface of the sheet - uno::Reference xSupplier( GetScImport().GetTables().GetCurrentXSheet(), uno::UNO_QUERY ); - pContext = new XMLEventsImportContext( GetImport(), nPrefix, rLName, xSupplier ); - } - break; default: ; } @@ -336,6 +328,14 @@ uno::Reference< xml::sax::XFastContextHandler > SAL_CALL case XML_ELEMENT( CALC_EXT, XML_CONDITIONAL_FORMATS ): pContext = new ScXMLConditionalFormatsContext( GetScImport() ); break; + case XML_ELEMENT(OFFICE, XML_EVENT_LISTENERS): + case XML_ELEMENT(OFFICE_EXT, XML_EVENT_LISTENERS): + { + // use XEventsSupplier interface of the sheet + uno::Reference xSupplier( GetScImport().GetTables().GetCurrentXSheet(), uno::UNO_QUERY ); + pContext = new XMLEventsImportContext( GetImport(), xSupplier ); + } + break; } return pContext; -- cgit