diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-19 14:07:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-01-19 17:09:21 +0100 |
commit | 4683eaa6f92db03bd0a6ecd401ded51131db7ae6 (patch) | |
tree | 273021d33674a9267f1c1f3164391518be036b93 /chart2/source/controller/dialogs/DataBrowserModel.cxx | |
parent | 93133585b5b52e38defc3162eeb1e7704dceafcb (diff) |
use more concrete types in chart2, ChartTypeTemplate
and return data using a little struct rather than std::pair, to
make the call sites read a little better.
Change-Id: Ieb6fc24e053f50823789167ed0112aa04a083725
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128613
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/dialogs/DataBrowserModel.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/DataBrowserModel.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/DataBrowserModel.cxx b/chart2/source/controller/dialogs/DataBrowserModel.cxx index e3687df5d1dc..f11d2cf856da 100644 --- a/chart2/source/controller/dialogs/DataBrowserModel.cxx +++ b/chart2/source/controller/dialogs/DataBrowserModel.cxx @@ -27,6 +27,7 @@ #include <StatisticsHelper.hxx> #include <ChartTypeHelper.hxx> #include <ChartTypeManager.hxx> +#include <ChartTypeTemplate.hxx> #include <chartview/ExplicitValueProvider.hxx> #include <ExplicitCategoriesProvider.hxx> @@ -772,8 +773,8 @@ void DataBrowserModel::updateFromModel() rtl::Reference< ::chart::ChartTypeManager > xTemplateManager = dynamic_cast<::chart::ChartTypeManager*>( m_xChartDocument->getChartTypeManager().get() ); DiagramHelper::tTemplateWithServiceName aTemplateAndService = DiagramHelper::getTemplateForDiagram( xDiagram, xTemplateManager ); - if( aTemplateAndService.first.is()) - m_apDialogModel->setTemplate( aTemplateAndService.first ); + if( aTemplateAndService.xChartTypeTemplate.is()) + m_apDialogModel->setTemplate( aTemplateAndService.xChartTypeTemplate ); sal_Int32 nHeaderStart = 0; sal_Int32 nHeaderEnd = 0; |