From 9e5314f19c9dcff35b5cee5c5a1b7f744e495b2e Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 28 Apr 2017 18:05:57 +0200 Subject: tdf#107097 invoke internal DP and correctly handle "range" names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we copy/paste a pivot chart to another (new) document, we "send" a chart data as ODC to the other document. In the new document we can't use the pivot table (as there is none in this document) so we read-in the table data from the document to the internal data provider. The problem was that we didn't match the (fake) range names from the pivot table correctly in the internal data provider and the data wasn't populated. This commit fixes that and changes the fake range names to something that is easy to parse and matches the names in internal data provider. Change-Id: I9872160cca68abd91738a25bf9b3b27bc77ce38d Reviewed-on: https://gerrit.libreoffice.org/37086 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- offapi/com/sun/star/chart2/data/XPivotTableDataProvider.idl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'offapi') diff --git a/offapi/com/sun/star/chart2/data/XPivotTableDataProvider.idl b/offapi/com/sun/star/chart2/data/XPivotTableDataProvider.idl index 731988bc2167..540304113b89 100644 --- a/offapi/com/sun/star/chart2/data/XPivotTableDataProvider.idl +++ b/offapi/com/sun/star/chart2/data/XPivotTableDataProvider.idl @@ -58,6 +58,10 @@ interface XPivotTableDataProvider : com::sun::star::uno::XInterface */ void setPivotTableName([in] string sPivotTableName); + /** check if the associated pivot table exists + */ + boolean hasPivotTable(); + /** creates a single data sequence of values for the given data series index. * * @param nIndex -- cgit v1.2.3