diff options
Diffstat (limited to 'chart2/source/tools/InternalDataProvider.cxx')
-rw-r--r-- | chart2/source/tools/InternalDataProvider.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index 22f3e84a5802..3e1f8372a7b2 100644 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -32,6 +32,7 @@ #include <Diagram.hxx> #include <ExplicitCategoriesProvider.hxx> #include <BaseCoordinateSystem.hxx> +#include <DataBrowserModel.hxx> #include <DataSeries.hxx> #include <com/sun/star/chart2/data/XDataSequence.hpp> @@ -298,6 +299,7 @@ InternalDataProvider::InternalDataProvider( { if (!xModel.is()) return; + m_xChartModel = xModel.get(); try { rtl::Reference< Diagram > xDiagram( xModel->getFirstChartDiagram() ); @@ -393,6 +395,11 @@ InternalDataProvider::InternalDataProvider( const InternalDataProvider & rOther InternalDataProvider::~InternalDataProvider() {} +void InternalDataProvider::setChartModel(ChartModel* pChartModel) +{ + m_xChartModel = pChartModel; +} + void InternalDataProvider::addDataSequenceToMap( const OUString & rRangeRepresentation, const Reference< chart2::data::XDataSequence > & xSequence ) @@ -1137,6 +1144,14 @@ void SAL_CALL InternalDataProvider::registerDataSequenceForChanges( const Refere addDataSequenceToMap( xSeq->getSourceRangeRepresentation(), xSeq ); } +void SAL_CALL InternalDataProvider::insertDataSeries(::sal_Int32 nAfterIndex) +{ + // call the dialog insertion + rtl::Reference<ChartModel> xChartModel(m_xChartModel); + DataBrowserModel* pDBM = new DataBrowserModel(xChartModel); + pDBM->insertDataSeries(nAfterIndex); +} + // ____ XRangeXMLConversion ____ OUString SAL_CALL InternalDataProvider::convertRangeToXML( const OUString& aRangeRepresentation ) { |