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 long GetColumnCount () override
 use (new) typed collection instead of ScStrCollection or separate Str and ValueCollection More...
 
virtual OUString getDimensionName (long nColumn) override
 
virtual bool getIsDataLayoutDimension (long nColumn) override
 
virtual bool IsDateDimension (long nDim) override
 
virtual void DisposeData () override
 
virtual void SetEmptyFlags (bool bIgnoreEmptyRows, bool bRepeatIfEmpty) 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 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)
 
virtual const std::vector< SCROW > & GetColumnEntries (long nColumn)
 
virtual sal_uInt32 GetNumberFormat (long nDim)
 
sal_uInt32 GetNumberFormatByIdx (NfIndexTableOffset)
 
virtual bool IsRepeatIfEmpty ()
 
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 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)
 

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 58 of file dpsdbtab.hxx.

Constructor & Destructor Documentation

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

Definition at line 63 of file dpsdbtab.cxx.

ScDatabaseDPData::~ScDatabaseDPData ( )
overridevirtual

Definition at line 70 of file dpsdbtab.cxx.

Member Function Documentation

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

Implements ScDPTableData.

Definition at line 74 of file dpsdbtab.cxx.

References aCacheTable, and ScDPFilteredCache::clear().

virtual void ScDatabaseDPData::Dump ( ) const
overridevirtual

Reimplemented from ScDPTableData.

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

Implements ScDPTableData.

Definition at line 149 of file dpsdbtab.cxx.

References aCacheTable.

Referenced by GetColumnCount(), and getIsDataLayoutDimension().

long 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().

OUString ScDatabaseDPData::getDimensionName ( long  nColumn)
overridevirtual
void ScDatabaseDPData::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
bool ScDatabaseDPData::getIsDataLayoutDimension ( long  nColumn)
overridevirtual

Implements ScDPTableData.

Definition at line 99 of file dpsdbtab.cxx.

References GetCacheTable().

Referenced by getDimensionName().

bool ScDatabaseDPData::IsDateDimension ( long  nDim)
overridevirtual

Implements ScDPTableData.

Definition at line 104 of file dpsdbtab.cxx.

void ScDatabaseDPData::ReloadCacheTable ( )
overridevirtual

Implements ScDPTableData.

Definition at line 154 of file dpsdbtab.cxx.

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

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

Implements ScDPTableData.

Definition at line 110 of file dpsdbtab.cxx.

Member Data Documentation

ScDPFilteredCache ScDatabaseDPData::aCacheTable
private

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