LibreOffice Module chart2 (master) 1
|
Data provider that handles data internally. More...
#include <InternalDataProvider.hxx>
Public Member Functions | |
InternalDataProvider () | |
InternalDataProvider (const rtl::Reference< ::chart::ChartModel > &xChartDoc, bool bConnectToModel, bool bDefaultDataInColumns) | |
InternalDataProvider (const InternalDataProvider &rOther) | |
virtual | ~InternalDataProvider () override |
virtual OUString SAL_CALL | getImplementationName () override |
declare XServiceInfo methods More... | |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual sal_Bool SAL_CALL | hasDataByRangeRepresentation (const OUString &aRange) override |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getDataByRangeRepresentation (const OUString &aRange) override |
virtual void SAL_CALL | setDataByRangeRepresentation (const OUString &aRange, const css::uno::Sequence< css::uno::Any > &aNewData) override |
virtual void SAL_CALL | insertSequence (::sal_Int32 nAfterIndex) override |
virtual void SAL_CALL | deleteSequence (::sal_Int32 nAtIndex) override |
virtual void SAL_CALL | appendSequence () override |
virtual void SAL_CALL | insertComplexCategoryLevel (::sal_Int32 nLevel) override |
virtual void SAL_CALL | deleteComplexCategoryLevel (::sal_Int32 nLevel) override |
virtual void SAL_CALL | insertDataPointForAllSequences (::sal_Int32 nAfterIndex) override |
virtual void SAL_CALL | deleteDataPointForAllSequences (::sal_Int32 nAtIndex) override |
virtual void SAL_CALL | swapDataPointWithNextOneForAllSequences (::sal_Int32 nAtIndex) override |
virtual void SAL_CALL | registerDataSequenceForChanges (const css::uno::Reference< css::chart2::data::XDataSequence > &xSeq) override |
virtual sal_Bool SAL_CALL | createDataSourcePossible (const css::uno::Sequence< css::beans::PropertyValue > &aArguments) 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 sal_Bool SAL_CALL | createDataSequenceByRangeRepresentationPossible (const OUString &aRangeRepresentation) override |
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL | createDataSequenceByRangeRepresentation (const OUString &aRangeRepresentation) override |
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL | createDataSequenceByValueArray (const OUString &aRole, const OUString &aRangeRepresentation, const OUString &aRoleQualifier) override |
virtual css::uno::Reference< css::sheet::XRangeSelection > SAL_CALL | getRangeSelection () override |
virtual OUString SAL_CALL | convertRangeToXML (const OUString &aRangeRepresentation) override |
virtual OUString SAL_CALL | convertRangeFromXML (const OUString &aXMLRange) override |
virtual css::uno::Sequence< double > SAL_CALL | getDateCategories () override |
virtual void SAL_CALL | setDateCategories (const css::uno::Sequence< double > &rDates) override |
virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL | getAnyRowDescriptions () override |
virtual void SAL_CALL | setAnyRowDescriptions (const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &aRowDescriptions) override |
virtual css::uno::Sequence< css::uno::Sequence< css::uno::Any > > SAL_CALL | getAnyColumnDescriptions () override |
virtual void SAL_CALL | setAnyColumnDescriptions (const css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &aColumnDescriptions) override |
virtual css::uno::Sequence< css::uno::Sequence< OUString > > SAL_CALL | getComplexRowDescriptions () override |
virtual void SAL_CALL | setComplexRowDescriptions (const css::uno::Sequence< css::uno::Sequence< OUString > > &aRowDescriptions) override |
virtual css::uno::Sequence< css::uno::Sequence< OUString > > SAL_CALL | getComplexColumnDescriptions () override |
virtual void SAL_CALL | setComplexColumnDescriptions (const css::uno::Sequence< css::uno::Sequence< OUString > > &aColumnDescriptions) override |
virtual css::uno::Sequence< css::uno::Sequence< double > > SAL_CALL | getData () override |
virtual void SAL_CALL | setData (const css::uno::Sequence< css::uno::Sequence< double > > &aData) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getRowDescriptions () override |
virtual void SAL_CALL | setRowDescriptions (const css::uno::Sequence< OUString > &aRowDescriptions) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getColumnDescriptions () override |
virtual void SAL_CALL | setColumnDescriptions (const css::uno::Sequence< OUString > &aColumnDescriptions) override |
virtual void SAL_CALL | addChartDataChangeEventListener (const css::uno::Reference< css::chart::XChartDataChangeEventListener > &aListener) override |
virtual void SAL_CALL | removeChartDataChangeEventListener (const css::uno::Reference< css::chart::XChartDataChangeEventListener > &aListener) override |
virtual double SAL_CALL | getNotANumber () override |
virtual sal_Bool SAL_CALL | isNotANumber (double nNumber) override |
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL | createClone () override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
Private Types | |
typedef std::multimap< OUString, css::uno::WeakReference< css::chart2::data::XDataSequence > > | tSequenceMap |
typedef std::pair< tSequenceMap::iterator, tSequenceMap::iterator > | tSequenceMapRange |
Private Member Functions | |
void | addDataSequenceToMap (const OUString &rRangeRepresentation, const css::uno::Reference< css::chart2::data::XDataSequence > &xSequence) |
css::uno::Reference< css::chart2::data::XDataSequence > | createDataSequenceAndAddToMap (const OUString &rRangeRepresentation, const OUString &rRole) |
rtl::Reference< UncachedDataSequence > | createDataSequenceAndAddToMap (const OUString &rRangeRepresentation) |
rtl::Reference< UncachedDataSequence > | createDataSequenceFromArray (const OUString &rArrayStr, std::u16string_view rRole, std::u16string_view rRoleQualifier) |
void | deleteMapReferences (const OUString &rRangeRepresentation) |
void | adaptMapReferences (const OUString &rOldRangeRepresentation, const OUString &rNewRangeRepresentation) |
void | increaseMapReferences (sal_Int32 nBegin, sal_Int32 nEnd) |
void | decreaseMapReferences (sal_Int32 nBegin, sal_Int32 nEnd) |
Private Attributes | |
tSequenceMap | m_aSequenceMap |
cache for all sequences that have been returned. More... | |
InternalData | m_aInternalData |
bool | m_bDataInColumns |
Data provider that handles data internally.
This is used for charts with their own data.
The format for single ranges is "categories|label n|n" where n is a non-negative number. Meaning return all categories, the label of sequence n, or the data of sequence n.
The format for a complete range is "all". (Do we need more than that?)
Definition at line 67 of file InternalDataProvider.hxx.
|
private |
Definition at line 204 of file InternalDataProvider.hxx.
|
private |
Definition at line 205 of file InternalDataProvider.hxx.
|
explicit |
Definition at line 302 of file InternalDataProvider.cxx.
Referenced by createClone().
|
explicit |
|
explicit |
Definition at line 399 of file InternalDataProvider.cxx.
|
overridevirtual |
Definition at line 406 of file InternalDataProvider.cxx.
|
private |
Definition at line 436 of file InternalDataProvider.cxx.
References m_aSequenceMap.
Referenced by decreaseMapReferences(), and increaseMapReferences().
|
overridevirtual |
Definition at line 1493 of file InternalDataProvider.cxx.
|
private |
Definition at line 409 of file InternalDataProvider.cxx.
References m_aSequenceMap.
Referenced by createDataSequenceAndAddToMap(), createDataSequenceFromArray(), and registerDataSequenceForChanges().
|
overridevirtual |
Definition at line 1050 of file InternalDataProvider.cxx.
References chart::InternalData::appendColumn(), chart::InternalData::appendRow(), m_aInternalData, and m_bDataInColumns.
|
overridevirtual |
Definition at line 1239 of file InternalDataProvider.cxx.
References chart::XMLRangeHelper::CellRange::aLowerRight, chart::XMLRangeHelper::CellRange::aUpperLeft, chart::XMLRangeHelper::Cell::bIsEmpty, chart::XMLRangeHelper::getCellRangeFromXMLString(), m_bDataInColumns, chart::XMLRangeHelper::Cell::nColumn, chart::XMLRangeHelper::Cell::nRow, and u.
|
overridevirtual |
Definition at line 1163 of file InternalDataProvider.cxx.
References chart::XMLRangeHelper::CellRange::aLowerRight, chart::XMLRangeHelper::CellRange::aTableName, chart::XMLRangeHelper::CellRange::aUpperLeft, chart::XMLRangeHelper::Cell::bIsEmpty, chart::InternalData::getColumnCount(), chart::InternalData::getRowCount(), chart::XMLRangeHelper::getXMLStringFromCellRange(), m_aInternalData, m_bDataInColumns, chart::XMLRangeHelper::Cell::nColumn, nIndex, chart::XMLRangeHelper::Cell::nRow, and o3tl::toInt32().
|
overridevirtual |
Definition at line 1522 of file InternalDataProvider.cxx.
References InternalDataProvider().
|
private |
Definition at line 483 of file InternalDataProvider.cxx.
References addDataSequenceToMap(), createDataSequenceFromArray(), and u.
|
private |
Definition at line 666 of file InternalDataProvider.cxx.
References addDataSequenceToMap().
Referenced by createDataSequenceByRangeRepresentation(), and createDataSource().
|
overridevirtual |
Definition at line 815 of file InternalDataProvider.cxx.
References createDataSequenceAndAddToMap(), chart::InternalData::getColumnCount(), chart::InternalData::getRowCount(), m_aInternalData, m_bDataInColumns, nIndex, and o3tl::toInt32().
|
overridevirtual |
Definition at line 810 of file InternalDataProvider.cxx.
|
overridevirtual |
Definition at line 848 of file InternalDataProvider.cxx.
References createDataSequenceFromArray().
|
private |
Definition at line 496 of file InternalDataProvider.cxx.
References addDataSequenceToMap(), chart::InternalData::appendColumn(), chart::InternalData::getColumnCount(), chart::InternalData::getComplexColumnLabel(), i, m_aInternalData, n, p, chart::InternalData::setColumnValues(), chart::InternalData::setComplexColumnLabel(), chart::InternalData::setComplexRowLabel(), and u.
Referenced by createDataSequenceAndAddToMap(), and createDataSequenceByValueArray().
|
overridevirtual |
Definition at line 697 of file InternalDataProvider.cxx.
References aArguments, comphelper::containerToSequence(), createDataSequenceAndAddToMap(), chart::InternalData::getColumnCount(), chart::InternalData::getComplexColumnLabels(), chart::InternalData::getComplexRowLabels(), chart::InternalData::getRowCount(), m_aInternalData, m_bDataInColumns, nCount, and chart::DataSourceHelper::readArguments().
|
overridevirtual |
Definition at line 677 of file InternalDataProvider.cxx.
|
private |
Definition at line 471 of file InternalDataProvider.cxx.
References adaptMapReferences(), and nIndex.
Referenced by deleteSequence().
|
overridevirtual |
Definition at line 1074 of file InternalDataProvider.cxx.
References chart::InternalData::getComplexColumnLabels(), chart::InternalData::getComplexRowLabels(), m_aInternalData, m_aSequenceMap, m_bDataInColumns, chart::InternalData::setComplexColumnLabels(), and chart::InternalData::setComplexRowLabels().
|
overridevirtual |
Definition at line 1114 of file InternalDataProvider.cxx.
References chart::InternalData::deleteColumn(), chart::InternalData::deleteRow(), chart::InternalData::getColumnCount(), chart::InternalData::getRowCount(), m_aInternalData, m_aSequenceMap, and m_bDataInColumns.
|
private |
Definition at line 418 of file InternalDataProvider.cxx.
References m_aSequenceMap.
Referenced by deleteSequence().
|
overridevirtual |
Definition at line 1034 of file InternalDataProvider.cxx.
References decreaseMapReferences(), chart::InternalData::deleteColumn(), deleteMapReferences(), chart::InternalData::deleteRow(), chart::InternalData::getColumnCount(), chart::InternalData::getRowCount(), m_aInternalData, and m_bDataInColumns.
|
overridevirtual |
Definition at line 785 of file InternalDataProvider.cxx.
References aArguments, and m_bDataInColumns.
|
overridevirtual |
Definition at line 1424 of file InternalDataProvider.cxx.
References chart::InternalData::getComplexColumnLabels(), and m_aInternalData.
|
overridevirtual |
Definition at line 1416 of file InternalDataProvider.cxx.
References chart::InternalData::getComplexRowLabels(), and m_aInternalData.
|
overridevirtual |
Definition at line 1485 of file InternalDataProvider.cxx.
References chart::InternalData::getComplexColumnLabels(), chart::ExplicitCategoriesProvider::getExplicitSimpleCategories(), and m_aInternalData.
Referenced by getDataByRangeRepresentation().
|
overridevirtual |
Definition at line 1442 of file InternalDataProvider.cxx.
References comphelper::containerToSequence(), chart::InternalData::getComplexColumnLabels(), and m_aInternalData.
|
overridevirtual |
Definition at line 1434 of file InternalDataProvider.cxx.
References comphelper::containerToSequence(), chart::InternalData::getComplexRowLabels(), and m_aInternalData.
Definition at line 1452 of file InternalDataProvider.cxx.
References chart::InternalData::getData(), and m_aInternalData.
|
overridevirtual |
Definition at line 884 of file InternalDataProvider.cxx.
References aData, comphelper::containerToSequence(), getColumnDescriptions(), chart::InternalData::getColumnValues(), chart::InternalData::getComplexColumnLabel(), chart::InternalData::getComplexColumnLabels(), chart::InternalData::getComplexRowLabel(), chart::InternalData::getComplexRowLabels(), getDataByRangeRepresentation(), getRowDescriptions(), chart::InternalData::getRowValues(), m_aInternalData, m_bDataInColumns, nIndex, o3tl::toInt32(), and o3tl::toUInt32().
Referenced by getDataByRangeRepresentation().
|
overridevirtual |
Definition at line 1379 of file InternalDataProvider.cxx.
References chart::InternalData::getComplexColumnLabels(), chart::InternalData::getComplexRowLabels(), m_aInternalData, m_bDataInColumns, and nCount.
|
overridevirtual |
declare XServiceInfo methods
Definition at line 1527 of file InternalDataProvider.cxx.
|
overridevirtual |
Definition at line 1503 of file InternalDataProvider.cxx.
|
overridevirtual |
Definition at line 854 of file InternalDataProvider.cxx.
|
overridevirtual |
Definition at line 1478 of file InternalDataProvider.cxx.
References chart::InternalData::getComplexRowLabels(), chart::ExplicitCategoriesProvider::getExplicitSimpleCategories(), and m_aInternalData.
Referenced by getDataByRangeRepresentation().
|
overridevirtual |
Definition at line 1538 of file InternalDataProvider.cxx.
|
overridevirtual |
Definition at line 861 of file InternalDataProvider.cxx.
References chart::InternalData::getColumnCount(), chart::InternalData::getRowCount(), m_aInternalData, m_bDataInColumns, nIndex, and o3tl::toInt32().
|
private |
Definition at line 459 of file InternalDataProvider.cxx.
References adaptMapReferences(), and nIndex.
Referenced by insertSequence().
|
overridevirtual |
Definition at line 1514 of file InternalDataProvider.cxx.
References chart::InternalData::createDefaultData(), comphelper::SequenceAsHashMap::getUnpackedValueOrDefault(), and m_aInternalData.
|
overridevirtual |
Definition at line 1058 of file InternalDataProvider.cxx.
References chart::InternalData::getComplexColumnLabels(), chart::InternalData::getComplexRowLabels(), m_aInternalData, m_aSequenceMap, m_bDataInColumns, chart::InternalData::setComplexColumnLabels(), and chart::InternalData::setComplexRowLabels().
|
overridevirtual |
Definition at line 1091 of file InternalDataProvider.cxx.
References chart::InternalData::getColumnCount(), chart::InternalData::getRowCount(), chart::InternalData::insertColumn(), chart::InternalData::insertRow(), m_aInternalData, m_aSequenceMap, and m_bDataInColumns.
|
overridevirtual |
Definition at line 1020 of file InternalDataProvider.cxx.
References chart::InternalData::getColumnCount(), chart::InternalData::getRowCount(), increaseMapReferences(), chart::InternalData::insertColumn(), chart::InternalData::insertRow(), m_aInternalData, and m_bDataInColumns.
|
overridevirtual |
Definition at line 1508 of file InternalDataProvider.cxx.
|
overridevirtual |
Definition at line 1156 of file InternalDataProvider.cxx.
References addDataSequenceToMap().
|
overridevirtual |
Definition at line 1498 of file InternalDataProvider.cxx.
|
overridevirtual |
Definition at line 1428 of file InternalDataProvider.cxx.
References m_aInternalData, and chart::InternalData::setComplexColumnLabels().
|
overridevirtual |
Definition at line 1420 of file InternalDataProvider.cxx.
References m_aInternalData, and chart::InternalData::setComplexRowLabels().
|
overridevirtual |
Definition at line 1470 of file InternalDataProvider.cxx.
References m_aInternalData, and chart::InternalData::setComplexColumnLabels().
|
overridevirtual |
Definition at line 1446 of file InternalDataProvider.cxx.
References m_aInternalData, and chart::InternalData::setComplexColumnLabels().
|
overridevirtual |
Definition at line 1438 of file InternalDataProvider.cxx.
References m_aInternalData, and chart::InternalData::setComplexRowLabels().
|
overridevirtual |
Definition at line 1457 of file InternalDataProvider.cxx.
References m_aInternalData, and chart::InternalData::setData().
|
overridevirtual |
Definition at line 954 of file InternalDataProvider.cxx.
References chart::InternalData::getComplexColumnLabels(), chart::InternalData::getComplexRowLabels(), m_aInternalData, m_bDataInColumns, nIndex, comphelper::sequenceToContainer(), chart::InternalData::setColumnValues(), chart::InternalData::setComplexColumnLabel(), chart::InternalData::setComplexColumnLabels(), chart::InternalData::setComplexRowLabel(), chart::InternalData::setComplexRowLabels(), chart::InternalData::setRowValues(), and o3tl::toInt32().
|
overridevirtual |
Definition at line 1396 of file InternalDataProvider.cxx.
References m_aInternalData, m_bDataInColumns, nCount, chart::InternalData::setComplexColumnLabels(), and chart::InternalData::setComplexRowLabels().
|
overridevirtual |
Definition at line 1462 of file InternalDataProvider.cxx.
References m_aInternalData, and chart::InternalData::setComplexRowLabels().
|
overridevirtual |
Definition at line 1533 of file InternalDataProvider.cxx.
References cppu::supportsService().
|
overridevirtual |
Definition at line 1137 of file InternalDataProvider.cxx.
References chart::InternalData::getColumnCount(), chart::InternalData::getRowCount(), m_aInternalData, m_aSequenceMap, m_bDataInColumns, chart::InternalData::swapColumnWithNext(), and chart::InternalData::swapRowWithNext().
|
private |
Definition at line 214 of file InternalDataProvider.hxx.
Referenced by appendSequence(), convertRangeToXML(), createDataSequenceByRangeRepresentation(), createDataSequenceFromArray(), createDataSource(), deleteComplexCategoryLevel(), deleteDataPointForAllSequences(), deleteSequence(), getAnyColumnDescriptions(), getAnyRowDescriptions(), getColumnDescriptions(), getComplexColumnDescriptions(), getComplexRowDescriptions(), getData(), getDataByRangeRepresentation(), getDateCategories(), getRowDescriptions(), hasDataByRangeRepresentation(), initialize(), insertComplexCategoryLevel(), insertDataPointForAllSequences(), insertSequence(), setAnyColumnDescriptions(), setAnyRowDescriptions(), setColumnDescriptions(), setComplexColumnDescriptions(), setComplexRowDescriptions(), setData(), setDataByRangeRepresentation(), setDateCategories(), setRowDescriptions(), and swapDataPointWithNextOneForAllSequences().
|
private |
cache for all sequences that have been returned.
If the range-representation of a sequence changes and it is still referred to by some component (weak reference is valid), the range will be adapted.
Definition at line 213 of file InternalDataProvider.hxx.
Referenced by adaptMapReferences(), addDataSequenceToMap(), deleteComplexCategoryLevel(), deleteDataPointForAllSequences(), deleteMapReferences(), insertComplexCategoryLevel(), insertDataPointForAllSequences(), and swapDataPointWithNextOneForAllSequences().
|
private |
Definition at line 215 of file InternalDataProvider.hxx.
Referenced by appendSequence(), convertRangeFromXML(), convertRangeToXML(), createDataSequenceByRangeRepresentation(), createDataSource(), deleteComplexCategoryLevel(), deleteDataPointForAllSequences(), deleteSequence(), detectArguments(), getDataByRangeRepresentation(), getDateCategories(), hasDataByRangeRepresentation(), insertComplexCategoryLevel(), insertDataPointForAllSequences(), insertSequence(), setDataByRangeRepresentation(), setDateCategories(), and swapDataPointWithNextOneForAllSequences().