Resolves: tdf#117162 ImportDocumentHandler expects data provider to exist
commit456fdfefd7d01c6fe4386266254045cdd33c8ed0
authorCaolán McNamara <caolanm@redhat.com>
Tue, 29 Mar 2022 19:00:09 +0000 (29 20:00 +0100)
committerMichael Stahl <michael.stahl@allotropia.de>
Fri, 1 Apr 2022 09:53:20 +0000 (1 11:53 +0200)
tree6705dce0f1b6fc3bbd4e105c972a75a0700fc7db
parentcac069b4e4f3bf31b77cce9e89c1d0fe4d3cb0e6
Resolves: tdf#117162 ImportDocumentHandler expects data provider to exist

already in its ctor

which changed since...

commit 9009663deb8f0862f419fd99bf0b761c7f923eff
Date:   Sun Feb 26 22:48:06 2017 +0100

    tdf#83257 [API-CHANGE] Pivot chart implementation

which defers it, take a probably safely backportable approach here to
fix it.

Change-Id: I1863791af7ae737f337993833a9cf1429a3a8028
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132286
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 78f7bd90b96ac168fdacd1e0cb0693ab3861872a)

also contains...

tdf#117162 ImportDocumentHandler expected XDocumentHandler argument

but SvXMLImport not longer supports XDocumentHandler since

commit fe2b4e7dc6533535736a8f08496f316427386179
Date:   Tue Oct 6 18:27:27 2020 +0200

    make SvXMLImport fast-parser only

here use a SvXMLLegacyToFastDocHandler to try and glue the two
parts together again. Though the use of reflection::XProxyFactory
is a bit worrying here wrt this change so unforseen side effects
are possible. Full change over to fast-parser only is probably
advisable.

Change-Id: Ie14d1d9fa8534c187efc67a6c1cc0989316c4634
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132285
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 70f3a94949cce612be9eff14fca94976acfc61a4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132333
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
chart2/Library_chartcore.mk
chart2/source/model/filter/XMLFilter.cxx
include/xmloff/SchXMLImportHelper.hxx
reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
reportdesign/source/filter/xml/xmlImportDocumentHandler.hxx
xmloff/source/chart/SchXMLChartContext.cxx