1*b1cdbd2cSJim Jagielski /**************************************************************
2*b1cdbd2cSJim Jagielski  *
3*b1cdbd2cSJim Jagielski  * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski  * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski  * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski  * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski  * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski  * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski  * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski  *
11*b1cdbd2cSJim Jagielski  *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski  *
13*b1cdbd2cSJim Jagielski  * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski  * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski  * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski  * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski  * under the License.
19*b1cdbd2cSJim Jagielski  *
20*b1cdbd2cSJim Jagielski  *************************************************************/
21*b1cdbd2cSJim Jagielski 
22*b1cdbd2cSJim Jagielski 
23*b1cdbd2cSJim Jagielski #ifndef CHART2_INTERNALDATAPROVIDER_HXX
24*b1cdbd2cSJim Jagielski #define CHART2_INTERNALDATAPROVIDER_HXX
25*b1cdbd2cSJim Jagielski 
26*b1cdbd2cSJim Jagielski #include "InternalData.hxx"
27*b1cdbd2cSJim Jagielski 
28*b1cdbd2cSJim Jagielski #include <com/sun/star/lang/XServiceInfo.hpp>
29*b1cdbd2cSJim Jagielski #include <com/sun/star/chart/XDateCategories.hpp>
30*b1cdbd2cSJim Jagielski #include <com/sun/star/chart2/XAnyDescriptionAccess.hpp>
31*b1cdbd2cSJim Jagielski #include <com/sun/star/chart2/data/XDataProvider.hpp>
32*b1cdbd2cSJim Jagielski #include <com/sun/star/chart2/XInternalDataProvider.hpp>
33*b1cdbd2cSJim Jagielski #include <com/sun/star/chart2/data/XLabeledDataSequence.hpp>
34*b1cdbd2cSJim Jagielski #include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>
35*b1cdbd2cSJim Jagielski #include <com/sun/star/chart2/XChartDocument.hpp>
36*b1cdbd2cSJim Jagielski #include <com/sun/star/lang/XInitialization.hpp>
37*b1cdbd2cSJim Jagielski #include <com/sun/star/util/XCloneable.hpp>
38*b1cdbd2cSJim Jagielski #include <cppuhelper/implbase7.hxx>
39*b1cdbd2cSJim Jagielski #include "ServiceMacros.hxx"
40*b1cdbd2cSJim Jagielski 
41*b1cdbd2cSJim Jagielski #include "CachedDataSequence.hxx"
42*b1cdbd2cSJim Jagielski 
43*b1cdbd2cSJim Jagielski #include <map>
44*b1cdbd2cSJim Jagielski #include <memory>
45*b1cdbd2cSJim Jagielski 
46*b1cdbd2cSJim Jagielski namespace chart
47*b1cdbd2cSJim Jagielski {
48*b1cdbd2cSJim Jagielski 
49*b1cdbd2cSJim Jagielski namespace impl
50*b1cdbd2cSJim Jagielski {
51*b1cdbd2cSJim Jagielski 
52*b1cdbd2cSJim Jagielski typedef ::cppu::WeakImplHelper7<
53*b1cdbd2cSJim Jagielski         ::com::sun::star::chart2::XInternalDataProvider,
54*b1cdbd2cSJim Jagielski         ::com::sun::star::chart2::data::XRangeXMLConversion,
55*b1cdbd2cSJim Jagielski         ::com::sun::star::chart2::XAnyDescriptionAccess,
56*b1cdbd2cSJim Jagielski         ::com::sun::star::chart::XDateCategories,
57*b1cdbd2cSJim Jagielski         ::com::sun::star::util::XCloneable,
58*b1cdbd2cSJim Jagielski 		::com::sun::star::lang::XInitialization,
59*b1cdbd2cSJim Jagielski         ::com::sun::star::lang::XServiceInfo >
60*b1cdbd2cSJim Jagielski     InternalDataProvider_Base;
61*b1cdbd2cSJim Jagielski }
62*b1cdbd2cSJim Jagielski 
63*b1cdbd2cSJim Jagielski /** Data provider that handles data internally.  This is used for charts with
64*b1cdbd2cSJim Jagielski     their own data.
65*b1cdbd2cSJim Jagielski 
66*b1cdbd2cSJim Jagielski     <p>The format for single ranges is "categories|label n|n" where n is a
67*b1cdbd2cSJim Jagielski     non-negative number. Meaning return all categories, the label of sequence n,
68*b1cdbd2cSJim Jagielski     or the data of sequence n.</p>
69*b1cdbd2cSJim Jagielski 
70*b1cdbd2cSJim Jagielski     <p>The format for a complete range is "all". (Do we need more than
71*b1cdbd2cSJim Jagielski     that?)</p>
72*b1cdbd2cSJim Jagielski  */
73*b1cdbd2cSJim Jagielski class InternalDataProvider :
74*b1cdbd2cSJim Jagielski         public impl::InternalDataProvider_Base
75*b1cdbd2cSJim Jagielski {
76*b1cdbd2cSJim Jagielski public:
77*b1cdbd2cSJim Jagielski     explicit InternalDataProvider(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & _xContext);
78*b1cdbd2cSJim Jagielski 
79*b1cdbd2cSJim Jagielski     // #120559# allow handing over a default for data orientation (DataInColumns) that will
80*b1cdbd2cSJim Jagielski     // be used when no data is available
81*b1cdbd2cSJim Jagielski     explicit InternalDataProvider(
82*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument > & xChartDoc,
83*b1cdbd2cSJim Jagielski         bool bConnectToModel,
84*b1cdbd2cSJim Jagielski         bool bDefaultDataInColumns );
85*b1cdbd2cSJim Jagielski     explicit InternalDataProvider( const InternalDataProvider & rOther );
86*b1cdbd2cSJim Jagielski 	virtual ~InternalDataProvider();
87*b1cdbd2cSJim Jagielski 
88*b1cdbd2cSJim Jagielski     void createDefaultData();
89*b1cdbd2cSJim Jagielski 
90*b1cdbd2cSJim Jagielski     /// declare XServiceInfo methods
91*b1cdbd2cSJim Jagielski     APPHELPER_XSERVICEINFO_DECL()
92*b1cdbd2cSJim Jagielski     APPHELPER_SERVICE_FACTORY_HELPER(InternalDataProvider)
93*b1cdbd2cSJim Jagielski 
94*b1cdbd2cSJim Jagielski     // ____ XInternalDataProvider ____
95*b1cdbd2cSJim Jagielski     virtual ::sal_Bool SAL_CALL hasDataByRangeRepresentation( const ::rtl::OUString& aRange )
96*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
97*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL
98*b1cdbd2cSJim Jagielski         getDataByRangeRepresentation( const ::rtl::OUString& aRange )
99*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
100*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setDataByRangeRepresentation(
101*b1cdbd2cSJim Jagielski         const ::rtl::OUString& aRange,
102*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aNewData )
103*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
104*b1cdbd2cSJim Jagielski     virtual void SAL_CALL insertSequence( ::sal_Int32 nAfterIndex )
105*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
106*b1cdbd2cSJim Jagielski     virtual void SAL_CALL deleteSequence( ::sal_Int32 nAtIndex )
107*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
108*b1cdbd2cSJim Jagielski     virtual void SAL_CALL appendSequence()
109*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
110*b1cdbd2cSJim Jagielski     virtual void SAL_CALL insertComplexCategoryLevel( ::sal_Int32 nLevel )
111*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
112*b1cdbd2cSJim Jagielski     virtual void SAL_CALL deleteComplexCategoryLevel( ::sal_Int32 nLevel )
113*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
114*b1cdbd2cSJim Jagielski     virtual void SAL_CALL insertDataPointForAllSequences( ::sal_Int32 nAfterIndex )
115*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
116*b1cdbd2cSJim Jagielski     virtual void SAL_CALL deleteDataPointForAllSequences( ::sal_Int32 nAtIndex )
117*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
118*b1cdbd2cSJim Jagielski     virtual void SAL_CALL swapDataPointWithNextOneForAllSequences( ::sal_Int32 nAtIndex )
119*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
120*b1cdbd2cSJim Jagielski     virtual void SAL_CALL registerDataSequenceForChanges(
121*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence >& xSeq )
122*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
123*b1cdbd2cSJim Jagielski 
124*b1cdbd2cSJim Jagielski     // ____ XDataProvider (base of XInternalDataProvider) ____
125*b1cdbd2cSJim Jagielski     virtual ::sal_Bool SAL_CALL createDataSourcePossible(
126*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments )
127*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
128*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource > SAL_CALL createDataSource(
129*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArguments )
130*b1cdbd2cSJim Jagielski         throw (::com::sun::star::lang::IllegalArgumentException,
131*b1cdbd2cSJim Jagielski                ::com::sun::star::uno::RuntimeException);
132*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL detectArguments(
133*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSource >& xDataSource )
134*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
135*b1cdbd2cSJim Jagielski     virtual ::sal_Bool SAL_CALL createDataSequenceByRangeRepresentationPossible(
136*b1cdbd2cSJim Jagielski         const ::rtl::OUString& aRangeRepresentation )
137*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
138*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Reference< ::com::sun::star::chart2::data::XDataSequence > SAL_CALL createDataSequenceByRangeRepresentation(
139*b1cdbd2cSJim Jagielski         const ::rtl::OUString& aRangeRepresentation )
140*b1cdbd2cSJim Jagielski         throw (::com::sun::star::lang::IllegalArgumentException,
141*b1cdbd2cSJim Jagielski                ::com::sun::star::uno::RuntimeException);
142*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XRangeSelection > SAL_CALL getRangeSelection()
143*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
144*b1cdbd2cSJim Jagielski 
145*b1cdbd2cSJim Jagielski     // ____ XRangeXMLConversion ____
146*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL convertRangeToXML(
147*b1cdbd2cSJim Jagielski         const ::rtl::OUString& aRangeRepresentation )
148*b1cdbd2cSJim Jagielski         throw (::com::sun::star::lang::IllegalArgumentException,
149*b1cdbd2cSJim Jagielski                ::com::sun::star::uno::RuntimeException);
150*b1cdbd2cSJim Jagielski     virtual ::rtl::OUString SAL_CALL convertRangeFromXML(
151*b1cdbd2cSJim Jagielski         const ::rtl::OUString& aXMLRange )
152*b1cdbd2cSJim Jagielski         throw (::com::sun::star::lang::IllegalArgumentException,
153*b1cdbd2cSJim Jagielski                ::com::sun::star::uno::RuntimeException);
154*b1cdbd2cSJim Jagielski 
155*b1cdbd2cSJim Jagielski     // ____ XDateCategories ____
156*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getDateCategories() throw (::com::sun::star::uno::RuntimeException);
157*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setDateCategories( const ::com::sun::star::uno::Sequence< double >& rDates ) throw (::com::sun::star::uno::RuntimeException);
158*b1cdbd2cSJim Jagielski 
159*b1cdbd2cSJim Jagielski     // ____ XAnyDescriptionAccess ____
160*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > > SAL_CALL
161*b1cdbd2cSJim Jagielski         getAnyRowDescriptions() throw (::com::sun::star::uno::RuntimeException);
162*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setAnyRowDescriptions(
163*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence<
164*b1cdbd2cSJim Jagielski         ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > >& aRowDescriptions )
165*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
166*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > > SAL_CALL
167*b1cdbd2cSJim Jagielski         getAnyColumnDescriptions() throw (::com::sun::star::uno::RuntimeException);
168*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setAnyColumnDescriptions(
169*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence<
170*b1cdbd2cSJim Jagielski         ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > >& aColumnDescriptions )
171*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
172*b1cdbd2cSJim Jagielski 
173*b1cdbd2cSJim Jagielski     // ____ XComplexDescriptionAccess (base of XAnyDescriptionAccess) ____
174*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::rtl::OUString > > SAL_CALL
175*b1cdbd2cSJim Jagielski         getComplexRowDescriptions() throw (::com::sun::star::uno::RuntimeException);
176*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setComplexRowDescriptions(
177*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence<
178*b1cdbd2cSJim Jagielski         ::com::sun::star::uno::Sequence< ::rtl::OUString > >& aRowDescriptions )
179*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
180*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::rtl::OUString > > SAL_CALL
181*b1cdbd2cSJim Jagielski         getComplexColumnDescriptions() throw (::com::sun::star::uno::RuntimeException);
182*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setComplexColumnDescriptions(
183*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence<
184*b1cdbd2cSJim Jagielski         ::com::sun::star::uno::Sequence< ::rtl::OUString > >& aColumnDescriptions )
185*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
186*b1cdbd2cSJim Jagielski 
187*b1cdbd2cSJim Jagielski     // ____ XChartDataArray (base of XComplexDescriptionAccess) ____
188*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > > SAL_CALL getData()
189*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
190*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setData(
191*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< double > >& aData )
192*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
193*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getRowDescriptions()
194*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
195*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setRowDescriptions(
196*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aRowDescriptions )
197*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
198*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getColumnDescriptions()
199*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
200*b1cdbd2cSJim Jagielski     virtual void SAL_CALL setColumnDescriptions(
201*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aColumnDescriptions )
202*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
203*b1cdbd2cSJim Jagielski 
204*b1cdbd2cSJim Jagielski     // ____ XChartData (base of XChartDataArray) ____
205*b1cdbd2cSJim Jagielski     virtual void SAL_CALL addChartDataChangeEventListener(
206*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener )
207*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
208*b1cdbd2cSJim Jagielski     virtual void SAL_CALL removeChartDataChangeEventListener(
209*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Reference< ::com::sun::star::chart::XChartDataChangeEventListener >& aListener )
210*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
211*b1cdbd2cSJim Jagielski     virtual double SAL_CALL getNotANumber()
212*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
213*b1cdbd2cSJim Jagielski     virtual ::sal_Bool SAL_CALL isNotANumber(
214*b1cdbd2cSJim Jagielski         double nNumber )
215*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
216*b1cdbd2cSJim Jagielski 
217*b1cdbd2cSJim Jagielski     // ____ XCloneable ____
218*b1cdbd2cSJim Jagielski     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloneable > SAL_CALL createClone()
219*b1cdbd2cSJim Jagielski         throw (::com::sun::star::uno::RuntimeException);
220*b1cdbd2cSJim Jagielski 	// ::com::sun::star::lang::XInitialization:
221*b1cdbd2cSJim Jagielski     virtual void SAL_CALL initialize(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > & aArguments)
222*b1cdbd2cSJim Jagielski 		throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::uno::Exception);
223*b1cdbd2cSJim Jagielski 
224*b1cdbd2cSJim Jagielski private:
225*b1cdbd2cSJim Jagielski     void lcl_addDataSequenceToMap(
226*b1cdbd2cSJim Jagielski         const ::rtl::OUString & rRangeRepresentation,
227*b1cdbd2cSJim Jagielski         const ::com::sun::star::uno::Reference<
228*b1cdbd2cSJim Jagielski             ::com::sun::star::chart2::data::XDataSequence > & xSequence );
229*b1cdbd2cSJim Jagielski 
230*b1cdbd2cSJim Jagielski     ::com::sun::star::uno::Reference<
231*b1cdbd2cSJim Jagielski             ::com::sun::star::chart2::data::XDataSequence >
232*b1cdbd2cSJim Jagielski         lcl_createDataSequenceAndAddToMap( const ::rtl::OUString & rRangeRepresentation,
233*b1cdbd2cSJim Jagielski                                        const ::rtl::OUString & rRole );
234*b1cdbd2cSJim Jagielski     ::com::sun::star::uno::Reference<
235*b1cdbd2cSJim Jagielski             ::com::sun::star::chart2::data::XDataSequence >
236*b1cdbd2cSJim Jagielski         lcl_createDataSequenceAndAddToMap( const ::rtl::OUString & rRangeRepresentation );
237*b1cdbd2cSJim Jagielski 
238*b1cdbd2cSJim Jagielski     void lcl_deleteMapReferences( const ::rtl::OUString & rRangeRepresentation );
239*b1cdbd2cSJim Jagielski 
240*b1cdbd2cSJim Jagielski     void lcl_adaptMapReferences(
241*b1cdbd2cSJim Jagielski         const ::rtl::OUString & rOldRangeRepresentation,
242*b1cdbd2cSJim Jagielski         const ::rtl::OUString & rNewRangeRepresentation );
243*b1cdbd2cSJim Jagielski 
244*b1cdbd2cSJim Jagielski     void lcl_increaseMapReferences( sal_Int32 nBegin, sal_Int32 nEnd );
245*b1cdbd2cSJim Jagielski     void lcl_decreaseMapReferences( sal_Int32 nBegin, sal_Int32 nEnd );
246*b1cdbd2cSJim Jagielski 
247*b1cdbd2cSJim Jagielski     typedef ::std::multimap< ::rtl::OUString,
248*b1cdbd2cSJim Jagielski             ::com::sun::star::uno::WeakReference< ::com::sun::star::chart2::data::XDataSequence > >
249*b1cdbd2cSJim Jagielski         tSequenceMap;
250*b1cdbd2cSJim Jagielski     typedef ::std::pair< tSequenceMap::iterator, tSequenceMap::iterator > tSequenceMapRange;
251*b1cdbd2cSJim Jagielski     typedef ::std::pair< tSequenceMap::const_iterator, tSequenceMap::const_iterator > tConstSequenceMapRange;
252*b1cdbd2cSJim Jagielski 
253*b1cdbd2cSJim Jagielski     /** cache for all sequences that have been returned.
254*b1cdbd2cSJim Jagielski 
255*b1cdbd2cSJim Jagielski         If the range-representation of a sequence changes and it is still
256*b1cdbd2cSJim Jagielski         referred to by some component (weak reference is valid), the range will
257*b1cdbd2cSJim Jagielski         be adapted.
258*b1cdbd2cSJim Jagielski      */
259*b1cdbd2cSJim Jagielski     tSequenceMap m_aSequenceMap;
260*b1cdbd2cSJim Jagielski     InternalData m_aInternalData;
261*b1cdbd2cSJim Jagielski     bool m_bDataInColumns;
262*b1cdbd2cSJim Jagielski };
263*b1cdbd2cSJim Jagielski 
264*b1cdbd2cSJim Jagielski } //  namespace chart
265*b1cdbd2cSJim Jagielski 
266*b1cdbd2cSJim Jagielski // CHART2_INTERNALDATAPROVIDER_HXX
267*b1cdbd2cSJim Jagielski #endif
268