LibreOffice Module sc (master) 1
|
#include <dpgroup.hxx>
Public Member Functions | |
ScDPGroupTableData (const std::shared_ptr< ScDPTableData > &pSource, ScDocument *pDocument) | |
virtual | ~ScDPGroupTableData () override |
const std::shared_ptr< ScDPTableData > & | GetSourceTableData () const |
void | AddGroupDimension (const ScDPGroupDimension &rGroup) |
void | SetNumGroupDimension (sal_Int32 nIndex, const ScDPNumGroupDimension &rGroup) |
sal_Int32 | GetDimensionIndex (std::u16string_view rName) |
virtual sal_Int32 | GetColumnCount () override |
use (new) typed collection instead of ScStrCollection or separate Str and ValueCollection More... | |
virtual sal_Int32 | GetMembersCount (sal_Int32 nDim) override |
virtual const std::vector< SCROW > & | GetColumnEntries (sal_Int32 nColumn) override |
virtual const ScDPItemData * | GetMemberById (sal_Int32 nDim, sal_Int32 nId) override |
virtual sal_Int32 | Compare (sal_Int32 nDim, sal_Int32 nDataId1, sal_Int32 nDataId2) override |
virtual OUString | getDimensionName (sal_Int32 nColumn) override |
virtual bool | getIsDataLayoutDimension (sal_Int32 nColumn) override |
virtual bool | IsDateDimension (sal_Int32 nDim) override |
virtual sal_uInt32 | GetNumberFormat (sal_Int32 nDim) override |
virtual void | DisposeData () override |
virtual void | SetEmptyFlags (bool bIgnoreEmptyRows, bool bRepeatIfEmpty) override |
virtual bool | IsRepeatIfEmpty () 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 ScDPFilteredCache & | GetCacheTable () const override |
virtual void | ReloadCacheTable () override |
virtual bool | IsBaseForGroup (sal_Int32 nDim) const override |
virtual sal_Int32 | GetGroupBase (sal_Int32 nGroupDim) const override |
virtual bool | IsNumOrDateGroup (sal_Int32 nDim) const override |
virtual bool | IsInGroup (const ScDPItemData &rGroupData, sal_Int32 nGroupIndex, const ScDPItemData &rBaseData, sal_Int32 nBaseIndex) const override |
virtual bool | HasCommonElement (const ScDPItemData &rFirstData, sal_Int32 nFirstIndex, const ScDPItemData &rSecondData, sal_Int32 nSecondIndex) const override |
virtual void | Dump () const override |
Public Member Functions inherited from ScDPTableData | |
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 |
Private Member Functions | |
void | FillGroupValues (std::vector< SCROW > &rItems, const std::vector< sal_Int32 > &rDims) |
virtual sal_Int32 | GetSourceDim (sal_Int32 nDim) override |
bool | IsNumGroupDimension (tools::Long nDimension) const |
void | GetNumGroupInfo (tools::Long nDimension, ScDPNumGroupInfo &rInfo) |
void | ModifyFilterCriteria (::std::vector< ScDPFilteredCache::Criterion > &rCriteria) |
Private Attributes | |
std::shared_ptr< ScDPTableData > | pSourceData |
sal_Int32 | nSourceCount |
std::vector< ScDPGroupDimension > | aGroups |
std::unique_ptr< ScDPNumGroupDimension[]> | pNumGroups |
ScDocument * | pDoc |
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) |
Definition at line 114 of file dpgroup.hxx.
ScDPGroupTableData::ScDPGroupTableData | ( | const std::shared_ptr< ScDPTableData > & | pSource, |
ScDocument * | pDocument | ||
) |
Definition at line 465 of file dpgroup.cxx.
References CreateCacheTable(), nSourceCount, and pNumGroups.
|
overridevirtual |
Definition at line 477 of file dpgroup.cxx.
void ScDPGroupTableData::AddGroupDimension | ( | const ScDPGroupDimension & | rGroup | ) |
Definition at line 481 of file dpgroup.cxx.
References aGroups, GetColumnCount(), and ScDPGroupDimension::SetGroupDim().
Referenced by ScDPSaveGroupDimension::AddToData().
|
overridevirtual |
Implements ScDPTableData.
Definition at line 763 of file dpgroup.cxx.
References ScDPTableData::CalcInfo::aColLevelDims, aData, ScDPTableData::CalcInfo::aPageDims, ScDPTableData::CalcInfo::aRowLevelDims, FillGroupValues(), ScDPTableData::FillRowDataFromCacheTable(), ScDPFilteredCache::getRowSize(), ScDPFilteredCache::isRowActive(), ScDPTableData::ProcessRowData(), and pSourceData.
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 1005 of file dpgroup.cxx.
References ScDPItemData::Compare(), getIsDataLayoutDimension(), and GetMemberById().
|
overridevirtual |
Implements ScDPTableData.
Definition at line 620 of file dpgroup.cxx.
References pSourceData.
Referenced by ScDPGroupTableData().
|
overridevirtual |
Implements ScDPTableData.
Definition at line 599 of file dpgroup.cxx.
References aGroups, DisposeData(), i, nSourceCount, pNumGroups, and pSourceData.
Referenced by DisposeData().
|
overridevirtual |
Reimplemented from ScDPTableData.
|
private |
Definition at line 804 of file dpgroup.cxx.
References aGroups, ScDPFilteredCache::getCache(), GetCacheTable(), ScDPUtil::getDatePartValue(), ScDocument::GetFormatTable(), ScDPGroupDimension::GetGroupForData(), ScDPCache::GetGroupType(), ScDPCache::GetIdByItemData(), ScDPCache::GetItemDataById(), GetMemberById(), ScDPGroupItem::GetName(), ScDPCache::GetNumGroupInfo(), GetNumGroupInfo(), ScDPUtil::getNumGroupStartValue(), ScDPGroupDimension::GetSourceDim(), i, ScDPGroupDimension::IsDateDimension(), IsNumGroupDimension(), nSourceCount, pData, pDoc, pNumGroups, ScDPItemData::SetRangeStart(), and ScDPItemData::Value.
Referenced by CalcResults().
|
overridevirtual |
Implements ScDPTableData.
Definition at line 751 of file dpgroup.cxx.
References ModifyFilterCriteria(), and pSourceData.
|
overridevirtual |
Implements ScDPTableData.
Definition at line 794 of file dpgroup.cxx.
References pSourceData.
Referenced by FillGroupValues(), GetColumnEntries(), and ModifyFilterCriteria().
|
overridevirtual |
use (new) typed collection instead of ScStrCollection or separate Str and ValueCollection
Implements ScDPTableData.
Definition at line 506 of file dpgroup.cxx.
References aGroups, and nSourceCount.
Referenced by AddGroupDimension().
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 526 of file dpgroup.cxx.
References aGroups, GetCacheTable(), ScDPGroupDimension::GetColumnEntries(), getIsDataLayoutDimension(), IsNumGroupDimension(), nSourceCount, pNumGroups, and pSourceData.
Referenced by GetMembersCount().
sal_Int32 ScDPGroupTableData::GetDimensionIndex | ( | std::u16string_view | rName | ) |
Definition at line 498 of file dpgroup.cxx.
References i, nSourceCount, and pSourceData.
Referenced by ScDPSaveGroupDimension::AddToData(), and ScDPSaveNumGroupDimension::AddToData().
|
overridevirtual |
Implements ScDPTableData.
Definition at line 554 of file dpgroup.cxx.
References aGroups, nSourceCount, and pSourceData.
|
overridevirtual |
Implements ScDPTableData.
Definition at line 757 of file dpgroup.cxx.
References ModifyFilterCriteria(), and pSourceData.
|
overridevirtual |
|
overridevirtual |
Implements ScDPTableData.
Definition at line 567 of file dpgroup.cxx.
References aGroups, and nSourceCount.
Referenced by Compare(), GetColumnEntries(), and GetSourceDim().
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 549 of file dpgroup.cxx.
References nId, and pSourceData.
Referenced by Compare(), and FillGroupValues().
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 521 of file dpgroup.cxx.
References GetColumnEntries(), and members.
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 586 of file dpgroup.cxx.
References aGroups, nSourceCount, and pSourceData.
|
private |
Definition at line 516 of file dpgroup.cxx.
References nSourceCount, and pNumGroups.
Referenced by FillGroupValues().
|
overrideprivatevirtual |
Reimplemented from ScDPTableData.
Definition at line 993 of file dpgroup.cxx.
References aGroups, getIsDataLayoutDimension(), ScDPGroupDimension::GetSourceDim(), and nSourceCount.
|
inline |
Definition at line 137 of file dpgroup.hxx.
References pSourceData.
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 936 of file dpgroup.cxx.
References aGroups, ScDPGroupDimension::GetGroupDim(), ScDPGroupDimension::GetGroupForName(), ScDPGroupItem::HasCommonElement(), ScDPGroupItem::HasElement(), ScDPItemData::IsCaseInsEqual(), and ScDPGroupDimension::IsDateDimension().
|
overridevirtual |
|
overridevirtual |
Implements ScDPTableData.
Definition at line 573 of file dpgroup.cxx.
References aGroups, nSourceCount, and pSourceData.
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 908 of file dpgroup.cxx.
References aGroups, ScDPGroupDimension::GetGroupForData(), ScDPGroupItem::GetName(), ScDPItemData::IsCaseInsEqual(), and ScDPGroupDimension::IsDateDimension().
|
private |
Definition at line 511 of file dpgroup.cxx.
References GetInfo, nSourceCount, and pNumGroups.
Referenced by FillGroupValues(), GetColumnEntries(), and ModifyFilterCriteria().
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 890 of file dpgroup.cxx.
References aGroups, nSourceCount, and pNumGroups.
|
overridevirtual |
Reimplemented from ScDPTableData.
Definition at line 615 of file dpgroup.cxx.
References pSourceData.
|
private |
Definition at line 641 of file dpgroup.cxx.
References aGroups, ScDPGroupItem::FillGroupFilter(), ScDPFilteredCache::getCache(), GetCacheTable(), ScDocument::GetFormatTable(), ScDPGroupDimension::GetGroupByIndex(), ScDPGroupDimension::GetGroupDim(), ScDPGroupDimension::GetItemCount(), ScDPGroupItem::GetName(), SvNumberFormatter::GetNullDate(), ScDPCache::GetNumGroupInfo(), ScDPGroupDimension::GetSourceDim(), i, ScDPGroupDimension::IsDateDimension(), ScDPNumGroupDimension::IsDateDimension(), IsNumGroupDimension(), ScDPFilteredCache::Criterion::mnFieldIndex, ScDPFilteredCache::Criterion::mpFilter, pDoc, and pNumGroups.
Referenced by FilterCacheTable(), and GetDrillDownData().
|
overridevirtual |
|
overridevirtual |
void ScDPGroupTableData::SetNumGroupDimension | ( | sal_Int32 | nIndex, |
const ScDPNumGroupDimension & | rGroup | ||
) |
Definition at line 488 of file dpgroup.cxx.
References nIndex, nSourceCount, and pNumGroups.
Referenced by ScDPSaveNumGroupDimension::AddToData().
|
private |
Definition at line 119 of file dpgroup.hxx.
Referenced by AddGroupDimension(), DisposeData(), FillGroupValues(), GetColumnCount(), GetColumnEntries(), getDimensionName(), GetGroupBase(), getIsDataLayoutDimension(), GetNumberFormat(), GetSourceDim(), HasCommonElement(), IsBaseForGroup(), IsDateDimension(), IsInGroup(), IsNumOrDateGroup(), and ModifyFilterCriteria().
|
private |
Definition at line 117 of file dpgroup.hxx.
Referenced by DisposeData(), FillGroupValues(), GetColumnCount(), GetColumnEntries(), GetDimensionIndex(), getDimensionName(), getIsDataLayoutDimension(), GetNumberFormat(), GetNumGroupInfo(), GetSourceDim(), IsDateDimension(), IsNumGroupDimension(), IsNumOrDateGroup(), ScDPGroupTableData(), and SetNumGroupDimension().
|
private |
Definition at line 122 of file dpgroup.hxx.
Referenced by FillGroupValues(), and ModifyFilterCriteria().
|
private |
Definition at line 121 of file dpgroup.hxx.
Referenced by DisposeData(), FillGroupValues(), GetColumnEntries(), GetNumGroupInfo(), IsNumGroupDimension(), IsNumOrDateGroup(), ModifyFilterCriteria(), ScDPGroupTableData(), and SetNumGroupDimension().
|
private |
Definition at line 116 of file dpgroup.hxx.
Referenced by CalcResults(), CreateCacheTable(), DisposeData(), FilterCacheTable(), GetCacheTable(), GetColumnEntries(), GetDimensionIndex(), getDimensionName(), GetDrillDownData(), GetMemberById(), GetNumberFormat(), GetSourceTableData(), IsDateDimension(), IsRepeatIfEmpty(), ReloadCacheTable(), and SetEmptyFlags().