summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/main/ChartController.cxx
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-11-04 14:35:09 +0000
committerBjörn Milcke <bm@openoffice.org>2003-11-04 14:35:09 +0000
commitc7ac9f7b4d48a8bae7242229a5476f610437f3c3 (patch)
tree2add93f300032e72df3053cbbc1d56f672049b57 /chart2/source/controller/main/ChartController.cxx
parentmark handles for series selection (diff)
downloadcore-c7ac9f7b4d48a8bae7242229a5476f610437f3c3.tar.gz
core-c7ac9f7b4d48a8bae7242229a5476f610437f3c3.zip
DiagramHelper::changeDiagram
Diffstat (limited to 'chart2/source/controller/main/ChartController.cxx')
-rw-r--r--chart2/source/controller/main/ChartController.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 92aed9c80864..95b65bd1fbcd 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ChartController.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: bm $ $Date: 2003-11-04 13:28:39 $
+ * last change: $Author: bm $ $Date: 2003-11-04 15:35:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,6 +72,7 @@
#include "DrawModelWrapper.hxx"
#include "DrawViewWrapper.hxx"
#include "DataSeriesTreeHelper.hxx"
+#include "DiagramHelper.hxx"
#include "macros.hxx"
@@ -1109,10 +1110,11 @@ void SAL_CALL ChartController::executeDispatch_ChartType()
if( bChanged &&
xTemplate.is() )
{
- xChartDoc->setDiagram(
+ uno::Reference< XDiagram > xNewDia(
xTemplate->createDiagram(
- helper::DataSeriesTreeHelper::getDataSeriesFromDiagram(
- xChartDoc->getDiagram())));
+ helper::DataSeriesTreeHelper::getDataSeriesFromDiagram( xDia )));
+ helper::DiagramHelper::changeDiagram( xDia, xNewDia );
+ xChartDoc->setDiagram( xNewDia );
impl_rebuildView();
}