From f03a176c96be54bea1bd515b5726658f596a6154 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Tue, 1 Jul 2008 15:35:39 +0000 Subject: [PATCH] INTEGRATION: CWS dr62 (1.10.6); FILE MERGED 2008/06/17 15:17:54 dr 1.10.6.2: RESYNC: (1.10-1.11); FILE MERGED 2008/06/13 07:07:07 iha 1.10.6.1: #i82614# Copy sheet with scatter chart to new document may result in wrong data --- chart2/source/model/main/ChartModel.hxx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/chart2/source/model/main/ChartModel.hxx b/chart2/source/model/main/ChartModel.hxx index 12f7f25068c6..339f754ec04b 100644 --- a/chart2/source/model/main/ChartModel.hxx +++ b/chart2/source/model/main/ChartModel.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ChartModel.hxx,v $ - * $Revision: 1.11 $ + * $Revision: 1.12 $ * * This file is part of OpenOffice.org. * @@ -53,6 +53,7 @@ #include #include #include +#include // public API #include @@ -66,9 +67,9 @@ #include #include -#if ! defined(INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_19) -#define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_19 -#define COMPHELPER_IMPLBASE_INTERFACE_NUMBER 19 +#if ! defined(INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_20) +#define INCLUDED_COMPHELPER_IMPLBASE_VAR_HXX_20 +#define COMPHELPER_IMPLBASE_INTERFACE_NUMBER 20 #include "comphelper/implbase_var.hxx" #endif #include @@ -90,7 +91,7 @@ namespace impl class ImplChartModel; // Note: needed for queryInterface (if it calls the base-class implementation) -typedef ::comphelper::WeakImplHelper19< +typedef ::comphelper::WeakImplHelper20< // ::com::sun::star::frame::XModel //comprehends XComponent (required interface), base of XChartDocument ::com::sun::star::util::XCloseable //comprehends XCloseBroadcaster ,::com::sun::star::frame::XStorable2 //(extension of XStorable) @@ -121,6 +122,7 @@ typedef ::comphelper::WeakImplHelper19< ,::com::sun::star::datatransfer::XTransferable ,::com::sun::star::chart2::XUndoSupplier ,::com::sun::star::document::XDocumentPropertiesSupplier + ,::com::sun::star::chart2::data::XDataSource > ChartModel_Base; } @@ -638,6 +640,10 @@ public: // ____ XUndoSupplier ____ virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XUndoManager > SAL_CALL getUndoManager() throw (::com::sun::star::uno::RuntimeException); + + // ____ XDataSource ____ allows access to the curently used data and data ranges + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences() + throw (::com::sun::star::uno::RuntimeException); }; } // namespace chart