From c8598f28db8ef5ab5f695cf1af645bb43dbc264d Mon Sep 17 00:00:00 2001
From: Aritz Erkiaga
Date: Thu, 25 Mar 2021 09:25:27 +0100
Subject: tdf#138556 Don’t add Open Values to stock chart types 1 and 3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
A new function was defined, XdataInterpreter::getChartTypeSpecificData.
Being 100% chart-type-agnostic when retrieving chart data is impossible;
candlestick charts can have different numbers of sequences per series,
and this information is not present in any other chart type.
Change-Id: I0f54b09202c42667331b083d54d90e4ceee81083
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113075
Tested-by: Jenkins
Reviewed-by: Noel Grandin
---
offapi/com/sun/star/chart2/XDataInterpreter.idl | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
(limited to 'offapi')
diff --git a/offapi/com/sun/star/chart2/XDataInterpreter.idl b/offapi/com/sun/star/chart2/XDataInterpreter.idl
index 9f2d465ae179..f8826ee8e23c 100644
--- a/offapi/com/sun/star/chart2/XDataInterpreter.idl
+++ b/offapi/com/sun/star/chart2/XDataInterpreter.idl
@@ -86,6 +86,24 @@ interface XDataInterpreter : ::com::sun::star::uno::XInterface
the result of this method should be xSource
.
*/
com::sun::star::chart2::data::XDataSource mergeInterpretedData( [in] InterpretedData aInterpretedData );
+
+ /** Get chart information that is specific to a particular chart
+ type, by key.
+
+ @param sKey
+ name of the piece of data to retrieve.
+
+ Supported key strings:
+
+ - "stock variant": stock chart variant,
+ with 0 = neither Open Values nor volume, 1 = Open Values,
+ 2 = volume, 3 = both. Valid for candlestick charts.
+
+
+ @return
+ The value requested, or nothing if not present.
+ */
+ any getChartTypeSpecificData([in] string sKey );
};
} ; // chart2
--
cgit v1.2.3