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

Constructor & Destructor Documentation

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

Definition at line 137 of file PivotTableDataProvider.cxx.

sc::PivotTableDataProvider::~PivotTableDataProvider ( )
overridevirtual

Definition at line 147 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 817 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 874 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 888 of file PivotTableDataProvider.cxx.

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

Definition at line 633 of file PivotTableDataProvider.cxx.

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

Definition at line 594 of file PivotTableDataProvider.cxx.

References aLabel, and ScResId().

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

Definition at line 578 of file PivotTableDataProvider.cxx.

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

Definition at line 242 of file PivotTableDataProvider.cxx.

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

Definition at line 702 of file PivotTableDataProvider.cxx.

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

Definition at line 696 of file PivotTableDataProvider.cxx.

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

Definition at line 709 of file PivotTableDataProvider.cxx.

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

Definition at line 798 of file PivotTableDataProvider.cxx.

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

Definition at line 787 of file PivotTableDataProvider.cxx.

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

Definition at line 776 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 194 of file PivotTableDataProvider.cxx.

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

Definition at line 180 of file PivotTableDataProvider.cxx.

References ScDPCollection::GetByName().

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

Definition at line 651 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 682 of file PivotTableDataProvider.cxx.

References comphelper::InitPropertySequence().

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

Definition at line 728 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence().

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

Definition at line 743 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence().

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

Definition at line 808 of file PivotTableDataProvider.cxx.

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

Definition at line 738 of file PivotTableDataProvider.cxx.

References comphelper::containerToSequence().

OUString sc::PivotTableDataProvider::getPivotTableName ( )
overridevirtual

Definition at line 748 of file PivotTableDataProvider.cxx.

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

Definition at line 842 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 715 of file PivotTableDataProvider.cxx.

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

Definition at line 733 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 761 of file PivotTableDataProvider.cxx.

References ScDPCollection::GetByName().

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

Definition at line 232 of file PivotTableDataProvider.cxx.

References m_xContext.

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

Reimplemented from SfxListener.

Definition at line 155 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 824 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 881 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 895 of file PivotTableDataProvider.cxx.

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

Definition at line 753 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 850 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 162 of file PivotTableDataProvider.hxx.

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

Definition at line 163 of file PivotTableDataProvider.hxx.

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

Definition at line 167 of file PivotTableDataProvider.hxx.

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

Definition at line 170 of file PivotTableDataProvider.hxx.

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

Definition at line 165 of file PivotTableDataProvider.hxx.

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

Definition at line 172 of file PivotTableDataProvider.hxx.

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

Definition at line 164 of file PivotTableDataProvider.hxx.

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

Definition at line 169 of file PivotTableDataProvider.hxx.

SfxItemPropertySet sc::PivotTableDataProvider::m_aPropSet
private

Definition at line 159 of file PivotTableDataProvider.hxx.

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

Definition at line 168 of file PivotTableDataProvider.hxx.

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

Definition at line 178 of file PivotTableDataProvider.hxx.

bool sc::PivotTableDataProvider::m_bIncludeHiddenCells
private

Definition at line 160 of file PivotTableDataProvider.hxx.

bool sc::PivotTableDataProvider::m_bNeedsUpdate
private

Definition at line 174 of file PivotTableDataProvider.hxx.

ScDocument* sc::PivotTableDataProvider::m_pDocument
private

Definition at line 157 of file PivotTableDataProvider.hxx.

OUString sc::PivotTableDataProvider::m_sPivotTableName
private

Definition at line 158 of file PivotTableDataProvider.hxx.

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

Definition at line 176 of file PivotTableDataProvider.hxx.


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