LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sc::PivotTableDataProvider Class Referencefinal

#include <PivotTableDataProvider.hxx>

Inheritance diagram for sc::PivotTableDataProvider:
[legend]
Collaboration diagram for sc::PivotTableDataProvider:
[legend]

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
 
SfxBroadcasterGetBroadcasterJOE (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

ScDocumentm_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
 

Detailed Description

Definition at line 46 of file PivotTableDataProvider.hxx.

Constructor & Destructor Documentation

◆ PivotTableDataProvider()

sc::PivotTableDataProvider::PivotTableDataProvider ( ScDocument rDoc)
explicit

Definition at line 137 of file PivotTableDataProvider.cxx.

◆ ~PivotTableDataProvider()

sc::PivotTableDataProvider::~PivotTableDataProvider ( )
overridevirtual

Definition at line 147 of file PivotTableDataProvider.cxx.

References m_pDocument, and ScDocument::RemoveUnoObject().

Member Function Documentation

◆ addModifyListener()

void SAL_CALL sc::PivotTableDataProvider::addModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual

Definition at line 818 of file PivotTableDataProvider.cxx.

References m_aValueListeners.

◆ addPropertyChangeListener()

void SAL_CALL sc::PivotTableDataProvider::addPropertyChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  xListener 
)
overridevirtual

Definition at line 875 of file PivotTableDataProvider.cxx.

◆ addVetoableChangeListener()

void SAL_CALL sc::PivotTableDataProvider::addVetoableChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  rListener 
)
overridevirtual

Definition at line 889 of file PivotTableDataProvider.cxx.

◆ assignFirstCategoriesToDataSequence()

css::uno::Reference< css::chart2::data::XDataSequence > sc::PivotTableDataProvider::assignFirstCategoriesToDataSequence ( )
private

◆ assignLabelsToDataSequence()

uno::Reference< chart2::data::XDataSequence > sc::PivotTableDataProvider::assignLabelsToDataSequence ( size_t  nIndex)
private

◆ assignValuesToDataSequence()

uno::Reference< chart2::data::XDataSequence > sc::PivotTableDataProvider::assignValuesToDataSequence ( size_t  nIndex)
private

◆ collectPivotTableData()

void sc::PivotTableDataProvider::collectPivotTableData ( )
private

◆ createCategoriesDataSource()

uno::Reference< chart2::data::XDataSource > sc::PivotTableDataProvider::createCategoriesDataSource ( bool  bOrientationIsColumn)
private

◆ createDataSequenceByRangeRepresentation()

uno::Reference< chart2::data::XDataSequence > SAL_CALL sc::PivotTableDataProvider::createDataSequenceByRangeRepresentation ( const OUString &  aRangeRepresentation)
overridevirtual

Definition at line 702 of file PivotTableDataProvider.cxx.

◆ createDataSequenceByRangeRepresentationPossible()

sal_Bool SAL_CALL sc::PivotTableDataProvider::createDataSequenceByRangeRepresentationPossible ( const OUString &  aRangeRepresentation)
overridevirtual

Definition at line 696 of file PivotTableDataProvider.cxx.

◆ createDataSequenceByValueArray()

uno::Reference< chart2::data::XDataSequence > SAL_CALL sc::PivotTableDataProvider::createDataSequenceByValueArray ( const OUString &  aRole,
const OUString &  aRangeRepresentation,
const OUString &  aRoleQualifier 
)
overridevirtual

Definition at line 709 of file PivotTableDataProvider.cxx.

◆ createDataSequenceOfCategories()

uno::Reference< css::chart2::data::XDataSequence > sc::PivotTableDataProvider::createDataSequenceOfCategories ( )
overridevirtual

◆ createDataSequenceOfLabelsByIndex()

uno::Reference< css::chart2::data::XDataSequence > sc::PivotTableDataProvider::createDataSequenceOfLabelsByIndex ( sal_Int32  nIndex)
overridevirtual

◆ createDataSequenceOfValuesByIndex()

uno::Reference< chart2::data::XDataSequence > sc::PivotTableDataProvider::createDataSequenceOfValuesByIndex ( sal_Int32  nIndex)
overridevirtual

◆ createDataSource()

uno::Reference< chart2::data::XDataSource > SAL_CALL sc::PivotTableDataProvider::createDataSource ( const css::uno::Sequence< css::beans::PropertyValue > &  aArguments)
overridevirtual

◆ createDataSourcePossible()

sal_Bool SAL_CALL sc::PivotTableDataProvider::createDataSourcePossible ( const css::uno::Sequence< css::beans::PropertyValue > &  aArguments)
overridevirtual

◆ createValuesDataSource()

uno::Reference< chart2::data::XDataSource > sc::PivotTableDataProvider::createValuesDataSource ( )
private

◆ detectArguments()

uno::Sequence< beans::PropertyValue > SAL_CALL sc::PivotTableDataProvider::detectArguments ( const css::uno::Reference< css::chart2::data::XDataSource > &  xDataSource)
overridevirtual

Definition at line 682 of file PivotTableDataProvider.cxx.

References comphelper::InitPropertySequence(), and m_pDocument.

◆ getColumnFields()

uno::Sequence< chart2::data::PivotTableFieldEntry > sc::PivotTableDataProvider::getColumnFields ( )
overridevirtual

◆ getDataFields()

uno::Sequence< chart2::data::PivotTableFieldEntry > sc::PivotTableDataProvider::getDataFields ( )
overridevirtual

Definition at line 744 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence(), and m_aDataFields.

◆ getFieldOutputDescription()

OUString sc::PivotTableDataProvider::getFieldOutputDescription ( sal_Int32  nPageFieldIndex)
overridevirtual

Definition at line 809 of file PivotTableDataProvider.cxx.

References m_aFieldOutputDescriptionMap.

◆ getImplementationName()

virtual OUString SAL_CALL sc::PivotTableDataProvider::getImplementationName ( )
overridevirtual

◆ getPageFields()

uno::Sequence< chart2::data::PivotTableFieldEntry > sc::PivotTableDataProvider::getPageFields ( )
overridevirtual

Definition at line 739 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence(), and m_aPageFields.

◆ getPivotTableName()

OUString sc::PivotTableDataProvider::getPivotTableName ( )
overridevirtual

Definition at line 749 of file PivotTableDataProvider.cxx.

References m_sPivotTableName.

◆ getPropertySetInfo()

uno::Reference< beans::XPropertySetInfo > SAL_CALL sc::PivotTableDataProvider::getPropertySetInfo ( )
overridevirtual

Definition at line 843 of file PivotTableDataProvider.cxx.

References SfxItemPropertySet::getPropertyMap(), and m_aPropSet.

◆ getPropertyValue()

uno::Any SAL_CALL sc::PivotTableDataProvider::getPropertyValue ( const OUString &  rPropertyName)
overridevirtual

◆ getRangeSelection()

uno::Reference< sheet::XRangeSelection > SAL_CALL sc::PivotTableDataProvider::getRangeSelection ( )
overridevirtual

Definition at line 716 of file PivotTableDataProvider.cxx.

References m_pDocument, and xModel.

◆ getRowFields()

uno::Sequence< chart2::data::PivotTableFieldEntry > sc::PivotTableDataProvider::getRowFields ( )
overridevirtual

Definition at line 734 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence(), and m_aRowFields.

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL sc::PivotTableDataProvider::getSupportedServiceNames ( )
overridevirtual

◆ hasPivotTable()

sal_Bool sc::PivotTableDataProvider::hasPivotTable ( )
overridevirtual

◆ newLabeledDataSequence()

uno::Reference< chart2::data::XLabeledDataSequence > sc::PivotTableDataProvider::newLabeledDataSequence ( )
private

Definition at line 232 of file PivotTableDataProvider.cxx.

References m_xContext.

Referenced by createCategoriesDataSource(), and createValuesDataSource().

◆ Notify()

void sc::PivotTableDataProvider::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

◆ removeModifyListener()

void SAL_CALL sc::PivotTableDataProvider::removeModifyListener ( const css::uno::Reference< css::util::XModifyListener > &  aListener)
overridevirtual

Definition at line 825 of file PivotTableDataProvider.cxx.

References m_aValueListeners, n, and nCount.

◆ removePropertyChangeListener()

void SAL_CALL sc::PivotTableDataProvider::removePropertyChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener > &  rListener 
)
overridevirtual

Definition at line 882 of file PivotTableDataProvider.cxx.

◆ removeVetoableChangeListener()

void SAL_CALL sc::PivotTableDataProvider::removeVetoableChangeListener ( const OUString &  rPropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener > &  rListener 
)
overridevirtual

Definition at line 896 of file PivotTableDataProvider.cxx.

◆ setPivotTableName()

void sc::PivotTableDataProvider::setPivotTableName ( const OUString &  sPivotTableName)
overridevirtual

◆ setPropertyValue()

void SAL_CALL sc::PivotTableDataProvider::setPropertyValue ( const OUString &  rPropertyName,
const css::uno::Any &  rValue 
)
overridevirtual

◆ supportsService()

virtual sal_Bool SAL_CALL sc::PivotTableDataProvider::supportsService ( const OUString &  rServiceName)
overridevirtual

Member Data Documentation

◆ m_aCategoriesColumnOrientation

std::vector<std::vector<ValueAndFormat> > sc::PivotTableDataProvider::m_aCategoriesColumnOrientation
private

◆ m_aCategoriesRowOrientation

std::vector<std::vector<ValueAndFormat> > sc::PivotTableDataProvider::m_aCategoriesRowOrientation
private

◆ m_aColumnFields

std::vector<css::chart2::data::PivotTableFieldEntry> sc::PivotTableDataProvider::m_aColumnFields
private

Definition at line 168 of file PivotTableDataProvider.hxx.

Referenced by collectPivotTableData(), and getColumnFields().

◆ m_aDataFields

std::vector<css::chart2::data::PivotTableFieldEntry> sc::PivotTableDataProvider::m_aDataFields
private

Definition at line 171 of file PivotTableDataProvider.hxx.

Referenced by collectPivotTableData(), and getDataFields().

◆ m_aDataRowVector

std::vector<std::vector<ValueAndFormat> > sc::PivotTableDataProvider::m_aDataRowVector
private

◆ m_aFieldOutputDescriptionMap

std::unordered_map<sal_Int32, OUString> sc::PivotTableDataProvider::m_aFieldOutputDescriptionMap
private

Definition at line 173 of file PivotTableDataProvider.hxx.

Referenced by collectPivotTableData(), and getFieldOutputDescription().

◆ m_aLabels

std::vector<std::vector<ValueAndFormat> > sc::PivotTableDataProvider::m_aLabels
private

◆ m_aPageFields

std::vector<css::chart2::data::PivotTableFieldEntry> sc::PivotTableDataProvider::m_aPageFields
private

Definition at line 170 of file PivotTableDataProvider.hxx.

Referenced by collectPivotTableData(), and getPageFields().

◆ m_aPropSet

SfxItemPropertySet sc::PivotTableDataProvider::m_aPropSet
private

Definition at line 160 of file PivotTableDataProvider.hxx.

Referenced by getPropertySetInfo().

◆ m_aRowFields

std::vector<css::chart2::data::PivotTableFieldEntry> sc::PivotTableDataProvider::m_aRowFields
private

Definition at line 169 of file PivotTableDataProvider.hxx.

Referenced by collectPivotTableData(), and getRowFields().

◆ m_aValueListeners

std::vector<css::uno::Reference<css::util::XModifyListener> > sc::PivotTableDataProvider::m_aValueListeners
private

Definition at line 179 of file PivotTableDataProvider.hxx.

Referenced by addModifyListener(), Notify(), and removeModifyListener().

◆ m_bIncludeHiddenCells

bool sc::PivotTableDataProvider::m_bIncludeHiddenCells
private

Definition at line 161 of file PivotTableDataProvider.hxx.

Referenced by getPropertyValue(), and setPropertyValue().

◆ m_bNeedsUpdate

bool sc::PivotTableDataProvider::m_bNeedsUpdate
private

◆ m_pDocument

ScDocument* sc::PivotTableDataProvider::m_pDocument
private

◆ m_sPivotTableName

OUString sc::PivotTableDataProvider::m_sPivotTableName
private

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> sc::PivotTableDataProvider::m_xContext
private

Definition at line 177 of file PivotTableDataProvider.hxx.

Referenced by newLabeledDataSequence().


The documentation for this class was generated from the following files: