LibreOffice Module sc (master) 1
|
Base class that abstracts different data source types of a datapilot table. More...
#include <dptabdat.hxx>
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 ScDPTableData & | operator= (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 ScDPFilteredCache & | GetCacheTable () 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 ScDPItemData * | GetMemberByIndex (sal_Int32 nDim, sal_Int32 nIndex) |
virtual const ScDPItemData * | GetMemberById (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 ScDocument * | mpDoc |
Base class that abstracts different data source types of a datapilot table.
Definition at line 56 of file dptabdat.hxx.
|
delete |
ScDPTableData::ScDPTableData | ( | const ScDocument * | pDoc | ) |
Definition at line 39 of file dptabdat.cxx.
References nLastDateVal, nLastHier, nLastLevel, and nLastRet.
|
virtual |
Definition at line 47 of file dptabdat.cxx.
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by ScDPSource::CreateRes_Impl().
|
protected |
Definition at line 199 of file dptabdat.cxx.
References aData, FillRowDataFromCacheTable(), ScDPFilteredCache::getRowSize(), ScDPFilteredCache::isRowActive(), and ProcessRowData().
Referenced by ScDatabaseDPData::CalcResults(), and ScSheetDPData::CalcResults().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 273 of file dptabdat.cxx.
References getIsDataLayoutDimension().
Referenced by ScDPMember::Compare().
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by ScDPSource::FilterCacheByPageDimensions().
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by ScDPSource::disposeData(), and ScDPSource::FilterCacheByPageDimensions().
|
virtual |
Reimplemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
|
protected |
Definition at line 140 of file dptabdat.cxx.
References ScDPTableData::CalcRowData::aColData, ScDPTableData::CalcInfo::aColLevelDims, ScDPTableData::CalcInfo::aDataSrcCols, ScDPTableData::CalcRowData::aPageData, ScDPTableData::CalcInfo::aPageDims, ScDPTableData::CalcRowData::aRowData, ScDPTableData::CalcInfo::aRowLevelDims, ScDPTableData::CalcRowData::aValues, ScDPFilteredCache::getCache(), ScDPCache::GetColumnCount(), GetItemData(), ScDPFilteredCache::getValue(), i, and n.
Referenced by ScDPGroupTableData::CalcResults(), and CalcResultsFromCacheTable().
|
pure virtual |
Implemented in ScSheetDPData, ScDPGroupTableData, and ScDatabaseDPData.
Referenced by ScDPSource::FilterCacheByPageDimensions().
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by GetColumnEntries(), GetFormattedString(), GetMemberById(), GetMemberByIndex(), and GetMembersCount().
|
pure virtual |
use (new) typed collection instead of ScStrCollection or separate Str and ValueCollection
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by ScDPDimensions::CountChanged(), ScDPSource::CreateRes_Impl(), ScDPSource::GetDataLayoutOrientation(), ScDPSource::getDrillDownData(), ScDPObject::GetFormattedString(), ScDPSource::IsDataLayoutDimension(), and ScDPDimensions::ScDPDimensions().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 263 of file dptabdat.cxx.
References GetCacheTable(), and ScDPFilteredCache::getFieldEntries().
Referenced by ScDPMembers::getByIndex(), ScDPMembers::GetSrcItemDataByIndex(), and ScDPMembers::ScDPMembers().
tools::Long ScDPTableData::GetDatePart | ( | tools::Long | nDateVal, |
tools::Long | nHierarchy, | ||
tools::Long | nLevel | ||
) |
...
Definition at line 57 of file dptabdat.cxx.
References Date::AddDays(), Date::GetDay(), Date::GetDayOfWeek(), Date::GetMonth(), Date::GetWeekOfYear(), Date::GetYear(), nLastDateVal, nLastHier, nLastLevel, nLastRet, SC_DAPI_HIERARCHY_QUARTER, and SC_DAPI_HIERARCHY_WEEK.
Referenced by ScDPMembers::getByIndex(), ScDPMember::IsNamedItem(), and ScDPMembers::ScDPMembers().
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by ScDPSource::getDrillDownData(), ScDPObject::GetFormattedString(), and ScDPDimension::getName().
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by ScDPSource::getDrillDownData().
OUString ScDPTableData::GetFormattedString | ( | sal_Int32 | nDim, |
const ScDPItemData & | rItem, | ||
bool | bLocaleIndependent | ||
) | const |
Definition at line 51 of file dptabdat.cxx.
References ScDPFilteredCache::getCache(), GetCacheTable(), and ScDPCache::GetFormattedString().
Referenced by ScDPResultMember::FillMemberResults(), ScDPResultMember::GetDisplayName(), ScDPObject::GetFormattedString(), and ScDPMember::GetNameStr().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 117 of file dptabdat.cxx.
Referenced by ScDPResultData::GetGroupBase().
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by Compare(), ScDPDimension::getIsDataLayoutDimension(), and GetItemData().
|
private |
Definition at line 217 of file dptabdat.cxx.
References ScDPFilteredCache::getCache(), ScDPCache::GetColumnCount(), getIsDataLayoutDimension(), ScDPCache::GetItemDataId(), GetSourceDim(), i, IsRepeatIfEmpty(), and nId.
Referenced by FillRowDataFromCacheTable().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 258 of file dptabdat.cxx.
References ScDPFilteredCache::getCache(), GetCacheTable(), ScDPCache::GetItemDataById(), and nId.
Referenced by ScDPSource::GetItemDataById(), and XclExpPCField::InsertNumDateGroupItems().
const ScDPItemData * ScDPTableData::GetMemberByIndex | ( | sal_Int32 | nDim, |
sal_Int32 | nIndex | ||
) |
Definition at line 248 of file dptabdat.cxx.
References ScDPFilteredCache::getCache(), GetCacheTable(), ScDPFilteredCache::getFieldEntries(), ScDPCache::GetItemDataById(), GetMembersCount(), and nIndex.
Referenced by ScDPMembers::getByIndex().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 241 of file dptabdat.cxx.
References GetCacheTable(), ScDPFilteredCache::getFieldEntries(), and MAXCOL.
Referenced by GetMemberByIndex(), and ScDPMembers::ScDPMembers().
|
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 139 of file dpshttab.cxx.
References ScDocument::GetFormatTable(), LANGUAGE_SYSTEM, and mpDoc.
Referenced by ScDPDimension::getPropertyValue().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 268 of file dptabdat.cxx.
Referenced by GetItemData().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 134 of file dptabdat.cxx.
Referenced by ScDPResultData::HasCommonElement().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 112 of file dptabdat.cxx.
Referenced by ScDPResultData::IsBaseForGroup().
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by ScDPSource::IsDateDimension().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 127 of file dptabdat.cxx.
Referenced by ScDPResultData::IsInGroup().
|
virtual |
Reimplemented in ScDPGroupTableData.
Definition at line 122 of file dptabdat.cxx.
Referenced by ScDPResultData::IsNumOrDateGroup().
|
virtual |
Reimplemented in ScDPGroupTableData, and ScSheetDPData.
Definition at line 102 of file dptabdat.cxx.
Referenced by ScDatabaseDPData::FilterCacheTable(), ScDatabaseDPData::GetDrillDownData(), and GetItemData().
|
delete |
|
staticprotected |
Definition at line 168 of file dptabdat.cxx.
References ScDPTableData::CalcRowData::aColData, ScDPTableData::CalcInfo::aColDims, ScDPTableData::CalcInfo::aColLevels, ScDPTableData::CalcRowData::aRowData, ScDPTableData::CalcInfo::aRowDims, ScDPTableData::CalcInfo::aRowLevels, ScDPTableData::CalcRowData::aValues, ScDPResultMember::GetChildDimension(), ScDPResultDimension::IsValidEntry(), ScDPResultMember::LateInitFrom(), ScDPTableData::CalcInfo::pColRoot, ScDPTableData::CalcInfo::pInitState, ScDPResultMember::ProcessData(), ScDPResultDimension::ProcessData(), ScDPTableData::CalcInfo::pRowRoot, LateInitParams::SetInitAllChildren(), and LateInitParams::SetInitChild().
Referenced by ScDPGroupTableData::CalcResults(), and CalcResultsFromCacheTable().
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
|
pure virtual |
Implemented in ScDPGroupTableData, ScDatabaseDPData, and ScSheetDPData.
Referenced by ScDPSource::ScDPSource(), ScDPSource::setIgnoreEmptyRows(), and ScDPSource::setRepeatIfEmpty().
|
private |
Definition at line 63 of file dptabdat.hxx.
Referenced by GetNumberFormatByIdx().
|
private |
Definition at line 59 of file dptabdat.hxx.
Referenced by GetDatePart(), and ScDPTableData().
|
private |
Definition at line 60 of file dptabdat.hxx.
Referenced by GetDatePart(), and ScDPTableData().
|
private |
Definition at line 61 of file dptabdat.hxx.
Referenced by GetDatePart(), and ScDPTableData().
|
private |
Definition at line 62 of file dptabdat.hxx.
Referenced by GetDatePart(), and ScDPTableData().