summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/DialogModel.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-02 08:04:03 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-29 08:09:30 +0100
commit750b46025ca276c81ac535ad6741f36bfc88327b (patch)
tree8a196c33bd9b9e0a382d3d711c0c8b8f505a3902 /chart2/source/controller/dialogs/DialogModel.cxx
parent55656ee2e88b7a79a265f43fc3746a7e2186301e (diff)
give up with the nice solutions and enjoy the ugly hack
I was always hitting a corner case so it seems that this need some drastic measures. Change-Id: I3fdd278b9c3fed178513d653ef24ad8adf20cbd2
Diffstat (limited to 'chart2/source/controller/dialogs/DialogModel.cxx')
-rw-r--r--chart2/source/controller/dialogs/DialogModel.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index c6d4f84ff146..0285548da4f3 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -716,6 +716,11 @@ bool DialogModel::setData(
return true;
}
+void DialogModel::setTimeBasedRange(sal_Int32 nStart, sal_Int32 nEnd) const
+{
+ getModel().setTimeBasedRange(nStart, nEnd);
+}
+
OUString DialogModel::ConvertRoleFromInternalToUI( const OUString & rRoleString )
{
return lcl_ConvertRole( rRoleString, true );
@@ -820,6 +825,13 @@ sal_Int32 DialogModel::countSeries() const
return ::std::accumulate( aCnt.begin(), aCnt.end(), 0, lcl_addSeriesNumber());
}
+ChartModel& DialogModel::getModel() const
+{
+ uno::Reference< frame::XModel > xModel = getChartModel();
+ ChartModel* pModel = dynamic_cast<ChartModel*>(xModel.get());
+ return *pModel;
+}
+
} // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */