1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_SW_INC_UNOCHART_HXX
20 #define INCLUDED_SW_INC_UNOCHART_HXX
25 #include <com/sun/star/lang/XUnoTunnel.hpp>
26 #include <com/sun/star/chart2/data/XDataProvider.hpp>
27 #include <com/sun/star/chart2/data/XDataSource.hpp>
28 #include <com/sun/star/chart2/data/XDataSequence.hpp>
29 #include <com/sun/star/chart2/data/XTextualDataSequence.hpp>
30 #include <com/sun/star/chart2/data/XNumericalDataSequence.hpp>
31 #include <com/sun/star/chart2/data/XLabeledDataSequence2.hpp>
32 #include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>
33 #include <com/sun/star/chart2/data/DataSequenceRole.hpp>
34 #include <com/sun/star/lang/XServiceInfo.hpp>
35 #include <com/sun/star/beans/XPropertySet.hpp>
36 #include <com/sun/star/util/XCloneable.hpp>
37 #include <com/sun/star/lang/XComponent.hpp>
38 #include <com/sun/star/lang/XEventListener.hpp>
39 #include <com/sun/star/util/XModifiable.hpp>
40 #include <com/sun/star/util/XModifyBroadcaster.hpp>
41 #include <com/sun/star/util/XModifyListener.hpp>
42 #include <com/sun/star/chart/ChartDataRowSource.hpp>
44 #include <cppuhelper/interfacecontainer.h>
45 #include <cppuhelper/implbase.hxx>
46 #include <cppuhelper/weakref.hxx>
48 #include <tools/link.hxx>
49 #include <vcl/timer.hxx>
54 class SfxItemPropertySet
;
59 struct SwRangeDescriptor
;
63 bool FillRangeDescriptor( SwRangeDescriptor
&rDesc
, const OUString
&rCellRangeName
);
68 static void DoUpdateAllCharts( SwDoc
* pDoc
);
71 class SwChartLockController_Helper
75 DECL_LINK_TYPED( DoUnlockAllCharts
, Timer
*, void );
76 Timer aUnlockTimer
; // timer to unlock chart controllers
79 SwChartLockController_Helper( const SwChartLockController_Helper
& ) SAL_DELETED_FUNCTION
;
80 SwChartLockController_Helper
& operator = ( const SwChartLockController_Helper
& ) SAL_DELETED_FUNCTION
;
82 void LockUnlockAllCharts( bool bLock
);
83 void LockAllCharts() { LockUnlockAllCharts( true ); };
84 void UnlockAllCharts() { LockUnlockAllCharts( false ); };
87 SwChartLockController_Helper( SwDoc
*pDocument
);
88 ~SwChartLockController_Helper();
90 void StartOrContinueLocking();
94 typedef cppu::WeakImplHelper
96 ::com::sun::star::chart2::data::XDataProvider
,
97 ::com::sun::star::chart2::data::XRangeXMLConversion
,
98 ::com::sun::star::lang::XComponent
,
99 ::com::sun::star::lang::XServiceInfo
101 SwChartDataProviderBaseClass
;
103 class SwChartDataProvider
:
104 public SwChartDataProviderBaseClass
,
108 // used to keep weak-references to all data-sequences of a single table
109 // see set definition below...
110 struct lt_DataSequenceRef
112 bool operator()( ::com::sun::star::uno::WeakReference
< ::com::sun::star::chart2::data::XDataSequence
> xWRef1
, ::com::sun::star::uno::WeakReference
< ::com::sun::star::chart2::data::XDataSequence
> xWRef2
) const
114 ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
> xRef1( xWRef1
);
115 ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
> xRef2( xWRef2
);
116 return xRef1
.get() < xRef2
.get();
119 typedef std::set
< ::com::sun::star::uno::WeakReference
< ::com::sun::star::chart2::data::XDataSequence
>, lt_DataSequenceRef
> Set_DataSequenceRef_t
;
121 // map of data-sequence sets for each table
122 struct lt_SwTable_Ptr
124 bool operator()( const SwTable
*p1
, const SwTable
*p2
) const
129 typedef std::map
< const SwTable
*, Set_DataSequenceRef_t
, lt_SwTable_Ptr
> Map_Set_DataSequenceRef_t
;
131 // map of all data-sequences provided directly or indirectly (e.g. via
132 // data-source) by this object. Since there is only one object of this type
133 // for each document it should hold references to all used data-sequences for
134 // all tables of the document.
135 mutable Map_Set_DataSequenceRef_t aDataSequences
;
137 ::cppu::OInterfaceContainerHelper aEvtListeners
;
141 SwChartDataProvider( const SwChartDataProvider
& ) SAL_DELETED_FUNCTION
;
142 SwChartDataProvider
& operator = ( const SwChartDataProvider
& ) SAL_DELETED_FUNCTION
;
144 ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSource
> SAL_CALL
Impl_createDataSource( const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArguments
, bool bTestOnly
= false )
145 throw (::com::sun::star::lang::IllegalArgumentException
,
146 ::com::sun::star::uno::RuntimeException
,
148 ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
> SAL_CALL
Impl_createDataSequenceByRangeRepresentation( const OUString
& aRangeRepresentation
, bool bTestOnly
= false )
149 throw (::com::sun::star::lang::IllegalArgumentException
,
150 ::com::sun::star::uno::RuntimeException
,
153 static OUString
GetBrokenCellRangeForExport( const OUString
&rCellRangeRepresentation
);
157 virtual void Modify( const SfxPoolItem
* pOld
, const SfxPoolItem
*pNew
) SAL_OVERRIDE
;
160 SwChartDataProvider( const SwDoc
* pDoc
);
161 virtual ~SwChartDataProvider();
164 virtual sal_Bool SAL_CALL
createDataSourcePossible( const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArguments
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
165 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSource
> SAL_CALL
createDataSource( const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& aArguments
) throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
166 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
> SAL_CALL
detectArguments( const ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSource
>& xDataSource
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
167 virtual sal_Bool SAL_CALL
createDataSequenceByRangeRepresentationPossible( const OUString
& aRangeRepresentation
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
168 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
> SAL_CALL
createDataSequenceByRangeRepresentation( const OUString
& aRangeRepresentation
) throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
169 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::sheet::XRangeSelection
> SAL_CALL
getRangeSelection( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
171 virtual css::uno::Reference
<css::chart2::data::XDataSequence
>
172 SAL_CALL
createDataSequenceByValueArray(
173 const OUString
& aRole
, const OUString
& aRangeRepresentation
)
174 throw (css::lang::IllegalArgumentException
, css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
176 // XRangeXMLConversion
177 virtual OUString SAL_CALL
convertRangeToXML( const OUString
& aRangeRepresentation
)
178 throw (::com::sun::star::lang::IllegalArgumentException
,
179 ::com::sun::star::uno::RuntimeException
,
180 std::exception
) SAL_OVERRIDE
;
181 virtual OUString SAL_CALL
convertRangeFromXML( const OUString
& aXMLRange
) throw (::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
184 virtual void SAL_CALL
dispose( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
185 virtual void SAL_CALL
addEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
186 virtual void SAL_CALL
removeEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
>& aListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
189 virtual OUString SAL_CALL
getImplementationName( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
190 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
191 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
193 SwFrameFormat
* GetFrameFormat() const { return const_cast<SwFrameFormat
*>(static_cast<const SwFrameFormat
*>(GetRegisteredIn())); }
195 void AddDataSequence( const SwTable
&rTable
, ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
> &rxDataSequence
);
196 void RemoveDataSequence( const SwTable
&rTable
, ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
> &rxDataSequence
);
198 // will send modifdied events for all data-sequences of the table
199 void InvalidateTable( const SwTable
*pTable
);
200 bool DeleteBox( const SwTable
*pTable
, const SwTableBox
&rBox
);
201 void DisposeAllDataSequences( const SwTable
*pTable
);
203 // functionality needed to get notified about new added rows/cols
204 void AddRowCols( const SwTable
&rTable
, const SwSelBoxes
& rBoxes
, sal_uInt16 nLines
, bool bBehind
);
207 typedef cppu::WeakImplHelper
209 ::com::sun::star::chart2::data::XDataSource
,
210 ::com::sun::star::lang::XServiceInfo
212 SwChartDataSourceBaseClass
;
214 class SwChartDataSource
:
215 public SwChartDataSourceBaseClass
217 com::sun::star::uno::Sequence
<
218 com::sun::star::uno::Reference
<
219 com::sun::star::chart2::data::XLabeledDataSequence
> > aLDS
;
221 SwChartDataSource( const SwChartDataSource
& ) SAL_DELETED_FUNCTION
;
222 SwChartDataSource
& operator = ( const SwChartDataSource
& ) SAL_DELETED_FUNCTION
;
225 SwChartDataSource( const com::sun::star::uno::Sequence
< com::sun::star::uno::Reference
< com::sun::star::chart2::data::XLabeledDataSequence
> > &rLDS
);
226 virtual ~SwChartDataSource();
229 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
, std::exception
) SAL_OVERRIDE
;
232 virtual OUString SAL_CALL
getImplementationName( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
233 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
234 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
237 typedef cppu::WeakImplHelper
239 ::com::sun::star::chart2::data::XDataSequence
,
240 ::com::sun::star::chart2::data::XTextualDataSequence
,
241 ::com::sun::star::chart2::data::XNumericalDataSequence
,
242 ::com::sun::star::util::XCloneable
,
243 ::com::sun::star::beans::XPropertySet
,
244 ::com::sun::star::lang::XServiceInfo
,
245 ::com::sun::star::lang::XUnoTunnel
,
246 ::com::sun::star::util::XModifiable
,
247 ::com::sun::star::lang::XEventListener
,
248 ::com::sun::star::lang::XComponent
250 SwChartDataSequenceBaseClass
;
252 class SwChartDataSequence
:
253 public SwChartDataSequenceBaseClass
,
256 ::cppu::OInterfaceContainerHelper aEvtListeners
;
257 ::cppu::OInterfaceContainerHelper aModifyListeners
;
258 ::com::sun::star::chart2::data::DataSequenceRole aRole
;
260 OUString aRowLabelText
;
261 OUString aColLabelText
;
263 // holds a reference to the data-provider to guarantee its lifetime last as
264 // long as the pointer may be used.
265 ::com::sun::star::uno::Reference
< com::sun::star::chart2::data::XDataProvider
> xDataProvider
;
266 SwChartDataProvider
* pDataProvider
;
268 SwUnoCrsr
* pTableCrsr
; // cursor spanned over cells to use
269 SwDepend aCursorDepend
; //the cursor is removed after the doc has been removed
271 const SfxItemPropertySet
* _pPropSet
;
275 SwChartDataSequence( const SwChartDataSequence
&rObj
);
276 SwChartDataSequence
& operator = ( const SwChartDataSequence
& ) SAL_DELETED_FUNCTION
;
280 virtual void Modify( const SfxPoolItem
* pOld
, const SfxPoolItem
*pNew
) SAL_OVERRIDE
;
283 SwChartDataSequence( SwChartDataProvider
&rProvider
,
284 SwFrameFormat
&rTableFormat
,
285 SwUnoCrsr
*pTableCursor
);
286 virtual ~SwChartDataSequence();
288 static const ::com::sun::star::uno::Sequence
< sal_Int8
> & getUnoTunnelId();
291 virtual sal_Int64 SAL_CALL
getSomething( const ::com::sun::star::uno::Sequence
< sal_Int8
>& aIdentifier
) throw(::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
294 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::uno::Any
> SAL_CALL
getData()
295 throw (::com::sun::star::uno::RuntimeException
,
296 std::exception
) SAL_OVERRIDE
;
297 virtual OUString SAL_CALL
getSourceRangeRepresentation()
298 throw (::com::sun::star::uno::RuntimeException
,
299 std::exception
) SAL_OVERRIDE
;
300 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
generateLabel( ::com::sun::star::chart2::data::LabelOrigin eLabelOrigin
)
301 throw (::com::sun::star::uno::RuntimeException
,
302 std::exception
) SAL_OVERRIDE
;
303 virtual ::sal_Int32 SAL_CALL
getNumberFormatKeyByIndex( ::sal_Int32 nIndex
) throw (::com::sun::star::lang::IndexOutOfBoundsException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
305 // XTextualDataSequence
306 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getTextualData()
307 throw (::com::sun::star::uno::RuntimeException
,
308 std::exception
) SAL_OVERRIDE
;
310 // XNumericalDataSequence
311 virtual ::com::sun::star::uno::Sequence
< double > SAL_CALL
getNumericalData()
312 throw (::com::sun::star::uno::RuntimeException
,
313 std::exception
) SAL_OVERRIDE
;
316 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloneable
> SAL_CALL
createClone( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
319 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
320 virtual void SAL_CALL
setPropertyValue( const OUString
& aPropertyName
, const ::com::sun::star::uno::Any
& aValue
) throw (::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::beans::PropertyVetoException
, ::com::sun::star::lang::IllegalArgumentException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
321 virtual ::com::sun::star::uno::Any SAL_CALL
getPropertyValue( const OUString
& PropertyName
) throw (::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
322 virtual void SAL_CALL
addPropertyChangeListener( const OUString
& aPropertyName
, const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertyChangeListener
>& xListener
) throw (::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
323 virtual void SAL_CALL
removePropertyChangeListener( const OUString
& aPropertyName
, const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertyChangeListener
>& aListener
) throw (::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
324 virtual void SAL_CALL
addVetoableChangeListener( const OUString
& PropertyName
, const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XVetoableChangeListener
>& aListener
) throw (::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
325 virtual void SAL_CALL
removeVetoableChangeListener( const OUString
& PropertyName
, const ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XVetoableChangeListener
>& aListener
) throw (::com::sun::star::beans::UnknownPropertyException
, ::com::sun::star::lang::WrappedTargetException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
328 virtual OUString SAL_CALL
getImplementationName( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
329 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
330 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
333 virtual sal_Bool SAL_CALL
isModified( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
334 virtual void SAL_CALL
setModified( sal_Bool bModified
) throw (::com::sun::star::beans::PropertyVetoException
, ::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
336 // XModifyBroadcaster
337 virtual void SAL_CALL
addModifyListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
>& aListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
338 virtual void SAL_CALL
removeModifyListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
>& aListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
341 virtual void SAL_CALL
disposing( const ::com::sun::star::lang::EventObject
& Source
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
344 virtual void SAL_CALL
dispose( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
345 virtual void SAL_CALL
addEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
346 virtual void SAL_CALL
removeEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
>& aListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
348 SwFrameFormat
* GetFrameFormat() const { return const_cast<SwFrameFormat
*>(static_cast<const SwFrameFormat
*>(GetRegisteredIn())); }
349 bool DeleteBox( const SwTableBox
&rBox
);
351 void FillRangeDesc( SwRangeDescriptor
&rRangeDesc
) const;
352 bool ExtendTo( bool bExtendCol
, sal_Int32 nFirstNew
, sal_Int32 nCount
);
355 typedef cppu::WeakImplHelper
357 ::com::sun::star::chart2::data::XLabeledDataSequence2
,
358 ::com::sun::star::lang::XServiceInfo
,
359 ::com::sun::star::util::XModifyListener
,
360 ::com::sun::star::lang::XComponent
362 SwChartLabeledDataSequenceBaseClass
;
364 class SwChartLabeledDataSequence
:
365 public SwChartLabeledDataSequenceBaseClass
367 ::cppu::OInterfaceContainerHelper aEvtListeners
;
368 ::cppu::OInterfaceContainerHelper aModifyListeners
;
370 ::com::sun::star::uno::Reference
<
371 ::com::sun::star::chart2::data::XDataSequence
> xData
;
372 ::com::sun::star::uno::Reference
<
373 ::com::sun::star::chart2::data::XDataSequence
> xLabels
;
377 SwChartLabeledDataSequence( const SwChartLabeledDataSequence
& ) SAL_DELETED_FUNCTION
;
378 SwChartLabeledDataSequence
& operator = ( const SwChartLabeledDataSequence
& ) SAL_DELETED_FUNCTION
;
380 void SetDataSequence( ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
>& rxDest
, const ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
>& rxSource
);
383 SwChartLabeledDataSequence();
384 virtual ~SwChartLabeledDataSequence();
386 // XLabeledDataSequence
387 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
> SAL_CALL
getValues( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
388 virtual void SAL_CALL
setValues( const ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
>& xSequence
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
389 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
> SAL_CALL
getLabel( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
390 virtual void SAL_CALL
setLabel( const ::com::sun::star::uno::Reference
< ::com::sun::star::chart2::data::XDataSequence
>& xSequence
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
393 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloneable
> SAL_CALL
createClone( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
396 virtual OUString SAL_CALL
getImplementationName( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
397 virtual sal_Bool SAL_CALL
supportsService( const OUString
& ServiceName
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
398 virtual ::com::sun::star::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
401 virtual void SAL_CALL
disposing( const ::com::sun::star::lang::EventObject
& Source
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
404 virtual void SAL_CALL
modified( const ::com::sun::star::lang::EventObject
& aEvent
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
406 // XModifyBroadcaster
407 virtual void SAL_CALL
addModifyListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
>& aListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
408 virtual void SAL_CALL
removeModifyListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XModifyListener
>& aListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
411 virtual void SAL_CALL
dispose( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
412 virtual void SAL_CALL
addEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
413 virtual void SAL_CALL
removeEventListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XEventListener
>& aListener
) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
418 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */