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 (long nDim, const ScDPItemData &rItem, bool bLocaleIndependent) const
 
long GetDatePart (long nDateVal, long nHierarchy, long nLevel)
 
virtual long GetColumnCount ()=0
 use (new) typed collection instead of ScStrCollection or separate Str and ValueCollection More...
 
virtual const std::vector< SCROW > & GetColumnEntries (long nColumn)
 
virtual OUString getDimensionName (long nColumn)=0
 
virtual bool getIsDataLayoutDimension (long nColumn)=0
 
virtual bool IsDateDimension (long nDim)=0
 
virtual sal_uInt32 GetNumberFormat (long 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 (const std::vector< ScDPFilteredCache::Criterion > &rCriteria, const std::unordered_set< sal_Int32 > &rDataDims)=0
 
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)=0
 
virtual void CalcResults (CalcInfo &rInfo, bool bAutoShow)=0
 
virtual const ScDPFilteredCacheGetCacheTable () const =0
 
virtual void ReloadCacheTable ()=0
 
virtual bool IsBaseForGroup (long nDim) const
 
virtual long GetGroupBase (long nGroupDim) const
 
virtual bool IsNumOrDateGroup (long nDim) const
 
virtual bool IsInGroup (const ScDPItemData &rGroupData, long nGroupIndex, const ScDPItemData &rBaseData, long nBaseIndex) const
 
virtual bool HasCommonElement (const ScDPItemData &rFirstData, long nFirstIndex, const ScDPItemData &rSecondData, long nSecondIndex) const
 
virtual long GetMembersCount (long nDim)
 
const ScDPItemDataGetMemberByIndex (long nDim, long nIndex)
 
virtual const ScDPItemDataGetMemberById (long nDim, long nId)
 
virtual long GetSourceDim (long nDim)
 
virtual long Compare (long nDim, long nDataId1, long 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< long > &rDims,::std::vector< SCROW > &rItemData)
 

Private Attributes

long nLastDateVal
 
long nLastHier
 
long nLastLevel
 
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::ScDPTableData ( const ScDPTableData )
delete
ScDPTableData::ScDPTableData ( const ScDocument pDoc)

Definition at line 39 of file dptabdat.cxx.

References nLastDateVal, nLastHier, nLastLevel, and nLastRet.

ScDPTableData::~ScDPTableData ( )
virtual

Definition at line 47 of file dptabdat.cxx.

Member Function Documentation

virtual void ScDPTableData::CalcResults ( CalcInfo rInfo,
bool  bAutoShow 
)
pure virtual
void ScDPTableData::CalcResultsFromCacheTable ( const ScDPFilteredCache rCacheTable,
CalcInfo rInfo,
bool  bAutoShow 
)
protected
long ScDPTableData::Compare ( long  nDim,
long  nDataId1,
long  nDataId2 
)
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 274 of file dptabdat.cxx.

References getIsDataLayoutDimension().

Referenced by ScDPMember::Compare().

virtual void ScDPTableData::CreateCacheTable ( )
pure virtual
virtual void ScDPTableData::DisposeData ( )
pure virtual
virtual void ScDPTableData::Dump ( ) const
virtual
void ScDPTableData::FillRowDataFromCacheTable ( sal_Int32  nRow,
const ScDPFilteredCache rCacheTable,
const CalcInfo rInfo,
CalcRowData rData 
)
protected
virtual void ScDPTableData::FilterCacheTable ( const std::vector< ScDPFilteredCache::Criterion > &  rCriteria,
const std::unordered_set< sal_Int32 > &  rDataDims 
)
pure virtual
virtual const ScDPFilteredCache& ScDPTableData::GetCacheTable ( ) const
pure virtual
virtual long ScDPTableData::GetColumnCount ( )
pure virtual
const std::vector< SCROW > & ScDPTableData::GetColumnEntries ( long  nColumn)
virtual
long ScDPTableData::GetDatePart ( long  nDateVal,
long  nHierarchy,
long  nLevel 
)
virtual OUString ScDPTableData::getDimensionName ( long  nColumn)
pure virtual
virtual void ScDPTableData::GetDrillDownData ( const std::vector< ScDPFilteredCache::Criterion > &  rCriteria,
const std::unordered_set< sal_Int32 > &  rCatDims,
css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &  rData 
)
pure virtual
OUString ScDPTableData::GetFormattedString ( long  nDim,
const ScDPItemData rItem,
bool  bLocaleIndependent 
) const
long ScDPTableData::GetGroupBase ( long  nGroupDim) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 117 of file dptabdat.cxx.

Referenced by ScDPResultData::GetGroupBase().

virtual bool ScDPTableData::getIsDataLayoutDimension ( long  nColumn)
pure virtual
void ScDPTableData::GetItemData ( const ScDPFilteredCache rCacheTable,
sal_Int32  nRow,
const ::std::vector< long > &  rDims,
::std::vector< SCROW > &  rItemData 
)
private
const ScDPItemData * ScDPTableData::GetMemberById ( long  nDim,
long  nId 
)
virtual
const ScDPItemData * ScDPTableData::GetMemberByIndex ( long  nDim,
long  nIndex 
)
long ScDPTableData::GetMembersCount ( long  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().

sal_uInt32 ScDPTableData::GetNumberFormat ( long  nDim)
virtual

Reimplemented in ScDPGroupTableData, and ScSheetDPData.

Definition at line 107 of file dptabdat.cxx.

Referenced by ScDPDimension::getPropertyValue().

sal_uInt32 ScDPTableData::GetNumberFormatByIdx ( NfIndexTableOffset  eIdx)

Definition at line 138 of file dpshttab.cxx.

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

Referenced by ScDPDimension::getPropertyValue().

long ScDPTableData::GetSourceDim ( long  nDim)
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 268 of file dptabdat.cxx.

Referenced by GetItemData().

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

Reimplemented in ScDPGroupTableData.

Definition at line 134 of file dptabdat.cxx.

Referenced by ScDPResultData::HasCommonElement().

bool ScDPTableData::IsBaseForGroup ( long  nDim) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 112 of file dptabdat.cxx.

Referenced by ScDPResultData::IsBaseForGroup().

virtual bool ScDPTableData::IsDateDimension ( long  nDim)
pure virtual
bool ScDPTableData::IsInGroup ( const ScDPItemData rGroupData,
long  nGroupIndex,
const ScDPItemData rBaseData,
long  nBaseIndex 
) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 127 of file dptabdat.cxx.

Referenced by ScDPResultData::IsInGroup().

bool ScDPTableData::IsNumOrDateGroup ( long  nDim) const
virtual

Reimplemented in ScDPGroupTableData.

Definition at line 122 of file dptabdat.cxx.

Referenced by ScDPResultData::IsNumOrDateGroup().

bool ScDPTableData::IsRepeatIfEmpty ( )
virtual
const ScDPTableData& ScDPTableData::operator= ( const ScDPTableData )
delete
void ScDPTableData::ProcessRowData ( CalcInfo rInfo,
const CalcRowData rData,
bool  bAutoShow 
)
staticprotected
virtual void ScDPTableData::ReloadCacheTable ( )
pure virtual
virtual void ScDPTableData::SetEmptyFlags ( bool  bIgnoreEmptyRows,
bool  bRepeatIfEmpty 
)
pure virtual

Member Data Documentation

const ScDocument* ScDPTableData::mpDoc
private

Definition at line 63 of file dptabdat.hxx.

Referenced by GetNumberFormatByIdx().

long ScDPTableData::nLastDateVal
private

Definition at line 59 of file dptabdat.hxx.

Referenced by GetDatePart(), and ScDPTableData().

long ScDPTableData::nLastHier
private

Definition at line 60 of file dptabdat.hxx.

Referenced by GetDatePart(), and ScDPTableData().

long ScDPTableData::nLastLevel
private

Definition at line 61 of file dptabdat.hxx.

Referenced by GetDatePart(), and ScDPTableData().

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: