merge the formfield patch from ooo-build
[ooovba.git] / reportdesign / source / ui / inc / DataProvider.hxx
blob5d2bc107b4f0ca45ed33b5ab426c7edeba589096
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: DataProvider.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef RPT_DATAPROVIDER_HXX
32 #define RPT_DATAPROVIDER_HXX
34 #include <svtools/lstner.hxx>
35 #include <com/sun/star/chart2/data/XDataProvider.hpp>
36 #include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>
37 #include <com/sun/star/chart2/data/XDataSource.hpp>
38 #include <com/sun/star/chart2/data/XDataSequence.hpp>
39 #include <com/sun/star/chart2/data/XTextualDataSequence.hpp>
40 #include <com/sun/star/chart2/data/XNumericalDataSequence.hpp>
41 #include <com/sun/star/chart2/data/XLabeledDataSequence.hpp>
42 #include <com/sun/star/chart2/data/DataSequenceRole.hpp>
43 #include <com/sun/star/lang/XServiceInfo.hpp>
44 #include <com/sun/star/beans/XPropertySet.hpp>
45 #include <com/sun/star/util/XCloneable.hpp>
46 #include <com/sun/star/util/XModifyBroadcaster.hpp>
47 // #ifndef _COM_SUN_STAR_LANG_XUNOTUNNEL_HPP_
48 // #include <com/sun/star/lang/XUnoTunnel.hpp>
49 // #endif
50 #include <cppuhelper/implbase3.hxx>
51 #include <rtl/ustring.hxx>
52 #include <svtools/itemprop.hxx>
54 #include <map>
55 #include <list>
57 // DataProvider ==============================================================
58 class DatabaseDataProvider : public
59 ::cppu::WeakImplHelper3<
60 ::com::sun::star::chart2::data::XDataProvider,
61 ::com::sun::star::chart2::data::XRangeXMLConversion,
62 ::com::sun::star::lang::XServiceInfo>,
63 SfxListener
65 public:
67 explicit DatabaseDataProvider( ScDocument* pDoc );
68 virtual ~DatabaseDataProvider();
70 private:
71 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
73 // XDataProvider ---------------------------------------------------------
75 virtual ::sal_Bool SAL_CALL createDataSourcePossible(
76 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments )
77 throw (::com::sun::star::uno::RuntimeException);
79 virtual ::com::sun::star::uno::Reference<
80 ::com::sun::star::chart2::data::XDataSource > SAL_CALL createDataSource(
81 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments )
82 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
84 virtual ::com::sun::star::uno::Sequence<
85 ::com::sun::star::beans::PropertyValue > SAL_CALL detectArguments(
86 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource >& xDataSource )
87 throw (::com::sun::star::uno::RuntimeException);
89 virtual ::sal_Bool SAL_CALL createDataSequenceByRangeRepresentationPossible(
90 const ::rtl::OUString& aRangeRepresentation )
91 throw (::com::sun::star::uno::RuntimeException);
93 virtual ::com::sun::star::uno::Reference<
94 ::com::sun::star::chart2::data::XDataSequence > SAL_CALL createDataSequenceByRangeRepresentation(
95 const ::rtl::OUString& aRangeRepresentation )
96 throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
98 virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XRangeSelection > SAL_CALL getRangeSelection()
99 throw (::com::sun::star::uno::RuntimeException);
101 /* virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormatsSupplier > SAL_CALL getNumberFormatsSupplier()
102 throw (::com::sun::star::uno::RuntimeException);*/
104 // XRangeXMLConversion ---------------------------------------------------
106 virtual ::rtl::OUString SAL_CALL convertRangeToXML( const ::rtl::OUString& sRangeRepresentation )
107 throw ( ::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IllegalArgumentException );
109 virtual ::rtl::OUString SAL_CALL convertRangeFromXML( const ::rtl::OUString& sXMLRange )
110 throw ( ::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IllegalArgumentException );
112 // XServiceInfo ----------------------------------------------------------
114 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(
115 ::com::sun::star::uno::RuntimeException);
117 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString&
118 rServiceName) throw( ::com::sun::star::uno::RuntimeException);
120 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
121 getSupportedServiceNames() throw(
122 ::com::sun::star::uno::RuntimeException);
123 private:
127 // DataSource ================================================================
129 class ScChart2DataSource : public
130 ::cppu::WeakImplHelper2<
131 ::com::sun::star::chart2::data::XDataSource,
132 ::com::sun::star::lang::XServiceInfo>,
133 SfxListener
135 public:
137 explicit ScChart2DataSource( ScDocument* pDoc);
138 virtual ~ScChart2DataSource();
139 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
141 // XDataSource -----------------------------------------------------------
143 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference<
144 ::com::sun::star::chart2::data::XLabeledDataSequence > > SAL_CALL
145 getDataSequences() throw (::com::sun::star::uno::RuntimeException);
147 // XServiceInfo ----------------------------------------------------------
149 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(
150 ::com::sun::star::uno::RuntimeException);
152 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString&
153 rServiceName) throw( ::com::sun::star::uno::RuntimeException);
155 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
156 getSupportedServiceNames() throw(
157 ::com::sun::star::uno::RuntimeException);
159 // implementation
161 void AddLabeledSequence(const com::sun::star::uno::Reference < com::sun::star::chart2::data::XLabeledDataSequence >& xNew);
163 private:
165 ScDocument* m_pDocument;
166 typedef std::list < com::sun::star::uno::Reference< com::sun::star::chart2::data::XLabeledDataSequence > > LabeledList;
167 LabeledList m_aLabeledSequences;
172 // LabeledDataSequence =======================================================
174 class ScChart2LabeledDataSequence : public
175 ::cppu::WeakImplHelper4<
176 ::com::sun::star::chart2::data::XLabeledDataSequence,
177 ::com::sun::star::util::XCloneable,
178 ::com::sun::star::util::XModifyBroadcaster,
179 ::com::sun::star::lang::XServiceInfo >,
180 SfxListener
182 public:
184 explicit ScChart2LabeledDataSequence( ScDocument* pDoc );
185 virtual ~ScChart2LabeledDataSequence();
187 // SfxListener -----------------------------------------------------------
189 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
191 // XLabeledDataSequence --------------------------------------------------
193 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL getValues()
194 throw (::com::sun::star::uno::RuntimeException);
195 virtual void SAL_CALL setValues(
196 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSequence )
197 throw (::com::sun::star::uno::RuntimeException);
198 virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL getLabel()
199 throw (::com::sun::star::uno::RuntimeException);
200 virtual void SAL_CALL setLabel(
201 const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSequence )
202 throw (::com::sun::star::uno::RuntimeException);
204 // XCloneable ------------------------------------------------------------
206 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
207 throw (::com::sun::star::uno::RuntimeException);
209 // XModifyBroadcaster ----------------------------------------------------
211 virtual void SAL_CALL addModifyListener(
212 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
213 throw (::com::sun::star::uno::RuntimeException);
214 virtual void SAL_CALL removeModifyListener(
215 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
216 throw (::com::sun::star::uno::RuntimeException);
218 // XServiceInfo ----------------------------------------------------------
220 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(
221 ::com::sun::star::uno::RuntimeException);
222 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString&
223 rServiceName) throw( ::com::sun::star::uno::RuntimeException);
224 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
225 getSupportedServiceNames() throw(
226 ::com::sun::star::uno::RuntimeException);
228 private:
229 ::com::sun::star::uno::Reference<
230 ::com::sun::star::chart2::data::XDataSequence > m_aData;
231 ::com::sun::star::uno::Reference<
232 ::com::sun::star::chart2::data::XDataSequence > m_aLabel;
233 ScDocument* m_pDocument;
236 // DataSequence ==============================================================
238 class ScChart2DataSequence : public
239 ::cppu::WeakImplHelper7<
240 ::com::sun::star::chart2::data::XDataSequence,
241 ::com::sun::star::chart2::data::XTextualDataSequence,
242 ::com::sun::star::chart2::data::XNumericalDataSequence,
243 ::com::sun::star::util::XCloneable,
244 ::com::sun::star::util::XModifyBroadcaster,
245 ::com::sun::star::beans::XPropertySet,
246 // ::com::sun::star::lang::XUnoTunnel,
247 ::com::sun::star::lang::XServiceInfo>,
248 SfxListener
250 public:
252 explicit ScChart2DataSequence( ScDocument* pDoc,
253 const com::sun::star::uno::Reference< com::sun::star::chart2::data::XDataProvider >& xDP,
254 const ScRangeListRef& rRangeList );
255 virtual ~ScChart2DataSequence();
256 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
258 // XDataSequence ---------------------------------------------------------
260 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >
261 SAL_CALL getData() throw (::com::sun::star::uno::RuntimeException);
262 virtual ::rtl::OUString SAL_CALL getSourceRangeRepresentation()
263 throw (::com::sun::star::uno::RuntimeException);
264 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >
265 SAL_CALL generateLabel(::com::sun::star::chart2::data::LabelOrigin nOrigin)
266 throw (::com::sun::star::uno::RuntimeException);
267 virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex( ::sal_Int32 nIndex )
268 throw (::com::sun::star::lang::IndexOutOfBoundsException,
269 ::com::sun::star::uno::RuntimeException);
271 // XNumericalDataSequence --------------------------------------------------
273 virtual ::com::sun::star::uno::Sequence< double >
274 SAL_CALL getNumericalData( ) throw (::com::sun::star::uno::RuntimeException);
276 // XTextualDataSequence --------------------------------------------------
278 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >
279 SAL_CALL getTextualData( ) throw (::com::sun::star::uno::RuntimeException);
281 // XPropertySet ----------------------------------------------------------
283 virtual ::com::sun::star::uno::Reference<
284 ::com::sun::star::beans::XPropertySetInfo> SAL_CALL
285 getPropertySetInfo() throw( ::com::sun::star::uno::RuntimeException);
287 virtual void SAL_CALL setPropertyValue(
288 const ::rtl::OUString& rPropertyName,
289 const ::com::sun::star::uno::Any& rValue)
290 throw( ::com::sun::star::beans::UnknownPropertyException,
291 ::com::sun::star::beans::PropertyVetoException,
292 ::com::sun::star::lang::IllegalArgumentException,
293 ::com::sun::star::lang::WrappedTargetException,
294 ::com::sun::star::uno::RuntimeException);
296 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
297 const ::rtl::OUString& rPropertyName)
298 throw( ::com::sun::star::beans::UnknownPropertyException,
299 ::com::sun::star::lang::WrappedTargetException,
300 ::com::sun::star::uno::RuntimeException);
302 virtual void SAL_CALL addPropertyChangeListener(
303 const ::rtl::OUString& rPropertyName,
304 const ::com::sun::star::uno::Reference<
305 ::com::sun::star::beans::XPropertyChangeListener>& xListener)
306 throw( ::com::sun::star::beans::UnknownPropertyException,
307 ::com::sun::star::lang::WrappedTargetException,
308 ::com::sun::star::uno::RuntimeException);
310 virtual void SAL_CALL removePropertyChangeListener(
311 const ::rtl::OUString& rPropertyName,
312 const ::com::sun::star::uno::Reference<
313 ::com::sun::star::beans::XPropertyChangeListener>& rListener)
314 throw( ::com::sun::star::beans::UnknownPropertyException,
315 ::com::sun::star::lang::WrappedTargetException,
316 ::com::sun::star::uno::RuntimeException);
318 virtual void SAL_CALL addVetoableChangeListener(
319 const ::rtl::OUString& rPropertyName,
320 const ::com::sun::star::uno::Reference<
321 ::com::sun::star::beans::XVetoableChangeListener>& rListener)
322 throw( ::com::sun::star::beans::UnknownPropertyException,
323 ::com::sun::star::lang::WrappedTargetException,
324 ::com::sun::star::uno::RuntimeException);
326 virtual void SAL_CALL removeVetoableChangeListener(
327 const ::rtl::OUString& rPropertyName,
328 const ::com::sun::star::uno::Reference<
329 ::com::sun::star::beans::XVetoableChangeListener>& rListener)
330 throw( ::com::sun::star::beans::UnknownPropertyException,
331 ::com::sun::star::lang::WrappedTargetException,
332 ::com::sun::star::uno::RuntimeException);
334 // XCloneable ------------------------------------------------------------
336 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
337 throw (::com::sun::star::uno::RuntimeException);
339 // XModifyBroadcaster ----------------------------------------------------
341 virtual void SAL_CALL addModifyListener(
342 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
343 throw (::com::sun::star::uno::RuntimeException);
344 virtual void SAL_CALL removeModifyListener(
345 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
346 throw (::com::sun::star::uno::RuntimeException);
348 // XServiceInfo ----------------------------------------------------------
350 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(
351 ::com::sun::star::uno::RuntimeException);
353 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString&
354 rServiceName) throw( ::com::sun::star::uno::RuntimeException);
356 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
357 getSupportedServiceNames() throw(
358 ::com::sun::star::uno::RuntimeException);
360 // XUnoTunnel ------------------------------------------------------------
362 // virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
363 // sal_Int8 >& aIdentifier )
364 // throw(::com::sun::star::uno::RuntimeException);
366 // static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
367 // static ScChart2DataSequence* getImplementation( const com::sun::star::uno::Reference<
368 // com::sun::star::uno::XInterface> xObj );
370 // Implementation --------------------------------------------------------
372 ScRangeListRef GetRangeList() { return m_xRanges; }
374 void RefChanged();
375 DECL_LINK( ValueListenerHdl, SfxHint* );
377 private:
379 // properties
380 ::com::sun::star::chart2::data::DataSequenceRole m_aRole;
381 sal_Bool m_bHidden;
382 // internals
383 ScRangeListRef m_xRanges;
384 sal_Int64 m_nObjectId;
385 ScDocument* m_pDocument;
386 com::sun::star::uno::Reference < com::sun::star::chart2::data::XDataProvider > m_xDataProvider;
387 SfxItemPropertySet m_aPropSet;
389 ScLinkListener* m_pValueListener;
390 sal_Bool m_bGotDataChangedHint;
391 XModifyListenerArr_Impl m_aValueListeners;
394 // DataSequence ==============================================================
396 class ScChart2EmptyDataSequence : public
397 ::cppu::WeakImplHelper6<
398 ::com::sun::star::chart2::data::XDataSequence,
399 ::com::sun::star::chart2::data::XTextualDataSequence,
400 ::com::sun::star::util::XCloneable,
401 ::com::sun::star::util::XModifyBroadcaster,
402 ::com::sun::star::beans::XPropertySet,
403 // ::com::sun::star::lang::XUnoTunnel,
404 ::com::sun::star::lang::XServiceInfo>,
405 SfxListener
407 public:
409 explicit ScChart2EmptyDataSequence( ScDocument* pDoc,
410 const com::sun::star::uno::Reference< com::sun::star::chart2::data::XDataProvider >& xDP,
411 const ScRangeListRef& rRangeList, sal_Bool bColumn );
412 virtual ~ScChart2EmptyDataSequence();
413 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
415 // XDataSequence ---------------------------------------------------------
417 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >
418 SAL_CALL getData() throw (::com::sun::star::uno::RuntimeException);
419 virtual ::rtl::OUString SAL_CALL getSourceRangeRepresentation()
420 throw (::com::sun::star::uno::RuntimeException);
421 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >
422 SAL_CALL generateLabel(::com::sun::star::chart2::data::LabelOrigin nOrigin)
423 throw (::com::sun::star::uno::RuntimeException);
424 virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex( ::sal_Int32 nIndex )
425 throw (::com::sun::star::lang::IndexOutOfBoundsException,
426 ::com::sun::star::uno::RuntimeException);
428 // XTextualDataSequence --------------------------------------------------
430 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString >
431 SAL_CALL getTextualData( ) throw (::com::sun::star::uno::RuntimeException);
433 // XPropertySet ----------------------------------------------------------
435 virtual ::com::sun::star::uno::Reference<
436 ::com::sun::star::beans::XPropertySetInfo> SAL_CALL
437 getPropertySetInfo() throw( ::com::sun::star::uno::RuntimeException);
439 virtual void SAL_CALL setPropertyValue(
440 const ::rtl::OUString& rPropertyName,
441 const ::com::sun::star::uno::Any& rValue)
442 throw( ::com::sun::star::beans::UnknownPropertyException,
443 ::com::sun::star::beans::PropertyVetoException,
444 ::com::sun::star::lang::IllegalArgumentException,
445 ::com::sun::star::lang::WrappedTargetException,
446 ::com::sun::star::uno::RuntimeException);
448 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
449 const ::rtl::OUString& rPropertyName)
450 throw( ::com::sun::star::beans::UnknownPropertyException,
451 ::com::sun::star::lang::WrappedTargetException,
452 ::com::sun::star::uno::RuntimeException);
454 virtual void SAL_CALL addPropertyChangeListener(
455 const ::rtl::OUString& rPropertyName,
456 const ::com::sun::star::uno::Reference<
457 ::com::sun::star::beans::XPropertyChangeListener>& xListener)
458 throw( ::com::sun::star::beans::UnknownPropertyException,
459 ::com::sun::star::lang::WrappedTargetException,
460 ::com::sun::star::uno::RuntimeException);
462 virtual void SAL_CALL removePropertyChangeListener(
463 const ::rtl::OUString& rPropertyName,
464 const ::com::sun::star::uno::Reference<
465 ::com::sun::star::beans::XPropertyChangeListener>& rListener)
466 throw( ::com::sun::star::beans::UnknownPropertyException,
467 ::com::sun::star::lang::WrappedTargetException,
468 ::com::sun::star::uno::RuntimeException);
470 virtual void SAL_CALL addVetoableChangeListener(
471 const ::rtl::OUString& rPropertyName,
472 const ::com::sun::star::uno::Reference<
473 ::com::sun::star::beans::XVetoableChangeListener>& rListener)
474 throw( ::com::sun::star::beans::UnknownPropertyException,
475 ::com::sun::star::lang::WrappedTargetException,
476 ::com::sun::star::uno::RuntimeException);
478 virtual void SAL_CALL removeVetoableChangeListener(
479 const ::rtl::OUString& rPropertyName,
480 const ::com::sun::star::uno::Reference<
481 ::com::sun::star::beans::XVetoableChangeListener>& rListener)
482 throw( ::com::sun::star::beans::UnknownPropertyException,
483 ::com::sun::star::lang::WrappedTargetException,
484 ::com::sun::star::uno::RuntimeException);
486 // XCloneable ------------------------------------------------------------
488 virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
489 throw (::com::sun::star::uno::RuntimeException);
491 // XModifyBroadcaster ----------------------------------------------------
493 virtual void SAL_CALL addModifyListener(
494 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
495 throw (::com::sun::star::uno::RuntimeException);
496 virtual void SAL_CALL removeModifyListener(
497 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener )
498 throw (::com::sun::star::uno::RuntimeException);
500 // XServiceInfo ----------------------------------------------------------
502 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(
503 ::com::sun::star::uno::RuntimeException);
505 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString&
506 rServiceName) throw( ::com::sun::star::uno::RuntimeException);
508 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL
509 getSupportedServiceNames() throw(
510 ::com::sun::star::uno::RuntimeException);
512 // XUnoTunnel ------------------------------------------------------------
514 // virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
515 // sal_Int8 >& aIdentifier )
516 // throw(::com::sun::star::uno::RuntimeException);
518 // static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
519 // static ScChart2DataSequence* getImplementation( const com::sun::star::uno::Reference<
520 // com::sun::star::uno::XInterface> xObj );
522 // Implementation --------------------------------------------------------
524 ScRangeListRef GetRangeList() { return m_xRanges; }
526 private:
528 // properties
529 ::com::sun::star::chart2::data::DataSequenceRole m_aRole;
530 sal_Bool m_bHidden;
531 // internals
532 ScRangeListRef m_xRanges;
533 ScDocument* m_pDocument;
534 com::sun::star::uno::Reference < com::sun::star::chart2::data::XDataProvider > m_xDataProvider;
535 SfxItemPropertySet m_aPropSet;
536 sal_Bool m_bColumn; // defines the orientation to create the right labels
540 #endif // RPT_DATAPROVIDER_HXX