summaryrefslogtreecommitdiff
path: root/chart2/source/controller/itemsetwrapper/MultipleChartConverters.cxx
diff options
context:
space:
mode:
authorBjörn Milcke <bm@openoffice.org>2003-12-10 15:51:53 +0000
committerBjörn Milcke <bm@openoffice.org>2003-12-10 15:51:53 +0000
commitd7c8b60bb0de91f69381f549979017753471b001 (patch)
treee2dede0ef62d651970c063bf0a0d76bfbb8fac4c /chart2/source/controller/itemsetwrapper/MultipleChartConverters.cxx
parent9745b60069b47d3a5e78c38a5ae221af13b984f3 (diff)
statistics dialog implemented
Diffstat (limited to 'chart2/source/controller/itemsetwrapper/MultipleChartConverters.cxx')
-rw-r--r--chart2/source/controller/itemsetwrapper/MultipleChartConverters.cxx31
1 files changed, 29 insertions, 2 deletions
diff --git a/chart2/source/controller/itemsetwrapper/MultipleChartConverters.cxx b/chart2/source/controller/itemsetwrapper/MultipleChartConverters.cxx
index 68b919d67fd2..1198657314da 100644
--- a/chart2/source/controller/itemsetwrapper/MultipleChartConverters.cxx
+++ b/chart2/source/controller/itemsetwrapper/MultipleChartConverters.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: MultipleChartConverters.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: bm $ $Date: 2003-11-25 13:07:42 $
+ * last change: $Author: bm $ $Date: 2003-12-10 16:51:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -63,6 +63,7 @@
#include "SchSfxItemIds.hxx"
#include "SchWhichPairs.hxx"
#include "AxisItemConverter.hxx"
+#include "StatisticsItemConverter.hxx"
#include "GraphicPropertyItemConverter.hxx"
#include "DataPointItemConverter.hxx"
#include "ChartModelHelper.hxx"
@@ -199,5 +200,31 @@ const USHORT * AllDataLabelItemConverter::GetWhichPairs() const
//-----------------------------------------------------------------------------
+AllSeriesStatisticsConverter::AllSeriesStatisticsConverter(
+ const uno::Reference< frame::XModel > & xChartModel,
+ SfxItemPool& rItemPool )
+ : MultipleItemConverter( rItemPool )
+{
+ ::std::vector< uno::Reference< chart2::XDataSeries > > aSeriesList(
+ ::chart::ChartModelHelper::getDataSeries( xChartModel ));
+
+ ::std::vector< uno::Reference< chart2::XDataSeries > >::const_iterator aIt;
+ for( aIt = aSeriesList.begin(); aIt != aSeriesList.end(); ++aIt )
+ {
+ uno::Reference< beans::XPropertySet > xObjectProperties( *aIt, uno::UNO_QUERY);
+ m_aConverters.push_back( new ::chart::wrapper::StatisticsItemConverter(
+ xObjectProperties, rItemPool ));
+ }
+}
+
+AllSeriesStatisticsConverter::~AllSeriesStatisticsConverter()
+{}
+
+const USHORT * AllSeriesStatisticsConverter::GetWhichPairs() const
+{
+ // must span all used items!
+ return nStatWhichPairs;
+}
+
} // namespace wrapper
} // namespace chart