summaryrefslogtreecommitdiff
path: root/chart2/source/controller/main/ChartController_Insert.cxx
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-11-04 11:37:45 +0000
committerBjörn Milcke <bm@openoffice.org>2003-11-04 11:37:45 +0000
commit0abb7b09e6e99fdc90f757539de35cf25e078bd6 (patch)
tree39e6e3c06fe7017a1c7615a84153d9caa319cf33 /chart2/source/controller/main/ChartController_Insert.cxx
parent9de8c0e5a4ad04634389fa45e769e1591c861ce0 (diff)
ChartType concept: the template creates the diagram. To determine with which
template an existing Diagram was probably created, the data series tree is searched and according to the result the template is guessed. OldApi chart type support SubGrid added
Diffstat (limited to 'chart2/source/controller/main/ChartController_Insert.cxx')
-rw-r--r--chart2/source/controller/main/ChartController_Insert.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx
index b29f63cad..e1a9b1df5 100644
--- a/chart2/source/controller/main/ChartController_Insert.cxx
+++ b/chart2/source/controller/main/ChartController_Insert.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ChartController_Insert.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: iha $ $Date: 2003-10-28 15:54:47 $
+ * last change: $Author: bm $ $Date: 2003-11-04 12:37:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -75,9 +75,6 @@
#include "MultipleChartConverters.hxx"
#include "LegendItemConverter.hxx"
-//maybe superfluous in future:
-#include "ChartTypeItemConverter.hxx"
-
#ifndef _DRAFTS_COM_SUN_STAR_CHART2_XAXISCONTAINER_HPP_
#include <drafts/com/sun/star/chart2/XAxisContainer.hpp>
#endif
@@ -522,8 +519,9 @@ void SAL_CALL ChartController::executeDispatch_InsertStatistic()
uno::Reference< beans::XPropertySet > xProp=NULL;
//@todo use correct ItemConverter if available
- wrapper::ChartTypeItemConverter aItemConverter( xProp, m_pDrawModelWrapper->GetItemPool() );
- SfxItemSet aItemSet = aItemConverter.CreateEmptyItemSet();
+// wrapper::ChartTypeItemConverter aItemConverter( NULL, xProp, m_pDrawModelWrapper->GetItemPool() );
+// SfxItemSet aItemSet = aItemConverter.CreateEmptyItemSet();
+ SfxItemSet aItemSet( m_pDrawModelWrapper->GetItemPool(), 1, 2 );
//aItemConverter.FillItemSet( aItemSet );
//prepare and open dialog
@@ -531,10 +529,11 @@ void SAL_CALL ChartController::executeDispatch_InsertStatistic()
SchDataStatisticsDlg aDlg( pParent, aItemSet);
if( aDlg.Execute() == RET_OK )
{
- SfxItemSet aOutItemSet = aItemConverter.CreateEmptyItemSet();
+// SfxItemSet aOutItemSet = aItemConverter.CreateEmptyItemSet();
+ SfxItemSet aOutItemSet( m_pDrawModelWrapper->GetItemPool(), 1, 2 );
aDlg.GetAttr( aOutItemSet );
- bChanged = aItemConverter.ApplyItemSet( aOutItemSet );//model should be changed now
+// bChanged = aItemConverter.ApplyItemSet( aOutItemSet );//model should be changed now
}
}
catch( uno::RuntimeException& e)