LibreOffice Module sw (master) 1
unochart.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_SW_INC_UNOCHART_HXX
20#define INCLUDED_SW_INC_UNOCHART_HXX
21
22#include <map>
23#include <vector>
24
25#include <com/sun/star/chart2/data/XDataProvider.hpp>
26#include <com/sun/star/chart2/data/XDataSource.hpp>
27#include <com/sun/star/chart2/data/XDataSequence.hpp>
28#include <com/sun/star/chart2/data/XTextualDataSequence.hpp>
29#include <com/sun/star/chart2/data/XNumericalDataSequence.hpp>
30#include <com/sun/star/chart2/data/XLabeledDataSequence2.hpp>
31#include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>
32#include <com/sun/star/chart2/data/DataSequenceRole.hpp>
33#include <com/sun/star/lang/XServiceInfo.hpp>
34#include <com/sun/star/beans/XPropertySet.hpp>
35#include <com/sun/star/util/XCloneable.hpp>
36#include <com/sun/star/lang/XComponent.hpp>
37#include <com/sun/star/lang/XEventListener.hpp>
38#include <com/sun/star/util/XModifiable.hpp>
39#include <com/sun/star/util/XModifyListener.hpp>
40
44
45#include <rtl/ref.hxx>
46#include <svl/listener.hxx>
47#include <tools/link.hxx>
48#include <vcl/timer.hxx>
49
50#include "frmfmt.hxx"
51#include "unocrsr.hxx"
52
54class SwDoc;
55class SwTable;
56class SwTableBox;
58class SwSelBoxes;
59namespace com::sun::star::table { class XCell; }
60
61bool FillRangeDescriptor( SwRangeDescriptor &rDesc, std::u16string_view rCellRangeName );
62
64{
65public:
66 static void DoUpdateAllCharts( SwDoc* pDoc );
67};
68
70{
72
73 DECL_LINK( DoUnlockAllCharts, Timer *, void );
74 Timer m_aUnlockTimer; // timer to unlock chart controllers
76
79
80 void LockUnlockAllCharts( bool bLock );
83
84public:
87
89 void Disconnect();
90};
91
93
94typedef cppu::WeakImplHelper
95<
96 css::chart2::data::XDataProvider,
97 css::chart2::data::XRangeXMLConversion,
98 css::lang::XComponent,
99 css::lang::XServiceInfo
100>
102
105{
106
107 // used to keep weak-references to all data-sequences of a single table
108 // see definition below...
109 typedef std::vector< unotools::WeakReference < SwChartDataSequence > > Vec_DataSequenceRef_t;
110
111 // map of data-sequence sets for each table
112 typedef std::map< const SwTable *, Vec_DataSequenceRef_t > Map_Set_DataSequenceRef_t;
113
114 // map of all data-sequences provided directly or indirectly (e.g. via
115 // data-source) by this object. Since there is only one object of this type
116 // for each document it should hold references to all used data-sequences for
117 // all tables of the document.
119
121 const SwDoc * m_pDoc;
123
126
129 css::uno::Reference< css::chart2::data::XDataSource > Impl_createDataSource( const css::uno::Sequence< css::beans::PropertyValue >& aArguments, bool bTestOnly = false );
132 css::uno::Reference< css::chart2::data::XDataSequence > Impl_createDataSequenceByRangeRepresentation( std::u16string_view aRangeRepresentation, bool bTestOnly = false );
133
134 static OUString GetBrokenCellRangeForExport( std::u16string_view rCellRangeRepresentation );
135
136public:
137 SwChartDataProvider( const SwDoc& rDoc );
138 virtual ~SwChartDataProvider() override;
139
140 // XDataProvider
141 virtual sal_Bool SAL_CALL createDataSourcePossible( const css::uno::Sequence< css::beans::PropertyValue >& aArguments ) override;
142 virtual css::uno::Reference< css::chart2::data::XDataSource > SAL_CALL createDataSource( const css::uno::Sequence< css::beans::PropertyValue >& aArguments ) override;
143 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL detectArguments( const css::uno::Reference< css::chart2::data::XDataSource >& xDataSource ) override;
144 virtual sal_Bool SAL_CALL createDataSequenceByRangeRepresentationPossible( const OUString& aRangeRepresentation ) override;
145 virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL createDataSequenceByRangeRepresentation( const OUString& aRangeRepresentation ) override;
146 virtual css::uno::Reference< css::sheet::XRangeSelection > SAL_CALL getRangeSelection( ) override;
147
148 virtual css::uno::Reference<css::chart2::data::XDataSequence>
150 const OUString& aRole, const OUString& aRangeRepresentation, const OUString& aRoleQualifier ) override;
151
152 // XRangeXMLConversion
153 virtual OUString SAL_CALL convertRangeToXML( const OUString& aRangeRepresentation ) override;
154 virtual OUString SAL_CALL convertRangeFromXML( const OUString& aXMLRange ) override;
155
156 // XComponent
157 virtual void SAL_CALL dispose( ) override;
158 virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
159 virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
160
161 // XServiceInfo
162 virtual OUString SAL_CALL getImplementationName( ) override;
163 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
164 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
165
166 void AddDataSequence( const SwTable &rTable, rtl::Reference< SwChartDataSequence > const &rxDataSequence );
167 void RemoveDataSequence( const SwTable &rTable, rtl::Reference< SwChartDataSequence > const &rxDataSequence );
168
169 // will send modified events for all data-sequences of the table
170 // tdf#122995 added Immediate-Mode to allow non-timer-delayed Chart invalidation
171 void InvalidateTable( const SwTable *pTable, bool bImmediate = false );
172 void DeleteBox( const SwTable *pTable, const SwTableBox &rBox );
173 void DisposeAllDataSequences( const SwTable *pTable );
174
175 // functionality needed to get notified about new added rows/cols
176 void AddRowCols( const SwTable &rTable, const SwSelBoxes& rBoxes, sal_uInt16 nLines, bool bBehind );
177};
178
179typedef cppu::WeakImplHelper
180<
181 css::chart2::data::XDataSource,
182 css::lang::XServiceInfo
183>
185
186class SwChartDataSource final :
188{
189 css::uno::Sequence<
190 css::uno::Reference< css::chart2::data::XLabeledDataSequence > > m_aLDS;
191
194
195public:
196 SwChartDataSource( const css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > &rLDS );
197 virtual ~SwChartDataSource() override;
198
199 // XDataSource
200 virtual css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences( ) override;
201
202 // XServiceInfo
203 virtual OUString SAL_CALL getImplementationName( ) override;
204 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
205 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
206};
207
208typedef cppu::WeakImplHelper
209<
210 css::chart2::data::XDataSequence,
211 css::chart2::data::XTextualDataSequence,
212 css::chart2::data::XNumericalDataSequence,
213 css::util::XCloneable,
214 css::beans::XPropertySet,
215 css::lang::XServiceInfo,
216 css::util::XModifiable,
217 css::lang::XEventListener,
218 css::lang::XComponent
219>
221
224 public SvtListener
225{
229 css::chart2::data::DataSequenceRole m_aRole;
230
233
235
236 sw::UnoCursorPointer m_pTableCursor; // cursor spanned over cells to use
237
239
241
244
245public:
247 SwFrameFormat &rTableFormat,
248 const std::shared_ptr<SwUnoCursor>& pTableCursor );
249 virtual ~SwChartDataSequence() override;
250
251 // XDataSequence
252 virtual css::uno::Sequence< css::uno::Any > SAL_CALL getData() override;
253 virtual OUString SAL_CALL getSourceRangeRepresentation() override;
254 virtual css::uno::Sequence< OUString > SAL_CALL generateLabel( css::chart2::data::LabelOrigin eLabelOrigin ) override;
255 virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex( ::sal_Int32 nIndex ) override;
256
257 // XTextualDataSequence
258 virtual css::uno::Sequence< OUString > SAL_CALL getTextualData() override;
259
260 // XNumericalDataSequence
261 virtual css::uno::Sequence< double > SAL_CALL getNumericalData() override;
262
263 // XCloneable
264 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) override;
265
266 // XPropertySet
267 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
268 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
269 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
270 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
271 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
272 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
273 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
274
275 // XServiceInfo
276 virtual OUString SAL_CALL getImplementationName( ) override;
277 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
278 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
279
280 // XModifiable
281 virtual sal_Bool SAL_CALL isModified( ) override;
282 virtual void SAL_CALL setModified( sal_Bool bModified ) override;
283
284 // XModifyBroadcaster
285 virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
286 virtual void SAL_CALL removeModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
287
288 // XEventListener
289 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
290
291 // XComponent
292 virtual void SAL_CALL dispose( ) override;
293 virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
294 virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
295
297 bool DeleteBox( const SwTableBox &rBox );
298
299 void FillRangeDesc( SwRangeDescriptor &rRangeDesc ) const;
300 void ExtendTo( bool bExtendCol, sal_Int32 nFirstNew, sal_Int32 nCount );
301 std::vector< css::uno::Reference< css::table::XCell > > GetCells();
302
303 virtual void Notify(const SfxHint& rHint) override;
304};
305
306typedef cppu::WeakImplHelper
307<
308 css::chart2::data::XLabeledDataSequence2,
309 css::lang::XServiceInfo,
310 css::util::XModifyListener,
311 css::lang::XComponent
312>
314
317{
320
321 css::uno::Reference< css::chart2::data::XDataSequence > m_xData;
322 css::uno::Reference< css::chart2::data::XDataSequence > m_xLabels;
323
325
328
329 void SetDataSequence( css::uno::Reference< css::chart2::data::XDataSequence >& rxDest, const css::uno::Reference< css::chart2::data::XDataSequence >& rxSource );
330
331public:
333 virtual ~SwChartLabeledDataSequence() override;
334
335 // XLabeledDataSequence
336 virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL getValues( ) override;
337 virtual void SAL_CALL setValues( const css::uno::Reference< css::chart2::data::XDataSequence >& xSequence ) override;
338 virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL getLabel( ) override;
339 virtual void SAL_CALL setLabel( const css::uno::Reference< css::chart2::data::XDataSequence >& xSequence ) override;
340
341 // XCloneable
342 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) override;
343
344 // XServiceInfo
345 virtual OUString SAL_CALL getImplementationName( ) override;
346 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
347 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
348
349 // XEventListener
350 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
351
352 // XModifyListener
353 virtual void SAL_CALL modified( const css::lang::EventObject& aEvent ) override;
354
355 // XModifyBroadcaster
356 virtual void SAL_CALL addModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
357 virtual void SAL_CALL removeModifyListener( const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
358
359 // XComponent
360 virtual void SAL_CALL dispose( ) override;
361 virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& xListener ) override;
362 virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
363};
364
365#endif
366
367/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const SwDoc * m_pDoc
Definition: unochart.hxx:121
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEventListeners
Definition: unochart.hxx:120
void InvalidateTable(const SwTable *pTable, bool bImmediate=false)
Definition: unochart.cxx:1434
void RemoveDataSequence(const SwTable &rTable, rtl::Reference< SwChartDataSequence > const &rxDataSequence)
Definition: unochart.cxx:1424
SwChartDataProvider(const SwChartDataProvider &)=delete
virtual sal_Bool SAL_CALL createDataSourcePossible(const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override
Definition: unochart.cxx:894
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL createDataSequenceByValueArray(const OUString &aRole, const OUString &aRangeRepresentation, const OUString &aRoleQualifier) override
Definition: unochart.cxx:1349
css::uno::Reference< css::chart2::data::XDataSource > Impl_createDataSource(const css::uno::Sequence< css::beans::PropertyValue > &aArguments, bool bTestOnly=false)
Definition: unochart.cxx:520
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
Definition: unochart.cxx:1382
virtual void SAL_CALL dispose() override
Definition: unochart.cxx:1356
virtual OUString SAL_CALL convertRangeToXML(const OUString &aRangeRepresentation) override
Definition: unochart.cxx:1621
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
Definition: unochart.cxx:1390
std::map< const SwTable *, Vec_DataSequenceRef_t > Map_Set_DataSequenceRef_t
Definition: unochart.hxx:112
css::uno::Reference< css::chart2::data::XDataSequence > Impl_createDataSequenceByRangeRepresentation(std::u16string_view aRangeRepresentation, bool bTestOnly=false)
Definition: unochart.cxx:1289
virtual sal_Bool SAL_CALL createDataSequenceByRangeRepresentationPossible(const OUString &aRangeRepresentation) override
Definition: unochart.cxx:1317
virtual css::uno::Reference< css::chart2::data::XDataSource > SAL_CALL createDataSource(const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override
Definition: unochart.cxx:912
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL detectArguments(const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource) override
Definition: unochart.cxx:955
virtual css::uno::Reference< css::sheet::XRangeSelection > SAL_CALL getRangeSelection() override
Definition: unochart.cxx:1342
virtual OUString SAL_CALL convertRangeFromXML(const OUString &aXMLRange) override
Definition: unochart.cxx:1691
void AddRowCols(const SwTable &rTable, const SwSelBoxes &rBoxes, sal_uInt16 nLines, bool bBehind)
SwChartDataProvider::AddRowCols tries to notify charts of added columns or rows and extends the value...
Definition: unochart.cxx:1550
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unochart.cxx:1403
SwChartDataProvider & operator=(const SwChartDataProvider &)=delete
static OUString GetBrokenCellRangeForExport(std::u16string_view rCellRangeRepresentation)
Fix for #i79009 we need to return a property that has the same value as the property 'CellRangeRepres...
Definition: unochart.cxx:928
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL createDataSequenceByRangeRepresentation(const OUString &aRangeRepresentation) override
Definition: unochart.cxx:1335
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unochart.cxx:1408
virtual ~SwChartDataProvider() override
Definition: unochart.cxx:516
void AddDataSequence(const SwTable &rTable, rtl::Reference< SwChartDataSequence > const &rxDataSequence)
Definition: unochart.cxx:1413
virtual OUString SAL_CALL getImplementationName() override
Definition: unochart.cxx:1398
Map_Set_DataSequenceRef_t m_aDataSequences
Definition: unochart.hxx:118
void DisposeAllDataSequences(const SwTable *pTable)
Definition: unochart.cxx:1504
void DeleteBox(const SwTable *pTable, const SwTableBox &rBox)
Definition: unochart.cxx:1459
std::vector< unotools::WeakReference< SwChartDataSequence > > Vec_DataSequenceRef_t
Definition: unochart.hxx:109
SwChartDataSequence & operator=(const SwChartDataSequence &)=delete
void ExtendTo(bool bExtendCol, sal_Int32 nFirstNew, sal_Int32 nCount)
Extends the data-sequence by new cells added at the end of the direction the data-sequence points to.
Definition: unochart.cxx:2413
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEvtListeners
Definition: unochart.hxx:227
virtual css::uno::Sequence< OUString > SAL_CALL getTextualData() override
Definition: unochart.cxx:2011
virtual void Notify(const SfxHint &rHint) override
Definition: unochart.cxx:2147
std::vector< css::uno::Reference< css::table::XCell > > GetCells()
Definition: unochart.cxx:1995
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
Definition: unochart.cxx:2058
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unochart.cxx:2142
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
Definition: unochart.cxx:2191
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
Definition: unochart.cxx:2199
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
Definition: unochart.cxx:2104
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unochart.cxx:2137
const SfxItemPropertySet * m_pPropSet
Definition: unochart.hxx:238
virtual OUString SAL_CALL getImplementationName() override
Definition: unochart.cxx:2132
::comphelper::OInterfaceContainerHelper4< css::util::XModifyListener > m_aModifyListeners
Definition: unochart.hxx:228
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
Definition: unochart.cxx:2183
SwFrameFormat * GetFrameFormat() const
Definition: unochart.hxx:296
SwFrameFormat * m_pFormat
Definition: unochart.hxx:226
virtual css::uno::Sequence< double > SAL_CALL getNumericalData() override
Definition: unochart.cxx:2045
virtual void SAL_CALL setModified(sal_Bool bModified) override
Definition: unochart.cxx:2172
virtual OUString SAL_CALL getSourceRangeRepresentation() override
Definition: unochart.cxx:1865
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unochart.cxx:2125
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unochart.cxx:2076
void FillRangeDesc(SwRangeDescriptor &rRangeDesc) const
Definition: unochart.cxx:2386
OUString m_aRowLabelText
Definition: unochart.hxx:231
virtual void SAL_CALL dispose() override
Definition: unochart.cxx:2209
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getData() override
Definition: unochart.cxx:2024
bool DeleteBox(const SwTableBox &rBox)
Definition: unochart.cxx:2280
css::chart2::data::DataSequenceRole m_aRole
Definition: unochart.hxx:229
SwChartDataSequence(const SwChartDataSequence &rObj)
Definition: unochart.cxx:1815
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
Definition: unochart.cxx:2111
sw::UnoCursorPointer m_pTableCursor
Definition: unochart.hxx:236
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
Definition: unochart.cxx:2264
rtl::Reference< SwChartDataProvider > m_xDataProvider
Definition: unochart.hxx:234
virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex(::sal_Int32 nIndex) override
Definition: unochart.cxx:1989
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
Definition: unochart.cxx:2272
virtual ~SwChartDataSequence() override
Definition: unochart.cxx:1861
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unochart.cxx:2066
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
Definition: unochart.cxx:2118
virtual sal_Bool SAL_CALL isModified() override
Definition: unochart.cxx:2163
virtual css::uno::Sequence< OUString > SAL_CALL generateLabel(css::chart2::data::LabelOrigin eLabelOrigin) override
Definition: unochart.cxx:1882
OUString m_aColLabelText
Definition: unochart.hxx:232
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unochart.cxx:2091
SwChartDataSource(const SwChartDataSource &)=delete
SwChartDataSource(const css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > &rLDS)
virtual OUString SAL_CALL getImplementationName() override
Definition: unochart.cxx:1755
virtual ~SwChartDataSource() override
Definition: unochart.cxx:1745
SwChartDataSource & operator=(const SwChartDataSource &)=delete
css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > m_aLDS
Definition: unochart.hxx:190
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unochart.cxx:1765
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unochart.cxx:1760
virtual css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences() override
Definition: unochart.cxx:1749
static void DoUpdateAllCharts(SwDoc *pDoc)
Definition: unochart.cxx:53
virtual OUString SAL_CALL getImplementationName() override
Definition: unochart.cxx:2601
virtual void SAL_CALL dispose() override
Definition: unochart.cxx:2658
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
Definition: unochart.cxx:2617
SwChartLabeledDataSequence(const SwChartLabeledDataSequence &)=delete
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
Definition: unochart.cxx:2633
css::uno::Reference< css::chart2::data::XDataSequence > m_xData
Definition: unochart.hxx:321
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
Definition: unochart.cxx:2578
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL getLabel() override
Definition: unochart.cxx:2555
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
Definition: unochart.cxx:2679
::comphelper::OInterfaceContainerHelper4< css::util::XModifyListener > m_aModifyListeners
Definition: unochart.hxx:319
SwChartLabeledDataSequence & operator=(const SwChartLabeledDataSequence &)=delete
virtual void SAL_CALL setValues(const css::uno::Reference< css::chart2::data::XDataSequence > &xSequence) override
Definition: unochart.cxx:2540
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unochart.cxx:2612
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEventListeners
Definition: unochart.hxx:318
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
Definition: unochart.cxx:2642
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: unochart.cxx:2606
virtual void SAL_CALL setLabel(const css::uno::Reference< css::chart2::data::XDataSequence > &xSequence) override
Definition: unochart.cxx:2563
virtual ~SwChartLabeledDataSequence() override
Definition: unochart.cxx:2502
css::uno::Reference< css::chart2::data::XDataSequence > m_xLabels
Definition: unochart.hxx:322
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
Definition: unochart.cxx:2650
void SetDataSequence(css::uno::Reference< css::chart2::data::XDataSequence > &rxDest, const css::uno::Reference< css::chart2::data::XDataSequence > &rxSource)
Definition: unochart.cxx:2514
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
Definition: unochart.cxx:2687
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL getValues() override
Definition: unochart.cxx:2506
SwChartLockController_Helper & operator=(const SwChartLockController_Helper &)=delete
SwChartLockController_Helper(const SwChartLockController_Helper &)=delete
DECL_LINK(DoUnlockAllCharts, Timer *, void)
void LockUnlockAllCharts(bool bLock)
Definition: unochart.cxx:116
Definition: doc.hxx:197
Style of a layout element.
Definition: frmfmt.hxx:72
SwTableBox is one table cell in the document model.
Definition: swtable.hxx:443
SwTable is one table in the document model, containing rows (which contain cells).
Definition: swtable.hxx:113
unsigned char sal_Bool
cppu::WeakImplHelper< css::chart2::data::XDataProvider, css::chart2::data::XRangeXMLConversion, css::lang::XComponent, css::lang::XServiceInfo > SwChartDataProviderBaseClass
Definition: unochart.hxx:92
cppu::WeakImplHelper< css::chart2::data::XDataSequence, css::chart2::data::XTextualDataSequence, css::chart2::data::XNumericalDataSequence, css::util::XCloneable, css::beans::XPropertySet, css::lang::XServiceInfo, css::util::XModifiable, css::lang::XEventListener, css::lang::XComponent > SwChartDataSequenceBaseClass
Definition: unochart.hxx:220
cppu::WeakImplHelper< css::chart2::data::XDataSource, css::lang::XServiceInfo > SwChartDataSourceBaseClass
Definition: unochart.hxx:184
cppu::WeakImplHelper< css::chart2::data::XLabeledDataSequence2, css::lang::XServiceInfo, css::util::XModifyListener, css::lang::XComponent > SwChartLabeledDataSequenceBaseClass
Definition: unochart.hxx:313
bool FillRangeDescriptor(SwRangeDescriptor &rDesc, std::u16string_view rCellRangeName)
rCellRangeName needs to be of one of the following formats:
Definition: unochart.cxx:175