23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/chart/XDateCategories.hpp>
25#include <com/sun/star/chart2/XAnyDescriptionAccess.hpp>
26#include <com/sun/star/chart2/XInternalDataProvider.hpp>
27#include <com/sun/star/chart2/data/XRangeXMLConversion.hpp>
28#include <com/sun/star/lang/XInitialization.hpp>
29#include <com/sun/star/util/XCloneable.hpp>
41class UncachedDataSequence;
46typedef ::cppu::WeakImplHelper<
47 css::chart2::XInternalDataProvider,
48 css::chart2::data::XRangeXMLConversion,
49 css::chart2::XAnyDescriptionAccess,
50 css::chart::XDateCategories,
51 css::util::XCloneable,
52 css::lang::XInitialization,
53 css::lang::XServiceInfo >
78 bool bDefaultDataInColumns );
89 virtual css::uno::Sequence< css::uno::Any > SAL_CALL
92 const OUString& aRange,
93 const css::uno::Sequence< css::uno::Any >& aNewData )
override;
94 virtual void SAL_CALL
insertSequence( ::sal_Int32 nAfterIndex )
override;
95 virtual void SAL_CALL
deleteSequence( ::sal_Int32 nAtIndex )
override;
103 const css::uno::Reference< css::chart2::data::XDataSequence >& xSeq )
override;
107 const css::uno::Sequence< css::beans::PropertyValue >& aArguments )
override;
108 virtual css::uno::Reference< css::chart2::data::XDataSource > SAL_CALL
createDataSource(
109 const css::uno::Sequence< css::beans::PropertyValue >& aArguments )
override;
110 virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL
detectArguments(
111 const css::uno::Reference< css::chart2::data::XDataSource >& xDataSource )
override;
113 const OUString& aRangeRepresentation )
override;
115 const OUString& aRangeRepresentation )
override;
117 virtual css::uno::Reference<css::chart2::data::XDataSequence> SAL_CALL
119 const OUString& aRoleQualifier )
override;
121 virtual css::uno::Reference< css::sheet::XRangeSelection > SAL_CALL
getRangeSelection()
override;
125 const OUString& aRangeRepresentation )
override;
127 const OUString& aXMLRange )
override;
131 virtual void SAL_CALL
setDateCategories(
const css::uno::Sequence< double >& rDates )
override;
134 virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL
137 const css::uno::Sequence< css::uno::Sequence< css::uno::Any > >& aRowDescriptions )
override;
138 virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL
141 const css::uno::Sequence< css::uno::Sequence< css::uno::Any > >& aColumnDescriptions )
override;
144 virtual css::uno::Sequence< css::uno::Sequence< OUString > > SAL_CALL
147 const css::uno::Sequence< css::uno::Sequence< OUString > >& aRowDescriptions )
override;
148 virtual css::uno::Sequence< css::uno::Sequence< OUString > > SAL_CALL
151 const css::uno::Sequence< css::uno::Sequence< OUString > >& aColumnDescriptions )
override;
154 virtual css::uno::Sequence< css::uno::Sequence< double > > SAL_CALL
getData()
override;
156 const css::uno::Sequence< css::uno::Sequence< double > >& aData )
override;
159 const css::uno::Sequence< OUString >& aRowDescriptions )
override;
162 const css::uno::Sequence< OUString >& aColumnDescriptions )
override;
166 const css::uno::Reference< css::chart::XChartDataChangeEventListener >& aListener )
override;
168 const css::uno::Reference< css::chart::XChartDataChangeEventListener >& aListener )
override;
171 double nNumber )
override;
174 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL
createClone()
override;
176 virtual void SAL_CALL
initialize(
const css::uno::Sequence< css::uno::Any > & aArguments)
override;
180 const OUString & rRangeRepresentation,
181 const css::uno::Reference< css::chart2::data::XDataSequence > & xSequence );
183 css::uno::Reference< css::chart2::data::XDataSequence >
185 const OUString & rRole );
191 std::u16string_view rRoleQualifier);
196 const OUString & rOldRangeRepresentation,
197 const OUString & rNewRangeRepresentation );
202 typedef std::multimap< OUString,
203 css::uno::WeakReference< css::chart2::data::XDataSequence > >
Data provider that handles data internally.
std::multimap< OUString, css::uno::WeakReference< css::chart2::data::XDataSequence > > tSequenceMap
virtual void SAL_CALL appendSequence() override
InternalData m_aInternalData
virtual void SAL_CALL setDateCategories(const css::uno::Sequence< double > &rDates) override
virtual void SAL_CALL setAnyRowDescriptions(const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &aRowDescriptions) override
void increaseMapReferences(sal_Int32 nBegin, sal_Int32 nEnd)
virtual OUString SAL_CALL convertRangeFromXML(const OUString &aXMLRange) override
virtual void SAL_CALL removeChartDataChangeEventListener(const css::uno::Reference< css::chart::XChartDataChangeEventListener > &aListener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< css::uno::Sequence< OUString > > SAL_CALL getComplexRowDescriptions() override
virtual void SAL_CALL swapDataPointWithNextOneForAllSequences(::sal_Int32 nAtIndex) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL getAnyColumnDescriptions() override
virtual void SAL_CALL setComplexColumnDescriptions(const css::uno::Sequence< css::uno::Sequence< OUString > > &aColumnDescriptions) override
void adaptMapReferences(const OUString &rOldRangeRepresentation, const OUString &rNewRangeRepresentation)
virtual void SAL_CALL setColumnDescriptions(const css::uno::Sequence< OUString > &aColumnDescriptions) override
virtual ~InternalDataProvider() override
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL createDataSequenceByValueArray(const OUString &aRole, const OUString &aRangeRepresentation, const OUString &aRoleQualifier) override
virtual void SAL_CALL setDataByRangeRepresentation(const OUString &aRange, const css::uno::Sequence< css::uno::Any > &aNewData) override
virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL getAnyRowDescriptions() override
virtual OUString SAL_CALL getImplementationName() override
declare XServiceInfo methods
InternalDataProvider(const rtl::Reference< ::chart::ChartModel > &xChartDoc, bool bConnectToModel, bool bDefaultDataInColumns)
virtual sal_Bool SAL_CALL createDataSourcePossible(const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override
virtual sal_Bool SAL_CALL createDataSequenceByRangeRepresentationPossible(const OUString &aRangeRepresentation) override
virtual OUString SAL_CALL convertRangeToXML(const OUString &aRangeRepresentation) override
void addDataSequenceToMap(const OUString &rRangeRepresentation, const css::uno::Reference< css::chart2::data::XDataSequence > &xSequence)
virtual void SAL_CALL addChartDataChangeEventListener(const css::uno::Reference< css::chart::XChartDataChangeEventListener > &aListener) override
virtual void SAL_CALL insertDataPointForAllSequences(::sal_Int32 nAfterIndex) override
virtual void SAL_CALL setData(const css::uno::Sequence< css::uno::Sequence< double > > &aData) 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::chart2::data::XDataSource > SAL_CALL createDataSource(const css::uno::Sequence< css::beans::PropertyValue > &aArguments) override
virtual css::uno::Reference< css::sheet::XRangeSelection > SAL_CALL getRangeSelection() override
std::pair< tSequenceMap::iterator, tSequenceMap::iterator > tSequenceMapRange
void decreaseMapReferences(sal_Int32 nBegin, sal_Int32 nEnd)
virtual css::uno::Sequence< double > SAL_CALL getDateCategories() override
virtual sal_Bool SAL_CALL isNotANumber(double nNumber) override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Sequence< OUString > SAL_CALL getRowDescriptions() override
virtual css::uno::Sequence< css::uno::Sequence< double > > SAL_CALL getData() override
virtual double SAL_CALL getNotANumber() override
void deleteMapReferences(const OUString &rRangeRepresentation)
tSequenceMap m_aSequenceMap
cache for all sequences that have been returned.
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getDataByRangeRepresentation(const OUString &aRange) override
virtual void SAL_CALL deleteDataPointForAllSequences(::sal_Int32 nAtIndex) override
css::uno::Reference< css::chart2::data::XDataSequence > createDataSequenceAndAddToMap(const OUString &rRangeRepresentation, const OUString &rRole)
virtual void SAL_CALL deleteSequence(::sal_Int32 nAtIndex) override
virtual void SAL_CALL registerDataSequenceForChanges(const css::uno::Reference< css::chart2::data::XDataSequence > &xSeq) override
virtual void SAL_CALL setRowDescriptions(const css::uno::Sequence< OUString > &aRowDescriptions) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< css::uno::Sequence< OUString > > SAL_CALL getComplexColumnDescriptions() override
virtual void SAL_CALL deleteComplexCategoryLevel(::sal_Int32 nLevel) override
virtual sal_Bool SAL_CALL hasDataByRangeRepresentation(const OUString &aRange) override
virtual void SAL_CALL setComplexRowDescriptions(const css::uno::Sequence< css::uno::Sequence< OUString > > &aRowDescriptions) override
virtual void SAL_CALL insertComplexCategoryLevel(::sal_Int32 nLevel) override
virtual void SAL_CALL setAnyColumnDescriptions(const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &aColumnDescriptions) override
rtl::Reference< UncachedDataSequence > createDataSequenceFromArray(const OUString &rArrayStr, std::u16string_view rRole, std::u16string_view rRoleQualifier)
virtual css::uno::Sequence< OUString > SAL_CALL getColumnDescriptions() override
virtual void SAL_CALL insertSequence(::sal_Int32 nAfterIndex) override
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL createDataSequenceByRangeRepresentation(const OUString &aRangeRepresentation) override
::cppu::WeakImplHelper< css::chart2::XInternalDataProvider, css::chart2::data::XRangeXMLConversion, css::chart2::XAnyDescriptionAccess, css::chart::XDateCategories, css::util::XCloneable, css::lang::XInitialization, css::lang::XServiceInfo > InternalDataProvider_Base