19#ifndef INCLUDED_SW_INC_UNOCHART_HXX
20#define INCLUDED_SW_INC_UNOCHART_HXX
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>
94typedef cppu::WeakImplHelper
96 css::chart2::data::XDataProvider,
97 css::chart2::data::XRangeXMLConversion,
98 css::lang::XComponent,
99 css::lang::XServiceInfo
129 css::uno::Reference< css::chart2::data::XDataSource >
Impl_createDataSource(
const css::uno::Sequence< css::beans::PropertyValue >& aArguments,
bool bTestOnly =
false );
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;
146 virtual css::uno::Reference< css::sheet::XRangeSelection > SAL_CALL
getRangeSelection( )
override;
148 virtual css::uno::Reference<css::chart2::data::XDataSequence>
150 const OUString& aRole,
const OUString& aRangeRepresentation,
const OUString& aRoleQualifier )
override;
153 virtual OUString SAL_CALL
convertRangeToXML(
const OUString& aRangeRepresentation )
override;
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;
179typedef cppu::WeakImplHelper
181 css::chart2::data::XDataSource,
182 css::lang::XServiceInfo
190 css::uno::Reference< css::chart2::data::XLabeledDataSequence > >
m_aLDS;
196 SwChartDataSource(
const css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > &rLDS );
200 virtual css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > SAL_CALL
getDataSequences( )
override;
208typedef cppu::WeakImplHelper
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
248 const std::shared_ptr<SwUnoCursor>& pTableCursor );
252 virtual css::uno::Sequence< css::uno::Any > SAL_CALL
getData()
override;
254 virtual css::uno::Sequence< OUString > SAL_CALL
generateLabel( css::chart2::data::LabelOrigin eLabelOrigin )
override;
258 virtual css::uno::Sequence< OUString > SAL_CALL
getTextualData()
override;
264 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL
createClone( )
override;
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;
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;
289 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
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;
300 void ExtendTo(
bool bExtendCol, sal_Int32 nFirstNew, sal_Int32 nCount );
301 std::vector< css::uno::Reference< css::table::XCell > >
GetCells();
306typedef cppu::WeakImplHelper
308 css::chart2::data::XLabeledDataSequence2,
309 css::lang::XServiceInfo,
310 css::util::XModifyListener,
311 css::lang::XComponent
321 css::uno::Reference< css::chart2::data::XDataSequence >
m_xData;
322 css::uno::Reference< css::chart2::data::XDataSequence >
m_xLabels;
329 void SetDataSequence( css::uno::Reference< css::chart2::data::XDataSequence >& rxDest,
const css::uno::Reference< css::chart2::data::XDataSequence >& rxSource );
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;
342 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL
createClone( )
override;
350 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
353 virtual void SAL_CALL
modified(
const css::lang::EventObject& aEvent )
override;
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;
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;
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEventListeners
void InvalidateTable(const SwTable *pTable, bool bImmediate=false)
void RemoveDataSequence(const SwTable &rTable, rtl::Reference< SwChartDataSequence > const &rxDataSequence)
SwChartDataProvider(const SwChartDataProvider &)=delete
virtual sal_Bool SAL_CALL createDataSourcePossible(const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL createDataSequenceByValueArray(const OUString &aRole, const OUString &aRangeRepresentation, const OUString &aRoleQualifier) override
css::uno::Reference< css::chart2::data::XDataSource > Impl_createDataSource(const css::uno::Sequence< css::beans::PropertyValue > &aArguments, bool bTestOnly=false)
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual void SAL_CALL dispose() override
virtual OUString SAL_CALL convertRangeToXML(const OUString &aRangeRepresentation) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
std::map< const SwTable *, Vec_DataSequenceRef_t > Map_Set_DataSequenceRef_t
css::uno::Reference< css::chart2::data::XDataSequence > Impl_createDataSequenceByRangeRepresentation(std::u16string_view aRangeRepresentation, bool bTestOnly=false)
virtual sal_Bool SAL_CALL createDataSequenceByRangeRepresentationPossible(const OUString &aRangeRepresentation) override
virtual css::uno::Reference< css::chart2::data::XDataSource > SAL_CALL createDataSource(const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL detectArguments(const css::uno::Reference< css::chart2::data::XDataSource > &xDataSource) override
virtual css::uno::Reference< css::sheet::XRangeSelection > SAL_CALL getRangeSelection() override
virtual OUString SAL_CALL convertRangeFromXML(const OUString &aXMLRange) override
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...
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
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...
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL createDataSequenceByRangeRepresentation(const OUString &aRangeRepresentation) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~SwChartDataProvider() override
void AddDataSequence(const SwTable &rTable, rtl::Reference< SwChartDataSequence > const &rxDataSequence)
virtual OUString SAL_CALL getImplementationName() override
Map_Set_DataSequenceRef_t m_aDataSequences
void DisposeAllDataSequences(const SwTable *pTable)
void DeleteBox(const SwTable *pTable, const SwTableBox &rBox)
std::vector< unotools::WeakReference< SwChartDataSequence > > Vec_DataSequenceRef_t
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.
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEvtListeners
virtual css::uno::Sequence< OUString > SAL_CALL getTextualData() override
virtual void Notify(const SfxHint &rHint) override
std::vector< css::uno::Reference< css::table::XCell > > GetCells()
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
const SfxItemPropertySet * m_pPropSet
virtual OUString SAL_CALL getImplementationName() override
::comphelper::OInterfaceContainerHelper4< css::util::XModifyListener > m_aModifyListeners
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
SwFrameFormat * GetFrameFormat() const
SwFrameFormat * m_pFormat
virtual css::uno::Sequence< double > SAL_CALL getNumericalData() override
virtual void SAL_CALL setModified(sal_Bool bModified) override
virtual OUString SAL_CALL getSourceRangeRepresentation() override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
void FillRangeDesc(SwRangeDescriptor &rRangeDesc) const
virtual void SAL_CALL dispose() override
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getData() override
bool DeleteBox(const SwTableBox &rBox)
css::chart2::data::DataSequenceRole m_aRole
SwChartDataSequence(const SwChartDataSequence &rObj)
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
sw::UnoCursorPointer m_pTableCursor
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
rtl::Reference< SwChartDataProvider > m_xDataProvider
virtual ::sal_Int32 SAL_CALL getNumberFormatKeyByIndex(::sal_Int32 nIndex) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual ~SwChartDataSequence() override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual sal_Bool SAL_CALL isModified() override
virtual css::uno::Sequence< OUString > SAL_CALL generateLabel(css::chart2::data::LabelOrigin eLabelOrigin) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
SwChartDataSource(const SwChartDataSource &)=delete
SwChartDataSource(const css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > &rLDS)
virtual OUString SAL_CALL getImplementationName() override
virtual ~SwChartDataSource() override
SwChartDataSource & operator=(const SwChartDataSource &)=delete
css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > m_aLDS
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< css::uno::Reference< css::chart2::data::XLabeledDataSequence > > SAL_CALL getDataSequences() override
static void DoUpdateAllCharts(SwDoc *pDoc)
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL dispose() override
SwChartLabeledDataSequence()
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
SwChartLabeledDataSequence(const SwChartLabeledDataSequence &)=delete
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
css::uno::Reference< css::chart2::data::XDataSequence > m_xData
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL getLabel() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
::comphelper::OInterfaceContainerHelper4< css::util::XModifyListener > m_aModifyListeners
SwChartLabeledDataSequence & operator=(const SwChartLabeledDataSequence &)=delete
virtual void SAL_CALL setValues(const css::uno::Reference< css::chart2::data::XDataSequence > &xSequence) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEventListeners
virtual void SAL_CALL addModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL setLabel(const css::uno::Reference< css::chart2::data::XDataSequence > &xSequence) override
virtual ~SwChartLabeledDataSequence() override
css::uno::Reference< css::chart2::data::XDataSequence > m_xLabels
virtual void SAL_CALL removeModifyListener(const css::uno::Reference< css::util::XModifyListener > &aListener) override
void SetDataSequence(css::uno::Reference< css::chart2::data::XDataSequence > &rxDest, const css::uno::Reference< css::chart2::data::XDataSequence > &rxSource)
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL getValues() override
void StartOrContinueLocking()
SwChartLockController_Helper & operator=(const SwChartLockController_Helper &)=delete
SwChartLockController_Helper(const SwChartLockController_Helper &)=delete
~SwChartLockController_Helper()
DECL_LINK(DoUnlockAllCharts, Timer *, void)
void LockUnlockAllCharts(bool bLock)
SwTableBox is one table cell in the document model.
SwTable is one table in the document model, containing rows (which contain cells).
cppu::WeakImplHelper< css::chart2::data::XDataProvider, css::chart2::data::XRangeXMLConversion, css::lang::XComponent, css::lang::XServiceInfo > SwChartDataProviderBaseClass
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
cppu::WeakImplHelper< css::chart2::data::XDataSource, css::lang::XServiceInfo > SwChartDataSourceBaseClass
cppu::WeakImplHelper< css::chart2::data::XLabeledDataSequence2, css::lang::XServiceInfo, css::util::XModifyListener, css::lang::XComponent > SwChartLabeledDataSequenceBaseClass
bool FillRangeDescriptor(SwRangeDescriptor &rDesc, std::u16string_view rCellRangeName)
rCellRangeName needs to be of one of the following formats: