From 0d2340998415fb4b2f794054c62ef61c83e32155 Mon Sep 17 00:00:00 2001 From: Balazs Varga Date: Sat, 29 Aug 2020 13:44:37 +0200 Subject: tdf#136061 Chart ODF/OOXML: fix missing custom labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit by UNO extensions ShowCustomLabel in DataPointLabel.idl and CUSTOM in ChartDataCaption.idl, fixing OOXML/ODF import/export. We should display custom data label even if DataPointLabel is disabled (e.g. category name and/or value fields are not displayed). Note: import of the embedded chart of the DOCX unit test document uses also ODF format in the background, testing also the extension of the native file format. Change-Id: I73e21f1e69fddec9f3b4163c46b6582cd1c74b5d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101640 Tested-by: Jenkins Tested-by: László Németh Reviewed-by: László Németh --- offapi/com/sun/star/chart/ChartDataCaption.idl | 8 ++++++++ offapi/com/sun/star/chart2/DataPointLabel.idl | 7 +++++++ 2 files changed, 15 insertions(+) (limited to 'offapi') diff --git a/offapi/com/sun/star/chart/ChartDataCaption.idl b/offapi/com/sun/star/chart/ChartDataCaption.idl index c0b589a2efe9..fb5da8034961 100644 --- a/offapi/com/sun/star/chart/ChartDataCaption.idl +++ b/offapi/com/sun/star/chart/ChartDataCaption.idl @@ -68,6 +68,14 @@ published constants ChartDataCaption /** The symbol of data column/row is additionally displayed in the caption. */ const long SYMBOL = 16; + + + /** The caption contains a custom text, which belongs + to a data point label. + + @since LibreOffice 7.1 + */ + const long CUSTOM = 32; }; diff --git a/offapi/com/sun/star/chart2/DataPointLabel.idl b/offapi/com/sun/star/chart2/DataPointLabel.idl index 5963e8dd93b2..f16245c8797a 100644 --- a/offapi/com/sun/star/chart2/DataPointLabel.idl +++ b/offapi/com/sun/star/chart2/DataPointLabel.idl @@ -57,6 +57,13 @@ struct DataPointLabel caption. */ boolean ShowLegendSymbol; + + /** The caption contains a custom label text, which belongs + to a data point label. + + @since LibreOffice 7.1 + */ + boolean ShowCustomLabel; }; -- cgit