LibreOffice Module sc (master) 1
Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ScDPTableData Class Referenceabstract

Base class that abstracts different data source types of a datapilot table. More...

#include <dptabdat.hxx>

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

Classes

struct  CalcInfo
 This structure stores dimension information used when calculating results. More...
 
struct  CalcRowData
 This structure stores vector arrays that hold intermediate data for each row during cache table iteration. More...
 

Public Member Functions

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

Protected Member Functions

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

static void ProcessRowData (CalcInfo &rInfo, const CalcRowData &rData, bool bAutoShow)
 

Private Member Functions

void GetItemData (const ScDPFilteredCache &rCacheTable, sal_Int32 nRow, const ::std::vector< sal_Int32 > &rDims, ::std::vector< SCROW > &rItemData)
 

Private Attributes

tools::Long nLastDateVal
 
tools::Long nLastHier
 
tools::Long nLastLevel
 
tools::Long nLastRet
 
const ScDocumentmpDoc
 

Detailed Description

Base class that abstracts different data source types of a datapilot table.

Definition at line 56 of file dptabdat.hxx.

Constructor & Destructor Documentation

◆ ScDPTableData() [1/2]

ScDPTableData::ScDPTableData ( const ScDPTableData )
delete

◆ ScDPTableData() [2/2]

ScDPTableData::ScDPTableData ( const ScDocument pDoc)

Definition at line 39 of file dptabdat.cxx.

References nLastDateVal, nLastHier, nLastLevel, and nLastRet.

◆ ~ScDPTableData()

ScDPTableData::~ScDPTableData ( )
virtual

Definition at line 47 of file dptabdat.cxx.

Member Function Documentation

◆ CalcResults()

virtual void ScDPTableData::CalcResults ( CalcInfo rInfo,
bool  bAutoShow 
)
pure virtual

◆ CalcResultsFromCacheTable()

void ScDPTableData::CalcResultsFromCacheTable ( const ScDPFilteredCache rCacheTable,
CalcInfo rInfo,
bool  bAutoShow 
)
protected

◆ Compare()

sal_Int32 ScDPTableData::Compare ( sal_Int32  nDim,
sal_Int32  nDataId1,
sal_Int32  nDataId2 
)
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 273 of file dptabdat.cxx.

References getIsDataLayoutDimension().

Referenced by ScDPMember::Compare().

◆ CreateCacheTable()

virtual void ScDPTableData::CreateCacheTable ( )
pure virtual

◆ DisposeData()

virtual void ScDPTableData::DisposeData ( )
pure virtual

◆ Dump()

virtual void ScDPTableData::Dump ( ) const
virtual

◆ FillRowDataFromCacheTable()

void ScDPTableData::FillRowDataFromCacheTable ( sal_Int32  nRow,
const ScDPFilteredCache rCacheTable,
const CalcInfo rInfo,
CalcRowData rData 
)
protected

◆ FilterCacheTable()

virtual void ScDPTableData::FilterCacheTable ( std::vector< ScDPFilteredCache::Criterion > &&  rCriteria,
std::unordered_set< sal_Int32 > &&  rDataDims 
)
pure virtual

◆ GetCacheTable()

virtual const ScDPFilteredCache & ScDPTableData::GetCacheTable ( ) const
pure virtual

◆ GetColumnCount()

virtual sal_Int32 ScDPTableData::GetColumnCount ( )
pure virtual

◆ GetColumnEntries()

const std::vector< SCROW > & ScDPTableData::GetColumnEntries ( sal_Int32  nColumn)
virtual

◆ GetDatePart()

tools::Long ScDPTableData::GetDatePart ( tools::Long  nDateVal,
tools::Long  nHierarchy,
tools::Long  nLevel 
)

◆ getDimensionName()

virtual OUString ScDPTableData::getDimensionName ( sal_Int32  nColumn)
pure virtual

◆ GetDrillDownData()

virtual void ScDPTableData::GetDrillDownData ( std::vector< ScDPFilteredCache::Criterion > &&  rCriteria,
std::unordered_set< sal_Int32 > &&  rCatDims,
css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &  rData 
)
pure virtual

◆ GetFormattedString()

OUString ScDPTableData::GetFormattedString ( sal_Int32  nDim,
const ScDPItemData rItem,
bool  bLocaleIndependent 
) const

◆ GetGroupBase()

sal_Int32 ScDPTableData::GetGroupBase ( sal_Int32  nGroupDim) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 117 of file dptabdat.cxx.

Referenced by ScDPResultData::GetGroupBase().

◆ getIsDataLayoutDimension()

virtual bool ScDPTableData::getIsDataLayoutDimension ( sal_Int32  nColumn)
pure virtual

◆ GetItemData()

void ScDPTableData::GetItemData ( const ScDPFilteredCache rCacheTable,
sal_Int32  nRow,
const ::std::vector< sal_Int32 > &  rDims,
::std::vector< SCROW > &  rItemData 
)
private

◆ GetMemberById()

const ScDPItemData * ScDPTableData::GetMemberById ( sal_Int32  nDim,
sal_Int32  nId 
)
virtual

◆ GetMemberByIndex()

const ScDPItemData * ScDPTableData::GetMemberByIndex ( sal_Int32  nDim,
sal_Int32  nIndex 
)

◆ GetMembersCount()

sal_Int32 ScDPTableData::GetMembersCount ( sal_Int32  nDim)
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 241 of file dptabdat.cxx.

References GetCacheTable(), ScDPFilteredCache::getFieldEntries(), and MAXCOL.

Referenced by GetMemberByIndex(), and ScDPMembers::ScDPMembers().

◆ GetNumberFormat()

sal_uInt32 ScDPTableData::GetNumberFormat ( sal_Int32  nDim)
virtual

Reimplemented in ScDPGroupTableData, and ScSheetDPData.

Definition at line 107 of file dptabdat.cxx.

Referenced by ScDPDimension::getPropertyValue().

◆ GetNumberFormatByIdx()

sal_uInt32 ScDPTableData::GetNumberFormatByIdx ( NfIndexTableOffset  eIdx)

Definition at line 139 of file dpshttab.cxx.

References ScDocument::GetFormatTable(), LANGUAGE_SYSTEM, and mpDoc.

Referenced by ScDPDimension::getPropertyValue().

◆ GetSourceDim()

sal_Int32 ScDPTableData::GetSourceDim ( sal_Int32  nDim)
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 268 of file dptabdat.cxx.

Referenced by GetItemData().

◆ HasCommonElement()

bool ScDPTableData::HasCommonElement ( const ScDPItemData rFirstData,
sal_Int32  nFirstIndex,
const ScDPItemData rSecondData,
sal_Int32  nSecondIndex 
) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 134 of file dptabdat.cxx.

Referenced by ScDPResultData::HasCommonElement().

◆ IsBaseForGroup()

bool ScDPTableData::IsBaseForGroup ( sal_Int32  nDim) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 112 of file dptabdat.cxx.

Referenced by ScDPResultData::IsBaseForGroup().

◆ IsDateDimension()

virtual bool ScDPTableData::IsDateDimension ( sal_Int32  nDim)
pure virtual

◆ IsInGroup()

bool ScDPTableData::IsInGroup ( const ScDPItemData rGroupData,
sal_Int32  nGroupIndex,
const ScDPItemData rBaseData,
sal_Int32  nBaseIndex 
) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 127 of file dptabdat.cxx.

Referenced by ScDPResultData::IsInGroup().

◆ IsNumOrDateGroup()

bool ScDPTableData::IsNumOrDateGroup ( sal_Int32  nDim) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 122 of file dptabdat.cxx.

Referenced by ScDPResultData::IsNumOrDateGroup().

◆ IsRepeatIfEmpty()

bool ScDPTableData::IsRepeatIfEmpty ( )
virtual

◆ operator=()

const ScDPTableData & ScDPTableData::operator= ( const ScDPTableData )
delete

◆ ProcessRowData()

void ScDPTableData::ProcessRowData ( CalcInfo rInfo,
const CalcRowData rData,
bool  bAutoShow 
)
staticprotected

◆ ReloadCacheTable()

virtual void ScDPTableData::ReloadCacheTable ( )
pure virtual

◆ SetEmptyFlags()

virtual void ScDPTableData::SetEmptyFlags ( bool  bIgnoreEmptyRows,
bool  bRepeatIfEmpty 
)
pure virtual

Member Data Documentation

◆ mpDoc

const ScDocument* ScDPTableData::mpDoc
private

Definition at line 63 of file dptabdat.hxx.

Referenced by GetNumberFormatByIdx().

◆ nLastDateVal

tools::Long ScDPTableData::nLastDateVal
private

Definition at line 59 of file dptabdat.hxx.

Referenced by GetDatePart(), and ScDPTableData().

◆ nLastHier

tools::Long ScDPTableData::nLastHier
private

Definition at line 60 of file dptabdat.hxx.

Referenced by GetDatePart(), and ScDPTableData().

◆ nLastLevel

tools::Long ScDPTableData::nLastLevel
private

Definition at line 61 of file dptabdat.hxx.

Referenced by GetDatePart(), and ScDPTableData().

◆ nLastRet

tools::Long ScDPTableData::nLastRet
private

Definition at line 62 of file dptabdat.hxx.

Referenced by GetDatePart(), and ScDPTableData().


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