LibreOffice Module sc (master) 1
|
#include <PivotTableDataProvider.hxx>
Public Member Functions | |
PivotTableDataProvider (ScDocument &rDoc) | |
virtual | ~PivotTableDataProvider () override |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) 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 css::uno::Sequence< css::chart2::data::PivotTableFieldEntry > SAL_CALL | getColumnFields () override |
virtual css::uno::Sequence< css::chart2::data::PivotTableFieldEntry > SAL_CALL | getRowFields () override |
virtual css::uno::Sequence< css::chart2::data::PivotTableFieldEntry > SAL_CALL | getPageFields () override |
virtual css::uno::Sequence< css::chart2::data::PivotTableFieldEntry > SAL_CALL | getDataFields () override |
virtual OUString SAL_CALL | getPivotTableName () override |
virtual void SAL_CALL | setPivotTableName (const OUString &sPivotTableName) override |
virtual sal_Bool SAL_CALL | hasPivotTable () override |
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL | createDataSequenceOfValuesByIndex (sal_Int32 nIndex) override |
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL | createDataSequenceOfLabelsByIndex (sal_Int32 nIndex) override |
virtual css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL | createDataSequenceOfCategories () override |
virtual OUString SAL_CALL | getFieldOutputDescription (sal_Int32 nPageFieldIndex) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | setPropertyValue (const OUString &rPropertyName, const css::uno::Any &rValue) override |
virtual css::uno::Any SAL_CALL | getPropertyValue (const OUString &rPropertyName) override |
virtual void SAL_CALL | addPropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override |
virtual void SAL_CALL | removePropertyChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &rListener) override |
virtual void SAL_CALL | addVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &rListener) override |
virtual void SAL_CALL | removeVetoableChangeListener (const OUString &rPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &rListener) override |
virtual void SAL_CALL | addModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual void SAL_CALL | removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &aListener) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &rServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Public Member Functions inherited from SfxListener | |
SfxListener () | |
SfxListener (const SfxListener &rCopy) | |
virtual | ~SfxListener () COVERITY_NOEXCEPT_FALSE |
void | StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected) |
void | EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false) |
void | EndListeningAll () |
bool | IsListening (SfxBroadcaster &rBroadcaster) const |
sal_uInt16 | GetBroadcasterCount () const |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
virtual bool | IsSdrView () const |
Private Member Functions | |
css::uno::Reference< css::chart2::data::XDataSource > | createValuesDataSource () |
css::uno::Reference< css::chart2::data::XDataSource > | createCategoriesDataSource (bool bOrientationIsColumn) |
css::uno::Reference< css::chart2::data::XLabeledDataSequence > | newLabeledDataSequence () |
css::uno::Reference< css::chart2::data::XDataSequence > | assignLabelsToDataSequence (size_t nIndex) |
css::uno::Reference< css::chart2::data::XDataSequence > | assignValuesToDataSequence (size_t nIndex) |
css::uno::Reference< css::chart2::data::XDataSequence > | assignFirstCategoriesToDataSequence () |
void | collectPivotTableData () |
Private Attributes | |
ScDocument * | m_pDocument |
OUString | m_sPivotTableName |
SfxItemPropertySet | m_aPropSet |
bool | m_bIncludeHiddenCells |
std::vector< std::vector< ValueAndFormat > > | m_aCategoriesColumnOrientation |
std::vector< std::vector< ValueAndFormat > > | m_aCategoriesRowOrientation |
std::vector< std::vector< ValueAndFormat > > | m_aLabels |
std::vector< std::vector< ValueAndFormat > > | m_aDataRowVector |
std::vector< css::chart2::data::PivotTableFieldEntry > | m_aColumnFields |
std::vector< css::chart2::data::PivotTableFieldEntry > | m_aRowFields |
std::vector< css::chart2::data::PivotTableFieldEntry > | m_aPageFields |
std::vector< css::chart2::data::PivotTableFieldEntry > | m_aDataFields |
std::unordered_map< sal_Int32, OUString > | m_aFieldOutputDescriptionMap |
bool | m_bNeedsUpdate |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
std::vector< css::uno::Reference< css::util::XModifyListener > > | m_aValueListeners |
Definition at line 46 of file PivotTableDataProvider.hxx.
|
explicit |
Definition at line 137 of file PivotTableDataProvider.cxx.
|
overridevirtual |
Definition at line 147 of file PivotTableDataProvider.cxx.
References m_pDocument, and ScDocument::RemoveUnoObject().
|
overridevirtual |
Definition at line 818 of file PivotTableDataProvider.cxx.
References m_aValueListeners.
|
overridevirtual |
Definition at line 875 of file PivotTableDataProvider.cxx.
|
overridevirtual |
Definition at line 889 of file PivotTableDataProvider.cxx.
|
private |
Definition at line 633 of file PivotTableDataProvider.cxx.
References m_aCategoriesColumnOrientation, and m_pDocument.
Referenced by createDataSequenceOfCategories(), and createValuesDataSource().
|
private |
Definition at line 594 of file PivotTableDataProvider.cxx.
References aLabel, m_aLabels, m_pDocument, nIndex, and ScResId().
Referenced by createDataSequenceOfLabelsByIndex(), and createValuesDataSource().
|
private |
Definition at line 578 of file PivotTableDataProvider.cxx.
References m_aDataRowVector, m_pDocument, and nIndex.
Referenced by createDataSequenceOfValuesByIndex(), and createValuesDataSource().
|
private |
Definition at line 268 of file PivotTableDataProvider.cxx.
References ScUnoHelpFunctions::GetBoolProperty(), ScDPCollection::GetByName(), ScDocument::GetDPCollection(), ScUnoHelpFunctions::GetEnumProperty(), ScUnoHelpFunctions::GetLongProperty(), ScDPObject::GetSource(), i, m_aCategoriesColumnOrientation, m_aCategoriesRowOrientation, m_aColumnFields, m_aDataFields, m_aDataRowVector, m_aFieldOutputDescriptionMap, m_aLabels, m_aPageFields, m_aRowFields, m_bNeedsUpdate, m_pDocument, m_sPivotTableName, o3tl::make_unsigned(), SC_UNO_DP_HAS_HIDDEN_MEMBER, SC_UNO_DP_ISDATALAYOUT, SC_UNO_DP_NUMBERFO, SC_UNO_DP_ORIENTATION, SC_UNO_DP_POSITION, SC_UNO_DP_USEDHIERARCHY, ScResId(), size, and sName.
Referenced by createCategoriesDataSource(), createDataSequenceOfCategories(), createDataSequenceOfLabelsByIndex(), createDataSequenceOfValuesByIndex(), and createValuesDataSource().
|
private |
Definition at line 242 of file PivotTableDataProvider.cxx.
References collectPivotTableData(), m_aCategoriesColumnOrientation, m_aCategoriesRowOrientation, m_bNeedsUpdate, m_pDocument, and newLabeledDataSequence().
Referenced by createDataSource().
|
overridevirtual |
Definition at line 702 of file PivotTableDataProvider.cxx.
|
overridevirtual |
Definition at line 696 of file PivotTableDataProvider.cxx.
|
overridevirtual |
Definition at line 709 of file PivotTableDataProvider.cxx.
|
overridevirtual |
Definition at line 799 of file PivotTableDataProvider.cxx.
References assignFirstCategoriesToDataSequence(), collectPivotTableData(), and m_bNeedsUpdate.
|
overridevirtual |
Definition at line 788 of file PivotTableDataProvider.cxx.
References assignLabelsToDataSequence(), collectPivotTableData(), m_bNeedsUpdate, and nIndex.
|
overridevirtual |
Definition at line 777 of file PivotTableDataProvider.cxx.
References assignValuesToDataSequence(), collectPivotTableData(), m_bNeedsUpdate, and nIndex.
|
overridevirtual |
Definition at line 194 of file PivotTableDataProvider.cxx.
References aArguments, createCategoriesDataSource(), createValuesDataSource(), and m_pDocument.
|
overridevirtual |
Definition at line 180 of file PivotTableDataProvider.cxx.
References ScDPCollection::GetByName(), ScDocument::GetDPCollection(), m_pDocument, and m_sPivotTableName.
|
private |
Definition at line 651 of file PivotTableDataProvider.cxx.
References assignFirstCategoriesToDataSequence(), assignLabelsToDataSequence(), assignValuesToDataSequence(), collectPivotTableData(), i, m_aDataRowVector, m_bNeedsUpdate, and newLabeledDataSequence().
Referenced by createDataSource().
|
overridevirtual |
Definition at line 682 of file PivotTableDataProvider.cxx.
References comphelper::InitPropertySequence(), and m_pDocument.
|
overridevirtual |
Definition at line 729 of file PivotTableDataProvider.cxx.
References comphelper::containerToSequence(), and m_aColumnFields.
|
overridevirtual |
Definition at line 744 of file PivotTableDataProvider.cxx.
References comphelper::containerToSequence(), and m_aDataFields.
|
overridevirtual |
Definition at line 809 of file PivotTableDataProvider.cxx.
References m_aFieldOutputDescriptionMap.
|
overridevirtual |
|
overridevirtual |
Definition at line 739 of file PivotTableDataProvider.cxx.
References comphelper::containerToSequence(), and m_aPageFields.
|
overridevirtual |
Definition at line 749 of file PivotTableDataProvider.cxx.
References m_sPivotTableName.
|
overridevirtual |
Definition at line 843 of file PivotTableDataProvider.cxx.
References SfxItemPropertySet::getPropertyMap(), and m_aPropSet.
|
overridevirtual |
Definition at line 860 of file PivotTableDataProvider.cxx.
References m_bIncludeHiddenCells, m_pDocument, ScDocument::PastingDrawFromOtherDoc(), SC_UNONAME_INCLUDEHIDDENCELLS, and SC_UNONAME_USE_INTERNAL_DATA_PROVIDER.
|
overridevirtual |
Definition at line 716 of file PivotTableDataProvider.cxx.
References m_pDocument, and xModel.
|
overridevirtual |
Definition at line 734 of file PivotTableDataProvider.cxx.
References comphelper::containerToSequence(), and m_aRowFields.
|
overridevirtual |
|
overridevirtual |
Definition at line 762 of file PivotTableDataProvider.cxx.
References ScDPCollection::GetByName(), ScDocument::GetDPCollection(), m_pDocument, and m_sPivotTableName.
|
private |
Definition at line 232 of file PivotTableDataProvider.cxx.
References m_xContext.
Referenced by createCategoriesDataSource(), and createValuesDataSource().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 155 of file PivotTableDataProvider.cxx.
References aEvent, SfxHint::GetId(), m_aValueListeners, m_bNeedsUpdate, m_pDocument, and m_sPivotTableName.
|
overridevirtual |
Definition at line 825 of file PivotTableDataProvider.cxx.
References m_aValueListeners, n, and nCount.
|
overridevirtual |
Definition at line 882 of file PivotTableDataProvider.cxx.
|
overridevirtual |
Definition at line 896 of file PivotTableDataProvider.cxx.
|
overridevirtual |
Definition at line 754 of file PivotTableDataProvider.cxx.
References ScDPCollection::GetByName(), ScDocument::GetDPCollection(), m_pDocument, and m_sPivotTableName.
|
overridevirtual |
Definition at line 851 of file PivotTableDataProvider.cxx.
References m_bIncludeHiddenCells, and SC_UNONAME_INCLUDEHIDDENCELLS.
|
overridevirtual |
|
private |
Definition at line 163 of file PivotTableDataProvider.hxx.
Referenced by assignFirstCategoriesToDataSequence(), collectPivotTableData(), and createCategoriesDataSource().
|
private |
Definition at line 164 of file PivotTableDataProvider.hxx.
Referenced by collectPivotTableData(), and createCategoriesDataSource().
|
private |
Definition at line 168 of file PivotTableDataProvider.hxx.
Referenced by collectPivotTableData(), and getColumnFields().
|
private |
Definition at line 171 of file PivotTableDataProvider.hxx.
Referenced by collectPivotTableData(), and getDataFields().
|
private |
Definition at line 166 of file PivotTableDataProvider.hxx.
Referenced by assignValuesToDataSequence(), collectPivotTableData(), and createValuesDataSource().
|
private |
Definition at line 173 of file PivotTableDataProvider.hxx.
Referenced by collectPivotTableData(), and getFieldOutputDescription().
|
private |
Definition at line 165 of file PivotTableDataProvider.hxx.
Referenced by assignLabelsToDataSequence(), and collectPivotTableData().
|
private |
Definition at line 170 of file PivotTableDataProvider.hxx.
Referenced by collectPivotTableData(), and getPageFields().
|
private |
Definition at line 160 of file PivotTableDataProvider.hxx.
Referenced by getPropertySetInfo().
|
private |
Definition at line 169 of file PivotTableDataProvider.hxx.
Referenced by collectPivotTableData(), and getRowFields().
|
private |
Definition at line 179 of file PivotTableDataProvider.hxx.
Referenced by addModifyListener(), Notify(), and removeModifyListener().
|
private |
Definition at line 161 of file PivotTableDataProvider.hxx.
Referenced by getPropertyValue(), and setPropertyValue().
|
private |
Definition at line 175 of file PivotTableDataProvider.hxx.
Referenced by collectPivotTableData(), createCategoriesDataSource(), createDataSequenceOfCategories(), createDataSequenceOfLabelsByIndex(), createDataSequenceOfValuesByIndex(), createValuesDataSource(), and Notify().
|
private |
Definition at line 158 of file PivotTableDataProvider.hxx.
Referenced by assignFirstCategoriesToDataSequence(), assignLabelsToDataSequence(), assignValuesToDataSequence(), collectPivotTableData(), createCategoriesDataSource(), createDataSource(), createDataSourcePossible(), detectArguments(), getPropertyValue(), getRangeSelection(), hasPivotTable(), Notify(), setPivotTableName(), and ~PivotTableDataProvider().
|
private |
Definition at line 159 of file PivotTableDataProvider.hxx.
Referenced by collectPivotTableData(), createDataSourcePossible(), getPivotTableName(), hasPivotTable(), Notify(), and setPivotTableName().
|
private |
Definition at line 177 of file PivotTableDataProvider.hxx.
Referenced by newLabeledDataSequence().