xmloff: import and export for the chart data table

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 15 August 2022 11:08 UTC

This change adds import and export code for the the chart's data table properties to the ODF format for chart documents. The data table properties are exported to a new element "data-table", which then references a auto style with all the properties of a data table + new data table specific properties: HBorder, VBorder, Outline, Keys which are mapped to "show-horizontal-border", "show-vertical-border", "show-outline" and "show-keys" chart attributes.

Also adds a test for the import and export: imports xlsx -> exports to ods -> imports ods

Change-Id: Id45d9369fd619959e4d6eba7ca51c8ddce9c8f56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138260

203eaefb4ac0 xmloff: import and export for the chart data table
chart2/qa/extras/chart2export2.cxx | 52 ++++++++++
chart2/qa/extras/data/xlsx/ChartDataTable.xlsx | Bin 0 -> 8142 bytes
include/xmloff/xmltoken.hxx | 7 +-
.../OpenDocument-v1.3+libreoffice-schema.rng | 113 ++++++++++++++++-----
xmloff/Library_xo.mk | 1 +
xmloff/source/chart/PropertyMaps.cxx | 6 ++
xmloff/source/chart/SchXMLChartContext.cxx | 4 +
xmloff/source/chart/SchXMLDataTableContext.cxx | 87 ++++++++++++++++
xmloff/source/chart/SchXMLDataTableContext.hxx | 40 ++++++++
xmloff/source/chart/SchXMLExport.cxx | 38 ++++++-
xmloff/source/core/xmltoken.cxx | 11 +-
xmloff/source/token/tokens.txt | 5 +
12 files changed, 330 insertions(+), 34 deletions(-)

Upstream: cgit.freedesktop.org


  • Share