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 *pDoc)
 
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) 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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 

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 47 of file PivotTableDataProvider.hxx.

Constructor & Destructor Documentation

sc::PivotTableDataProvider::PivotTableDataProvider ( ScDocument pDoc)
explicit

Definition at line 137 of file PivotTableDataProvider.cxx.

sc::PivotTableDataProvider::~PivotTableDataProvider ( )
overridevirtual

Definition at line 148 of file PivotTableDataProvider.cxx.

Member Function Documentation

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

Definition at line 823 of file PivotTableDataProvider.cxx.

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

Definition at line 880 of file PivotTableDataProvider.cxx.

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

Definition at line 894 of file PivotTableDataProvider.cxx.

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

Definition at line 638 of file PivotTableDataProvider.cxx.

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

Definition at line 598 of file PivotTableDataProvider.cxx.

References aLabel, and ScResId().

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

Definition at line 581 of file PivotTableDataProvider.cxx.

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

Definition at line 244 of file PivotTableDataProvider.cxx.

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

Definition at line 708 of file PivotTableDataProvider.cxx.

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

Definition at line 702 of file PivotTableDataProvider.cxx.

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

Definition at line 715 of file PivotTableDataProvider.cxx.

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

Definition at line 804 of file PivotTableDataProvider.cxx.

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

Definition at line 793 of file PivotTableDataProvider.cxx.

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

Definition at line 782 of file PivotTableDataProvider.cxx.

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

Definition at line 196 of file PivotTableDataProvider.cxx.

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

Definition at line 182 of file PivotTableDataProvider.cxx.

References ScDPCollection::GetByName().

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

Definition at line 657 of file PivotTableDataProvider.cxx.

References i.

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

Definition at line 688 of file PivotTableDataProvider.cxx.

References comphelper::InitPropertySequence().

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

Definition at line 734 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence().

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

Definition at line 749 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence().

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

Definition at line 814 of file PivotTableDataProvider.cxx.

virtual OUString SAL_CALL sc::PivotTableDataProvider::getImplementationName ( )
overridevirtual
uno::Sequence< chart2::data::PivotTableFieldEntry > sc::PivotTableDataProvider::getPageFields ( )
overridevirtual

Definition at line 744 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence().

OUString sc::PivotTableDataProvider::getPivotTableName ( )
overridevirtual

Definition at line 754 of file PivotTableDataProvider.cxx.

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

Definition at line 848 of file PivotTableDataProvider.cxx.

uno::Any SAL_CALL sc::PivotTableDataProvider::getPropertyValue ( const OUString &  rPropertyName)
overridevirtual
uno::Reference< sheet::XRangeSelection > SAL_CALL sc::PivotTableDataProvider::getRangeSelection ( )
overridevirtual

Definition at line 721 of file PivotTableDataProvider.cxx.

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

Definition at line 739 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence().

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

Definition at line 767 of file PivotTableDataProvider.cxx.

References ScDPCollection::GetByName().

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

Definition at line 234 of file PivotTableDataProvider.cxx.

References m_xContext.

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

Reimplemented from SfxListener.

Definition at line 156 of file PivotTableDataProvider.cxx.

References aEvent, and SfxHint::GetId().

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

Definition at line 830 of file PivotTableDataProvider.cxx.

References n, and nCount.

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

Definition at line 887 of file PivotTableDataProvider.cxx.

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

Definition at line 901 of file PivotTableDataProvider.cxx.

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

Definition at line 759 of file PivotTableDataProvider.cxx.

References ScDPCollection::GetByName().

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

Definition at line 856 of file PivotTableDataProvider.cxx.

References SC_UNONAME_INCLUDEHIDDENCELLS.

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

Member Data Documentation

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

Definition at line 163 of file PivotTableDataProvider.hxx.

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

Definition at line 164 of file PivotTableDataProvider.hxx.

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

Definition at line 168 of file PivotTableDataProvider.hxx.

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

Definition at line 171 of file PivotTableDataProvider.hxx.

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

Definition at line 166 of file PivotTableDataProvider.hxx.

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

Definition at line 173 of file PivotTableDataProvider.hxx.

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

Definition at line 165 of file PivotTableDataProvider.hxx.

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

Definition at line 170 of file PivotTableDataProvider.hxx.

SfxItemPropertySet sc::PivotTableDataProvider::m_aPropSet
private

Definition at line 160 of file PivotTableDataProvider.hxx.

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

Definition at line 169 of file PivotTableDataProvider.hxx.

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

Definition at line 179 of file PivotTableDataProvider.hxx.

bool sc::PivotTableDataProvider::m_bIncludeHiddenCells
private

Definition at line 161 of file PivotTableDataProvider.hxx.

bool sc::PivotTableDataProvider::m_bNeedsUpdate
private

Definition at line 175 of file PivotTableDataProvider.hxx.

ScDocument* sc::PivotTableDataProvider::m_pDocument
private

Definition at line 158 of file PivotTableDataProvider.hxx.

OUString sc::PivotTableDataProvider::m_sPivotTableName
private

Definition at line 159 of file PivotTableDataProvider.hxx.

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

Definition at line 177 of file PivotTableDataProvider.hxx.


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