[Libreoffice-commits] core.git: sc/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 6 07:09:55 UTC 2020
sc/source/filter/xml/xmltabi.cxx | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit cedc8a942e451a63dd1e7dae7f25642c0fcb4be8
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Mar 5 12:47:21 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Mar 6 08:09:22 2020 +0100
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 at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list