diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-05 12:47:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-06 08:09:22 +0100 |
commit | cedc8a942e451a63dd1e7dae7f25642c0fcb4be8 (patch) | |
tree | 1688a241dee2e6630186ccd4fdd53f494c47ebe0 /sc/source | |
parent | ae854970bf9c734df132797c0f23a7829efd167c (diff) |
use more FastParser in ScXMLTableContext
Change-Id: I16018b07bb4c71b60c547dad2d53420a14686e18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90056
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/xml/xmltabi.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
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<document::XEventsSupplier> 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<document::XEventsSupplier> xSupplier( GetScImport().GetTables().GetCurrentXSheet(), uno::UNO_QUERY ); + pContext = new XMLEventsImportContext( GetImport(), xSupplier ); + } + break; } return pContext; |