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

This class represents source data from database source. More...

#include <dpsdbtab.hxx>

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

Public Member Functions

 ScDatabaseDPData (const ScDocument *pDoc, const ScDPCache &rCache)
 
virtual ~ScDatabaseDPData () override
 
virtual sal_Int32 GetColumnCount () override
 use (new) typed collection instead of ScStrCollection or separate Str and ValueCollection More...
 
virtual OUString getDimensionName (sal_Int32 nColumn) override
 
virtual bool getIsDataLayoutDimension (sal_Int32 nColumn) override
 
virtual bool IsDateDimension (sal_Int32 nDim) override
 
virtual void DisposeData () override
 
virtual void SetEmptyFlags (bool bIgnoreEmptyRows, bool bRepeatIfEmpty) override
 
virtual void CreateCacheTable () override
 
virtual void FilterCacheTable (std::vector< ScDPFilteredCache::Criterion > &&rCriteria, std::unordered_set< sal_Int32 > &&rDataDims) override
 
virtual void GetDrillDownData (std::vector< ScDPFilteredCache::Criterion > &&rCriteria, 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 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 (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
 

Private Attributes

ScDPFilteredCache aCacheTable
 

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

This class represents source data from database source.

Definition at line 57 of file dpsdbtab.hxx.

Constructor & Destructor Documentation

◆ ScDatabaseDPData()

ScDatabaseDPData::ScDatabaseDPData ( const ScDocument pDoc,
const ScDPCache rCache 
)

Definition at line 63 of file dpsdbtab.cxx.

◆ ~ScDatabaseDPData()

ScDatabaseDPData::~ScDatabaseDPData ( )
overridevirtual

Definition at line 70 of file dpsdbtab.cxx.

Member Function Documentation

◆ CalcResults()

void ScDatabaseDPData::CalcResults ( CalcInfo rInfo,
bool  bAutoShow 
)
overridevirtual

◆ CreateCacheTable()

void ScDatabaseDPData::CreateCacheTable ( )
overridevirtual

◆ DisposeData()

void ScDatabaseDPData::DisposeData ( )
overridevirtual

Implements ScDPTableData.

Definition at line 74 of file dpsdbtab.cxx.

References aCacheTable, and ScDPFilteredCache::clear().

◆ Dump()

virtual void ScDatabaseDPData::Dump ( ) const
overridevirtual

Reimplemented from ScDPTableData.

◆ FilterCacheTable()

void ScDatabaseDPData::FilterCacheTable ( std::vector< ScDPFilteredCache::Criterion > &&  rCriteria,
std::unordered_set< sal_Int32 > &&  rDataDims 
)
overridevirtual

◆ GetCacheTable()

const ScDPFilteredCache & ScDatabaseDPData::GetCacheTable ( ) const
overridevirtual

Implements ScDPTableData.

Definition at line 149 of file dpsdbtab.cxx.

References aCacheTable.

Referenced by GetColumnCount(), and getIsDataLayoutDimension().

◆ GetColumnCount()

sal_Int32 ScDatabaseDPData::GetColumnCount ( )
overridevirtual

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

Implements ScDPTableData.

Definition at line 80 of file dpsdbtab.cxx.

References CreateCacheTable(), GetCacheTable(), and ScDPFilteredCache::getColSize().

◆ getDimensionName()

OUString ScDatabaseDPData::getDimensionName ( sal_Int32  nColumn)
overridevirtual

◆ GetDrillDownData()

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

◆ getIsDataLayoutDimension()

bool ScDatabaseDPData::getIsDataLayoutDimension ( sal_Int32  nColumn)
overridevirtual

Implements ScDPTableData.

Definition at line 99 of file dpsdbtab.cxx.

References GetCacheTable().

Referenced by getDimensionName().

◆ IsDateDimension()

bool ScDatabaseDPData::IsDateDimension ( sal_Int32  nDim)
overridevirtual

Implements ScDPTableData.

Definition at line 104 of file dpsdbtab.cxx.

◆ ReloadCacheTable()

void ScDatabaseDPData::ReloadCacheTable ( )
overridevirtual

Implements ScDPTableData.

Definition at line 154 of file dpsdbtab.cxx.

References aCacheTable, ScDPFilteredCache::clear(), and CreateCacheTable().

◆ SetEmptyFlags()

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

Implements ScDPTableData.

Definition at line 110 of file dpsdbtab.cxx.

Member Data Documentation

◆ aCacheTable

ScDPFilteredCache ScDatabaseDPData::aCacheTable
private

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