diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2022-05-16 15:27:46 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-07-17 18:09:06 +0200 |
commit | 212f03a3cd33a1c276e93ee693dc1173a5c1b051 (patch) | |
tree | ffbd455126efe5fbd318a299ca2f48f1e569f3f4 /offapi | |
parent | 8ab54ac42ca2516c333a49fb23f6d27196122c22 (diff) |
[API-CHANGE] chart data table implementation
Adds new service DataTable, which is reposible for the properties
of a data table for a chart. Also removes the existing properties
related to the data table from Diagram service, which were added
prematurely in the past, without a data table actually being
supported by the chart module.
Also adds an implementation of the DataTable service in chart2
module.
Change-Id: I0c6b32163745704c623d04baaf0ce0e208c107f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136789
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 2 | ||||
-rw-r--r-- | offapi/com/sun/star/chart2/DataTable.idl | 48 | ||||
-rw-r--r-- | offapi/com/sun/star/chart2/Diagram.idl | 6 | ||||
-rw-r--r-- | offapi/com/sun/star/chart2/XDataTable.idl | 28 | ||||
-rw-r--r-- | offapi/com/sun/star/chart2/XDiagram.idl | 9 |
5 files changed, 87 insertions, 6 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index e8163212b5ea..fb3be9253e51 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -646,6 +646,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,com/sun/star/chart2,\ DataPoint \ DataPointProperties \ DataSeries \ + DataTable \ Diagram \ ErrorBar \ GridProperties \ @@ -2034,6 +2035,7 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,com/sun/star/chart2,\ XDataPointCustomLabelField \ XDataSeries \ XDataSeriesContainer \ + XDataTable \ XDefaultSizeTransmitter \ XDiagram \ XDiagramProvider \ diff --git a/offapi/com/sun/star/chart2/DataTable.idl b/offapi/com/sun/star/chart2/DataTable.idl new file mode 100644 index 000000000000..5e75d98bd1d4 --- /dev/null +++ b/offapi/com/sun/star/chart2/DataTable.idl @@ -0,0 +1,48 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +module com +{ +module sun +{ +module star +{ +module chart2 +{ + +/** Describes a data table for a Diagram. + @since LibreOffice 7.5 + */ +service DataTable +{ + service com::sun::star::beans::PropertySet; + service com::sun::star::drawing::FillProperties; + service com::sun::star::drawing::LineProperties; + + /** The interface for registering and removing data table entries. + */ + interface ::com::sun::star::chart2::XDataTable; + + /** Show the horizontal border of the data table */ + [optional, property] boolean HBorder; + + /** Show the vertical border of the data table */ + [optional, property] boolean VBorder; + + /** Show the outline of the data table */ + [optional, property] boolean Outline; + + /** Show the legend keys in the data table */ + [optional, property] boolean Keys; + +}; + +}; }; }; }; // com::sun::star::chart2 + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/chart2/Diagram.idl b/offapi/com/sun/star/chart2/Diagram.idl index b96beca68838..025d821f83f5 100644 --- a/offapi/com/sun/star/chart2/Diagram.idl +++ b/offapi/com/sun/star/chart2/Diagram.idl @@ -82,12 +82,6 @@ service Diagram [optional, property] boolean RightAngledAxes; - /** Chart Datatable flags - */ - [optional, property] boolean DataTableHBorder; - [optional, property] boolean DataTableVBorder; - [optional, property] boolean DataTableOutline; - /** Perspective of 3D charts ( [0,100] ). */ [optional, property] long Perspective; diff --git a/offapi/com/sun/star/chart2/XDataTable.idl b/offapi/com/sun/star/chart2/XDataTable.idl new file mode 100644 index 000000000000..8431a586cf34 --- /dev/null +++ b/offapi/com/sun/star/chart2/XDataTable.idl @@ -0,0 +1,28 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +module com +{ +module sun +{ +module star +{ +module chart2 +{ + +/** Interface for the data table of a diagram + @since LibreOffice 7.5 + */ +interface XDataTable : ::com::sun::star::uno::XInterface +{ +}; + +}; }; }; }; // com::sun::star::chart2 + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/offapi/com/sun/star/chart2/XDiagram.idl b/offapi/com/sun/star/chart2/XDiagram.idl index 7cae101aa3d7..5020c608f196 100644 --- a/offapi/com/sun/star/chart2/XDiagram.idl +++ b/offapi/com/sun/star/chart2/XDiagram.idl @@ -81,6 +81,15 @@ interface XDiagram : ::com::sun::star::uno::XInterface */ void setDiagramData( [in] com::sun::star::chart2::data::XDataSource xDataSource, [in] sequence< com::sun::star::beans::PropertyValue > aArguments ); + + + /** returns the data table + */ + XDataTable getDataTable(); + + /** sets a new data table. + */ + void setDataTable([in] XDataTable xDataTable); }; } ; // chart2 |