use fast-parser APIs for embedded script parsing

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 20 February 2020 12:37 EST

essentially, this duplicates and converts the service in xmlscript/source/xmlflat_impexp/ and then converts it to use SvXMLImport APIs, stripping about 3 layers of unnecessary indirection in the process.

Also improve some exception throwing in sax/ to make the next programmers life easier when finding the source of exceptions.

Change-Id: I1ac552ee0565349e8322a55f6f609cf9f4521cab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89084

4e97fa0f4e73 use fast-parser APIs for embedded script parsing
sax/source/tools/fastattribs.cxx | 4 +-
xmloff/Library_xo.mk | 2 +-
xmloff/source/script/xmlbasici.cxx | 147 ---------------
xmloff/source/script/xmlbasici.hxx | 74 --------
xmloff/source/script/xmlbasicscript.cxx | 323 ++++++++++++++++++++++++++++++++
xmloff/source/script/xmlbasicscript.hxx | 116 ++++++++++++
xmloff/source/script/xmlscripti.cxx | 21 +--
7 files changed, 451 insertions(+), 236 deletions(-)

Upstream: cgit.freedesktop.org


  • Share