diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-16 09:38:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-21 14:24:53 +0000 |
commit | cde0f27c84599d0d9894148e510254749f7e2784 (patch) | |
tree | a39d0de78ddf10a51311be3d7704e96ea6a24596 /chart2/source/inc/Diagram.hxx | |
parent | d82a734c07b85cbd7861699b7fa6d3ebbb3122f2 (diff) |
move getTemplate inside chart2::Diagram
Change-Id: I05da4e4a9acb2683633eda42cf18d740913c2e37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149180
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/inc/Diagram.hxx')
-rw-r--r-- | chart2/source/inc/Diagram.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chart2/source/inc/Diagram.hxx b/chart2/source/inc/Diagram.hxx index c24d10af9d83..71816aa67f7e 100644 --- a/chart2/source/inc/Diagram.hxx +++ b/chart2/source/inc/Diagram.hxx @@ -42,6 +42,8 @@ namespace chart class Axis; class BaseCoordinateSystem; class ChartType; +class ChartTypeManager; +class ChartTypeTemplate; class DataSeries; class Legend; class DataTable; @@ -315,6 +317,22 @@ public: */ bool getVertical( bool& rbOutFoundResult, bool& rbOutAmbiguousResult ); + struct tTemplateWithServiceName { + rtl::Reference< ::chart::ChartTypeTemplate > xChartTypeTemplate; + OUString sServiceName; + }; + + /** tries to find a template in the chart-type manager that matches this + diagram. + + @return + A pair containing a template with the correct properties set as + first entry and the service name of the templates second entry. If + no template was found both elements are empty. + */ + tTemplateWithServiceName + getTemplate(const rtl::Reference< ::chart::ChartTypeManager > & xChartTypeManager); + private: // ____ XModifyListener ____ virtual void SAL_CALL modified( |