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

#include <dpgroup.hxx>

Inheritance diagram for ScDPGroupTableData:
[legend]
Collaboration diagram for ScDPGroupTableData:
[legend]

Public Member Functions

 ScDPGroupTableData (const std::shared_ptr< ScDPTableData > &pSource, ScDocument *pDocument)
 
virtual ~ScDPGroupTableData () override
 
const std::shared_ptr< ScDPTableData > & GetSourceTableData () const
 
void AddGroupDimension (const ScDPGroupDimension &rGroup)
 
void SetNumGroupDimension (long nIndex, const ScDPNumGroupDimension &rGroup)
 
long GetDimensionIndex (const OUString &rName)
 
virtual long GetColumnCount () override
 use (new) typed collection instead of ScStrCollection or separate Str and ValueCollection More...
 
virtual long GetMembersCount (long nDim) override
 
virtual const std::vector< SCROW > & GetColumnEntries (long nColumn) override
 
virtual const ScDPItemDataGetMemberById (long nDim, long nId) override
 
virtual long Compare (long nDim, long nDataId1, long nDataId2) override
 
virtual OUString getDimensionName (long nColumn) override
 
virtual bool getIsDataLayoutDimension (long nColumn) override
 
virtual bool IsDateDimension (long nDim) override
 
virtual sal_uInt32 GetNumberFormat (long nDim) override
 
virtual void DisposeData () override
 
virtual void SetEmptyFlags (bool bIgnoreEmptyRows, bool bRepeatIfEmpty) override
 
virtual bool IsRepeatIfEmpty () override
 
virtual void CreateCacheTable () override
 
virtual void FilterCacheTable (const std::vector< ScDPFilteredCache::Criterion > &rCriteria, const std::unordered_set< sal_Int32 > &rDataDims) override
 
virtual void GetDrillDownData (const std::vector< ScDPFilteredCache::Criterion > &rCriteria, const std::unordered_set< sal_Int32 > &rCatDims, css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &rData) override
 
virtual void CalcResults (CalcInfo &rInfo, bool bAutoShow) override
 
virtual const ScDPFilteredCacheGetCacheTable () const override
 
virtual void ReloadCacheTable () override
 
virtual bool IsBaseForGroup (long nDim) const override
 
virtual long GetGroupBase (long nGroupDim) const override
 
virtual bool IsNumOrDateGroup (long nDim) const override
 
virtual bool IsInGroup (const ScDPItemData &rGroupData, long nGroupIndex, const ScDPItemData &rBaseData, long nBaseIndex) const override
 
virtual bool HasCommonElement (const ScDPItemData &rFirstData, long nFirstIndex, const ScDPItemData &rSecondData, long nSecondIndex) const override
 
virtual void Dump () const override
 
- Public Member Functions inherited from ScDPTableData
 ScDPTableData (const ScDPTableData &)=delete
 
const ScDPTableDataoperator= (const ScDPTableData &)=delete
 
 ScDPTableData (const ScDocument *pDoc)
 
virtual ~ScDPTableData ()
 
OUString GetFormattedString (long nDim, const ScDPItemData &rItem, bool bLocaleIndependent) const
 
long GetDatePart (long nDateVal, long nHierarchy, long nLevel)
 
sal_uInt32 GetNumberFormatByIdx (NfIndexTableOffset)
 
const ScDPItemDataGetMemberByIndex (long nDim, long nIndex)
 

Private Member Functions

void FillGroupValues (std::vector< SCROW > &rItems, const std::vector< long > &rDims)
 
virtual long GetSourceDim (long nDim) override
 
bool IsNumGroupDimension (long nDimension) const
 
void GetNumGroupInfo (long nDimension, ScDPNumGroupInfo &rInfo)
 
void ModifyFilterCriteria (::std::vector< ScDPFilteredCache::Criterion > &rCriteria)
 

Private Attributes

std::shared_ptr< ScDPTableDatapSourceData
 
long nSourceCount
 
std::vector< ScDPGroupDimensionaGroups
 
std::unique_ptr< ScDPNumGroupDimension[]> pNumGroups
 
ScDocumentpDoc
 

Additional Inherited Members

- Protected Member Functions inherited from ScDPTableData
void FillRowDataFromCacheTable (sal_Int32 nRow, const ScDPFilteredCache &rCacheTable, const CalcInfo &rInfo, CalcRowData &rData)
 
void CalcResultsFromCacheTable (const ScDPFilteredCache &rCacheTable, CalcInfo &rInfo, bool bAutoShow)
 
- Static Protected Member Functions inherited from ScDPTableData
static void ProcessRowData (CalcInfo &rInfo, const CalcRowData &rData, bool bAutoShow)
 

Detailed Description

Definition at line 115 of file dpgroup.hxx.

Constructor & Destructor Documentation

ScDPGroupTableData::ScDPGroupTableData ( const std::shared_ptr< ScDPTableData > &  pSource,
ScDocument pDocument 
)

Definition at line 463 of file dpgroup.cxx.

References CreateCacheTable(), nSourceCount, and pNumGroups.

ScDPGroupTableData::~ScDPGroupTableData ( )
overridevirtual

Definition at line 475 of file dpgroup.cxx.

Member Function Documentation

void ScDPGroupTableData::AddGroupDimension ( const ScDPGroupDimension rGroup)
void ScDPGroupTableData::CalcResults ( CalcInfo rInfo,
bool  bAutoShow 
)
overridevirtual
long ScDPGroupTableData::Compare ( long  nDim,
long  nDataId1,
long  nDataId2 
)
overridevirtual

Reimplemented from ScDPTableData.

Definition at line 1005 of file dpgroup.cxx.

References ScDPItemData::Compare(), getIsDataLayoutDimension(), and GetMemberById().

void ScDPGroupTableData::CreateCacheTable ( )
overridevirtual

Implements ScDPTableData.

Definition at line 618 of file dpgroup.cxx.

References pSourceData.

Referenced by ScDPGroupTableData().

void ScDPGroupTableData::DisposeData ( )
overridevirtual

Implements ScDPTableData.

Definition at line 597 of file dpgroup.cxx.

References aGroups, i, nSourceCount, pNumGroups, and pSourceData.

virtual void ScDPGroupTableData::Dump ( ) const
overridevirtual

Reimplemented from ScDPTableData.

void ScDPGroupTableData::FillGroupValues ( std::vector< SCROW > &  rItems,
const std::vector< long > &  rDims 
)
private
void ScDPGroupTableData::FilterCacheTable ( const std::vector< ScDPFilteredCache::Criterion > &  rCriteria,
const std::unordered_set< sal_Int32 > &  rDataDims 
)
overridevirtual

Implements ScDPTableData.

Definition at line 749 of file dpgroup.cxx.

References ModifyFilterCriteria(), and pSourceData.

const ScDPFilteredCache & ScDPGroupTableData::GetCacheTable ( ) const
overridevirtual

Implements ScDPTableData.

Definition at line 794 of file dpgroup.cxx.

References pSourceData.

Referenced by FillGroupValues(), GetColumnEntries(), and ModifyFilterCriteria().

long ScDPGroupTableData::GetColumnCount ( )
overridevirtual

use (new) typed collection instead of ScStrCollection or separate Str and ValueCollection

Implements ScDPTableData.

Definition at line 504 of file dpgroup.cxx.

References aGroups, and nSourceCount.

Referenced by AddGroupDimension().

const std::vector< SCROW > & ScDPGroupTableData::GetColumnEntries ( long  nColumn)
overridevirtual
long ScDPGroupTableData::GetDimensionIndex ( const OUString &  rName)

Definition at line 496 of file dpgroup.cxx.

References i, nSourceCount, and pSourceData.

Referenced by ScDPSaveGroupDimension::AddToData(), and ScDPSaveNumGroupDimension::AddToData().

OUString ScDPGroupTableData::getDimensionName ( long  nColumn)
overridevirtual

Implements ScDPTableData.

Definition at line 552 of file dpgroup.cxx.

References aGroups, nSourceCount, and pSourceData.

void ScDPGroupTableData::GetDrillDownData ( const std::vector< ScDPFilteredCache::Criterion > &  rCriteria,
const std::unordered_set< sal_Int32 > &  rCatDims,
css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &  rData 
)
overridevirtual

Implements ScDPTableData.

Definition at line 756 of file dpgroup.cxx.

References ModifyFilterCriteria(), pSourceData, and rData.

long ScDPGroupTableData::GetGroupBase ( long  nGroupDim) const
overridevirtual

Reimplemented from ScDPTableData.

Definition at line 880 of file dpgroup.cxx.

References aGroups.

bool ScDPGroupTableData::getIsDataLayoutDimension ( long  nColumn)
overridevirtual

Implements ScDPTableData.

Definition at line 565 of file dpgroup.cxx.

References aGroups, and nSourceCount.

Referenced by Compare(), GetColumnEntries(), and GetSourceDim().

const ScDPItemData * ScDPGroupTableData::GetMemberById ( long  nDim,
long  nId 
)
overridevirtual

Reimplemented from ScDPTableData.

Definition at line 547 of file dpgroup.cxx.

References pSourceData.

Referenced by Compare(), and FillGroupValues().

long ScDPGroupTableData::GetMembersCount ( long  nDim)
overridevirtual

Reimplemented from ScDPTableData.

Definition at line 519 of file dpgroup.cxx.

References GetColumnEntries(), and members.

sal_uInt32 ScDPGroupTableData::GetNumberFormat ( long  nDim)
overridevirtual

Reimplemented from ScDPTableData.

Definition at line 584 of file dpgroup.cxx.

References aGroups, nSourceCount, and pSourceData.

void ScDPGroupTableData::GetNumGroupInfo ( long  nDimension,
ScDPNumGroupInfo rInfo 
)
private

Definition at line 514 of file dpgroup.cxx.

References nSourceCount, and pNumGroups.

Referenced by FillGroupValues().

long ScDPGroupTableData::GetSourceDim ( long  nDim)
overrideprivatevirtual

Reimplemented from ScDPTableData.

Definition at line 993 of file dpgroup.cxx.

References aGroups, getIsDataLayoutDimension(), ScDPGroupDimension::GetSourceDim(), and nSourceCount.

const std::shared_ptr<ScDPTableData>& ScDPGroupTableData::GetSourceTableData ( ) const
inline

Definition at line 138 of file dpgroup.hxx.

References pSourceData.

Referenced by ScDPObject::ReloadGroupTableData().

bool ScDPGroupTableData::HasCommonElement ( const ScDPItemData rFirstData,
long  nFirstIndex,
const ScDPItemData rSecondData,
long  nSecondIndex 
) const
overridevirtual
bool ScDPGroupTableData::IsBaseForGroup ( long  nDim) const
overridevirtual

Reimplemented from ScDPTableData.

Definition at line 874 of file dpgroup.cxx.

References aGroups.

bool ScDPGroupTableData::IsDateDimension ( long  nDim)
overridevirtual

Implements ScDPTableData.

Definition at line 571 of file dpgroup.cxx.

References aGroups, nSourceCount, and pSourceData.

bool ScDPGroupTableData::IsInGroup ( const ScDPItemData rGroupData,
long  nGroupIndex,
const ScDPItemData rBaseData,
long  nBaseIndex 
) const
overridevirtual
bool ScDPGroupTableData::IsNumGroupDimension ( long  nDimension) const
private

Definition at line 509 of file dpgroup.cxx.

References GetInfo, nSourceCount, and pNumGroups.

Referenced by FillGroupValues(), GetColumnEntries(), and ModifyFilterCriteria().

bool ScDPGroupTableData::IsNumOrDateGroup ( long  nDim) const
overridevirtual

Reimplemented from ScDPTableData.

Definition at line 890 of file dpgroup.cxx.

References aGroups, nSourceCount, and pNumGroups.

bool ScDPGroupTableData::IsRepeatIfEmpty ( )
overridevirtual

Reimplemented from ScDPTableData.

Definition at line 613 of file dpgroup.cxx.

References pSourceData.

void ScDPGroupTableData::ModifyFilterCriteria ( ::std::vector< ScDPFilteredCache::Criterion > &  rCriteria)
private
void ScDPGroupTableData::ReloadCacheTable ( )
overridevirtual

Implements ScDPTableData.

Definition at line 799 of file dpgroup.cxx.

References pSourceData.

void ScDPGroupTableData::SetEmptyFlags ( bool  bIgnoreEmptyRows,
bool  bRepeatIfEmpty 
)
overridevirtual

Implements ScDPTableData.

Definition at line 608 of file dpgroup.cxx.

References pSourceData.

void ScDPGroupTableData::SetNumGroupDimension ( long  nIndex,
const ScDPNumGroupDimension rGroup 
)

Definition at line 486 of file dpgroup.cxx.

References nSourceCount, and pNumGroups.

Referenced by ScDPSaveNumGroupDimension::AddToData().

Member Data Documentation

std::vector<ScDPGroupDimension> ScDPGroupTableData::aGroups
private
long ScDPGroupTableData::nSourceCount
private
ScDocument* ScDPGroupTableData::pDoc
private

Definition at line 123 of file dpgroup.hxx.

Referenced by FillGroupValues(), and ModifyFilterCriteria().

std::unique_ptr<ScDPNumGroupDimension[]> ScDPGroupTableData::pNumGroups
private
std::shared_ptr<ScDPTableData> ScDPGroupTableData::pSourceData
private

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