LibreOffice Module sc (master) 1
|
#include <dptabres.hxx>
Public Member Functions | |
ScDPResultMember (const ScDPResultData *pData, const ScDPParentDimData &rParentDimData) | |
ScDPResultMember (const ScDPResultData *pData, bool bForceSub) | |
Ref. More... | |
~ScDPResultMember () | |
void | InitFrom (const ::std::vector< ScDPDimension * > &ppDim, const ::std::vector< ScDPLevel * > &ppLev, size_t nPos, ScDPInitState &rInitState, bool bInitChild=true) |
void | LateInitFrom (LateInitParams &rParams, const ::std::vector< SCROW > &pItemData, size_t nPos, ScDPInitState &rInitState) |
void | CheckShowEmpty (bool bShow=false) |
OUString | GetName () const |
OUString | GetDisplayName (bool bLocaleIndependent) const |
ScDPItemData | FillItemData () const |
bool | IsValid () const |
bool | IsVisible () const |
tools::Long | GetSize (tools::Long nMeasure) const |
bool | HasHiddenDetails () const |
bool | IsSubTotalInTitle (tools::Long nMeasure) const |
tools::Long | GetSubTotalCount (tools::Long *pUserSubStart=nullptr) const |
bool | IsNamedItem (SCROW nIndex) const |
bool | IsValidEntry (const ::std::vector< SCROW > &aMembers) const |
void | SetHasElements () |
void | SetAutoHidden () |
void | ProcessData (const ::std::vector< SCROW > &aChildMembers, const ScDPResultDimension *pDataDim, const ::std::vector< SCROW > &aDataMembers, const ::std::vector< ScDPValue > &aValues) |
void | FillMemberResults (css::uno::Sequence< css::sheet::MemberResult > *pSequences, tools::Long &rPos, tools::Long nMeasure, bool bRoot, const OUString *pMemberName, const OUString *pMemberCaption) |
void | FillDataResults (const ScDPResultMember *pRefMember, ScDPResultFilterContext &rFilterCxt, css::uno::Sequence< css::uno::Sequence< css::sheet::DataResult > > &rSequence, tools::Long nMeasure) const |
void | UpdateDataResults (const ScDPResultMember *pRefMember, tools::Long nMeasure) const |
void | UpdateRunningTotals (const ScDPResultMember *pRefMember, tools::Long nMeasure, ScDPRunningTotalState &rRunning, ScDPRowTotals &rTotals) const |
void | SortMembers (ScDPResultMember *pRefMember) |
void | DoAutoShow (ScDPResultMember *pRefMember) |
void | ResetResults () |
void | DumpState (const ScDPResultMember *pRefMember, ScDocument *pDoc, ScAddress &rPos) const |
void | Dump (int nIndent) const |
const ScDPResultDimension * | GetChildDimension () const |
this will be removed! More... | |
ScDPResultDimension * | GetChildDimension () |
ScDPDataMember * | GetDataRoot () const |
const ScDPDimension * | GetParentDim () const |
const ScDPLevel * | GetParentLevel () const |
Ref. More... | |
const ScDPMember * | GetDPMember () const |
Ref. More... | |
SCROW | GetOrder () const |
Ref. More... | |
bool | IsRoot () const |
Ref. More... | |
SCROW | GetDataId () const |
ScDPAggData * | GetColTotal (tools::Long nMeasure) const |
void | FillVisibilityData (ScDPResultVisibilityData &rData) const |
Private Attributes | |
const ScDPResultData * | pResultData |
ScDPParentDimData | aParentDimData |
std::unique_ptr< ScDPResultDimension > | pChildDimension |
std::unique_ptr< ScDPDataMember > | pDataRoot |
bool | bHasElements:1 |
bool | bForceSubTotal:1 |
bool | bHasHiddenDetails:1 |
bool | bInitialized:1 |
bool | bAutoHidden:1 |
ScDPAggData | aColTotal |
sal_uInt16 | nMemberStep |
Definition at line 327 of file dptabres.hxx.
ScDPResultMember::ScDPResultMember | ( | const ScDPResultData * | pData, |
const ScDPParentDimData & | rParentDimData | ||
) |
Definition at line 949 of file dptabres.cxx.
References pData.
ScDPResultMember::ScDPResultMember | ( | const ScDPResultData * | pData, |
bool | bForceSub | ||
) |
ScDPResultMember::~ScDPResultMember | ( | ) |
Definition at line 974 of file dptabres.cxx.
void ScDPResultMember::CheckShowEmpty | ( | bool | bShow = false | ) |
Definition at line 4096 of file dptabres.cxx.
References bHasElements, bInitialized, ScDPResultDimension::CheckShowEmpty(), GetChildDimension(), GetParentLevel(), ScDPLevel::getShowEmpty(), IsValid(), and SetHasElements().
Referenced by ScDPResultDimension::CheckShowEmpty().
void ScDPResultMember::DoAutoShow | ( | ScDPResultMember * | pRefMember | ) |
Definition at line 1719 of file dptabres.cxx.
References IsRoot(), pChildDimension, and pDataRoot.
Referenced by ScDPResultDimension::DoAutoShow().
void ScDPResultMember::Dump | ( | int | nIndent | ) | const |
void ScDPResultMember::DumpState | ( | const ScDPResultMember * | pRefMember, |
ScDocument * | pDoc, | ||
ScAddress & | rPos | ||
) | const |
void ScDPResultMember::FillDataResults | ( | const ScDPResultMember * | pRefMember, |
ScDPResultFilterContext & | rFilterCxt, | ||
css::uno::Sequence< css::uno::Sequence< css::sheet::DataResult > > & | rSequence, | ||
tools::Long | nMeasure | ||
) | const |
Definition at line 1543 of file dptabres.cxx.
References ScDPSubTotalState::eRowForce, ScDPResultData::GetColStartMeasure(), ScDPResultData::GetCountForMeasure(), GetDisplayName(), GetDPMember(), GetParentLevel(), GetSize(), GetSubTotalCount(), ScDPLevel::IsAddEmpty(), ScDPLevel::IsOutlineLayout(), IsSubTotalInTitle(), IsVisible(), lcl_GetForceFunc(), ScDPResultFilterContext::maFilters, ScDPResultFilterContext::mnCol, ScDPResultFilterContext::mnRow, ScDPSubTotalState::nRowSubTotalFunc, pChildDimension, pDataRoot, pResultData, and SC_DPMEASURE_ALL.
Referenced by ScDPResultDimension::FillDataResults().
ScDPItemData ScDPResultMember::FillItemData | ( | ) | const |
Definition at line 1003 of file dptabres.cxx.
References ScDPMember::FillItemData(), GetDPMember(), and ScResId().
Referenced by FillMemberResults(), and ScDPResultDimension::FillVisibilityData().
void ScDPResultMember::FillMemberResults | ( | css::uno::Sequence< css::sheet::MemberResult > * | pSequences, |
tools::Long & | rPos, | ||
tools::Long | nMeasure, | ||
bool | bRoot, | ||
const OUString * | pMemberName, | ||
const OUString * | pMemberCaption | ||
) |
Definition at line 1323 of file dptabres.cxx.
References aName, aParentDimData, eType, FillItemData(), ScDPResultData::GetCountForMeasure(), ScDPSource::GetData(), ScDPMember::GetDim(), ScDPDimension::GetDimension(), GetDPMember(), ScDPResultDimension::GetFirstChildDimension(), ScDPTableData::GetFormattedString(), ScDPSource::GetGrandTotalName(), ScDPMember::GetLayoutName(), getLength(), ScDPResultData::GetMeasureDimensionName(), ScDPResultData::GetMeasureString(), GetParentDim(), GetParentLevel(), ScDPLevel::getRepeatItemLabels(), GetSize(), ScDPResultData::GetSource(), GetSubTotalCount(), ScDPDimension::GetSubtotalName(), ScDPItemData::GetType(), ScDPItemData::GetValue(), ScDPItemData::GroupValue, i, ScDPLevel::IsAddEmpty(), ScDPResultDimension::IsDataLayout(), ScDPResultData::IsNumOrDateGroup(), ScDPLevel::IsOutlineLayout(), IsSubTotalInTitle(), ScDPItemData::IsValue(), lcl_GetForceFunc(), lcl_parseSubtotalName(), ScDPParentDimData::mpParentDim, nMemberStep, pChildDimension, pResultData, SC_DPMEASURE_ALL, ScResId(), SUBTOTAL_FUNC_NONE, and ScDPItemData::Value.
Referenced by ScDPResultDimension::FillMemberResults().
void ScDPResultMember::FillVisibilityData | ( | ScDPResultVisibilityData & | rData | ) | const |
Definition at line 1837 of file dptabres.cxx.
References pChildDimension.
Referenced by ScDPResultDimension::FillVisibilityData().
|
inline |
Definition at line 410 of file dptabres.hxx.
References pChildDimension.
|
inline |
this will be removed!
Definition at line 409 of file dptabres.hxx.
References pChildDimension.
Referenced by CheckShowEmpty(), ScDPDataMember::DoAutoShow(), ScDPDataMember::FillDataRow(), ScDPResultDimension::GetColReferenceMember(), ScDPResultDimension::GetRowReferenceMember(), ScDPDataDimension::InitFrom(), IsValidEntry(), ScDPDataMember::ProcessData(), ScDPTableData::ProcessRowData(), ScDPDataMember::SortMembers(), ScDPDataMember::UpdateDataRow(), and ScDPDataMember::UpdateRunningTotals().
ScDPAggData * ScDPResultMember::GetColTotal | ( | tools::Long | nMeasure | ) | const |
Definition at line 1832 of file dptabres.cxx.
References aColTotal, and lcl_GetChildTotal().
Referenced by ScDPDataMember::UpdateRunningTotals().
SCROW ScDPResultMember::GetDataId | ( | ) | const |
Definition at line 3966 of file dptabres.cxx.
References ScDPMember::GetItemDataId().
Referenced by ScDPResultDimension::AddMember(), ScDPResultDimension::InitFrom(), ScDPResultDimension::InitWithMembers(), and ScDPResultDimension::LateInitFrom().
|
inline |
Definition at line 412 of file dptabres.hxx.
References pDataRoot.
Referenced by ScDPResultDimension::DoAutoShow(), ScDPResultDimension::GetColReferenceMember(), and ScDPResultDimension::GetRowReferenceMember().
OUString ScDPResultMember::GetDisplayName | ( | bool | bLocaleIndependent | ) | const |
Definition at line 987 of file dptabres.cxx.
References aParentDimData, ScDPMember::FillItemData(), ScDPSource::GetData(), ScDPDimension::GetDimension(), GetDPMember(), ScDPTableData::GetFormattedString(), ScDPResultData::GetSource(), ScDPItemData::GetString(), ScDPParentDimData::mpParentDim, and pResultData.
Referenced by FillDataResults(), and ScDPDataMember::FillDataRow().
|
inline |
Ref.
Definition at line 416 of file dptabres.hxx.
References aParentDimData, and ScDPParentDimData::mpMemberDesc.
Referenced by FillDataResults(), FillItemData(), FillMemberResults(), GetDisplayName(), GetName(), InitFrom(), IsNamedItem(), IsValid(), and LateInitFrom().
OUString ScDPResultMember::GetName | ( | ) | const |
Definition at line 978 of file dptabres.cxx.
References GetDPMember(), ScDPMember::GetNameStr(), and ScResId().
Referenced by ScDPDataMember::GetName(), and ScDPResultDimension::GetRowReferenceMember().
|
inline |
Ref.
Definition at line 417 of file dptabres.hxx.
References aParentDimData, and ScDPParentDimData::mnOrder.
|
inline |
Definition at line 414 of file dptabres.hxx.
References aParentDimData, and ScDPParentDimData::mpParentDim.
Referenced by FillMemberResults().
|
inline |
Ref.
Definition at line 415 of file dptabres.hxx.
References aParentDimData, and ScDPParentDimData::mpParentLevel.
Referenced by CheckShowEmpty(), FillDataResults(), ScDPDataMember::FillDataRow(), FillMemberResults(), GetSize(), GetSubTotalCount(), IsRoot(), IsSubTotalInTitle(), IsVisible(), ScDPDataMember::ProcessData(), ProcessData(), UpdateDataResults(), ScDPDataMember::UpdateDataRow(), ScDPDataMember::UpdateRunningTotals(), and UpdateRunningTotals().
tools::Long ScDPResultMember::GetSize | ( | tools::Long | nMeasure | ) | const |
Definition at line 1157 of file dptabres.cxx.
References ScDPResultData::GetMeasureCount(), GetParentLevel(), GetSubTotalCount(), ScDPLevel::IsAddEmpty(), ScDPLevel::IsOutlineLayout(), IsSubTotalInTitle(), IsVisible(), pChildDimension, pResultData, and SC_DPMEASURE_ALL.
Referenced by FillDataResults(), ScDPDataMember::FillDataRow(), and FillMemberResults().
tools::Long ScDPResultMember::GetSubTotalCount | ( | tools::Long * | pUserSubStart = nullptr | ) | const |
Definition at line 1227 of file dptabres.cxx.
References aSeq, bForceSubTotal, GetParentLevel(), and ScDPLevel::getSubTotals().
Referenced by FillDataResults(), ScDPDataMember::FillDataRow(), FillMemberResults(), GetSize(), IsSubTotalInTitle(), ScDPDataMember::ProcessData(), ProcessData(), UpdateDataResults(), ScDPDataMember::UpdateDataRow(), ScDPDataMember::UpdateRunningTotals(), and UpdateRunningTotals().
|
inline |
Definition at line 368 of file dptabres.hxx.
References bHasHiddenDetails.
Referenced by ScDPResultDimension::GetRowReferenceMember(), ScDPDataMember::HasHiddenDetails(), and ScDPDataMember::UpdateRunningTotals().
void ScDPResultMember::InitFrom | ( | const ::std::vector< ScDPDimension * > & | ppDim, |
const ::std::vector< ScDPLevel * > & | ppLev, | ||
size_t | nPos, | ||
ScDPInitState & | rInitState, | ||
bool | bInitChild = true |
||
) |
Definition at line 1039 of file dptabres.cxx.
References bHasHiddenDetails, bInitialized, GetDPMember(), ScDPResultData::IsLateInit(), nMemberStep, nPos, pChildDimension, and pResultData.
Referenced by ScDPResultDimension::InitFrom().
bool ScDPResultMember::IsNamedItem | ( | SCROW | nIndex | ) | const |
Definition at line 1011 of file dptabres.cxx.
References GetDPMember(), ScDPMember::IsNamedItem(), and nIndex.
Referenced by ScDPResultDimension::FindMember(), ScDPDataMember::IsNamedItem(), and ScDPResultDimension::LateInitFrom().
|
inline |
Ref.
Definition at line 418 of file dptabres.hxx.
References GetParentLevel().
Referenced by DoAutoShow(), SortMembers(), and UpdateRunningTotals().
bool ScDPResultMember::IsSubTotalInTitle | ( | tools::Long | nMeasure | ) | const |
Definition at line 1135 of file dptabres.cxx.
References ScDPResultData::GetMeasureCount(), GetParentLevel(), GetSubTotalCount(), pChildDimension, pResultData, and SC_DPMEASURE_ALL.
Referenced by FillDataResults(), ScDPDataMember::FillDataRow(), FillMemberResults(), and GetSize().
bool ScDPResultMember::IsValid | ( | ) | const |
Definition at line 1212 of file dptabres.cxx.
References bAutoHidden, GetDPMember(), and ScDPMember::isVisible().
Referenced by CheckShowEmpty(), ScDPResultDimension::FillVisibilityData(), IsValidEntry(), and IsVisible().
bool ScDPResultMember::IsValidEntry | ( | const ::std::vector< SCROW > & | aMembers | ) | const |
Definition at line 1020 of file dptabres.cxx.
References GetChildDimension(), IsValid(), and ScDPResultDimension::IsValidEntry().
Referenced by ScDPResultDimension::IsValidEntry().
bool ScDPResultMember::IsVisible | ( | ) | const |
Definition at line 1194 of file dptabres.cxx.
References bHasElements, bInitialized, GetParentLevel(), ScDPLevel::getShowEmpty(), and IsValid().
Referenced by ScDPDataDimension::DoAutoShow(), ScDPDataMember::DoAutoShow(), ScDPResultDimension::DoAutoShow(), FillDataResults(), ScDPResultDimension::FillDataResults(), ScDPDataDimension::FillDataRow(), ScDPResultDimension::FillMemberResults(), ScDPResultDimension::GetRowReferenceMember(), GetSize(), ScDPDataMember::IsVisible(), ScDPDataDimension::SortMembers(), ScDPDataMember::SortMembers(), ScDPResultDimension::SortMembers(), ScDPResultDimension::UpdateDataResults(), ScDPDataDimension::UpdateRunningTotals(), UpdateRunningTotals(), and ScDPResultDimension::UpdateRunningTotals().
void ScDPResultMember::LateInitFrom | ( | LateInitParams & | rParams, |
const ::std::vector< SCROW > & | pItemData, | ||
size_t | nPos, | ||
ScDPInitState & | rInitState | ||
) |
Definition at line 1083 of file dptabres.cxx.
References bHasHiddenDetails, bInitialized, LateInitParams::GetDim(), GetDPMember(), LateInitParams::GetInitChild(), ScDPDimension::getIsDataLayoutDimension(), LateInitParams::IsEnd(), ScDPResultData::IsLateInit(), nMemberStep, nPos, pChildDimension, pResultData, and LateInitParams::SetInitChild().
Referenced by ScDPResultDimension::InitWithMembers(), ScDPResultDimension::LateInitFrom(), and ScDPTableData::ProcessRowData().
void ScDPResultMember::ProcessData | ( | const ::std::vector< SCROW > & | aChildMembers, |
const ScDPResultDimension * | pDataDim, | ||
const ::std::vector< SCROW > & | aDataMembers, | ||
const ::std::vector< ScDPValue > & | aValues | ||
) |
Definition at line 1257 of file dptabres.cxx.
References ScDPSubTotalState::eRowForce, GetParentLevel(), GetSubTotalCount(), lcl_GetForceFunc(), ScDPSubTotalState::nRowSubTotalFunc, pChildDimension, pDataRoot, pResultData, and SetHasElements().
Referenced by ScDPResultDimension::ProcessData(), and ScDPTableData::ProcessRowData().
void ScDPResultMember::ResetResults | ( | ) |
Definition at line 1734 of file dptabres.cxx.
References pChildDimension, and pDataRoot.
Referenced by ScDPResultDimension::ResetResults().
|
inline |
Definition at line 377 of file dptabres.hxx.
References bAutoHidden.
Referenced by ScDPDataDimension::DoAutoShow(), and ScDPResultDimension::DoAutoShow().
|
inline |
Definition at line 376 of file dptabres.hxx.
References bHasElements.
Referenced by CheckShowEmpty(), and ProcessData().
void ScDPResultMember::SortMembers | ( | ScDPResultMember * | pRefMember | ) |
Definition at line 1704 of file dptabres.cxx.
References IsRoot(), pChildDimension, and pDataRoot.
Referenced by ScDPResultDimension::SortMembers().
void ScDPResultMember::UpdateDataResults | ( | const ScDPResultMember * | pRefMember, |
tools::Long | nMeasure | ||
) | const |
Definition at line 1655 of file dptabres.cxx.
References ScDPSubTotalState::eRowForce, ScDPResultData::GetColStartMeasure(), ScDPResultData::GetCountForMeasure(), GetParentLevel(), GetSubTotalCount(), lcl_GetForceFunc(), ScDPSubTotalState::nRowSubTotalFunc, pChildDimension, pDataRoot, pResultData, and SC_DPMEASURE_ALL.
Referenced by ScDPResultDimension::UpdateDataResults().
void ScDPResultMember::UpdateRunningTotals | ( | const ScDPResultMember * | pRefMember, |
tools::Long | nMeasure, | ||
ScDPRunningTotalState & | rRunning, | ||
ScDPRowTotals & | rTotals | ||
) | const |
Definition at line 1743 of file dptabres.cxx.
References ScDPSubTotalState::eRowForce, ScDPResultData::GetColStartMeasure(), ScDPResultData::GetCountForMeasure(), GetParentLevel(), GetSubTotalCount(), IsRoot(), IsVisible(), lcl_GetForceFunc(), ScDPSubTotalState::nRowSubTotalFunc, pChildDimension, pDataRoot, pResultData, SC_DPMEASURE_ALL, and ScDPRowTotals::SetInColRoot().
Referenced by ScDPResultDimension::UpdateRunningTotals().
|
private |
Definition at line 339 of file dptabres.hxx.
Referenced by GetColTotal().
|
private |
Definition at line 331 of file dptabres.hxx.
Referenced by FillMemberResults(), GetDisplayName(), GetDPMember(), GetOrder(), GetParentDim(), and GetParentLevel().
|
private |
Definition at line 338 of file dptabres.hxx.
Referenced by IsValid(), and SetAutoHidden().
|
private |
Definition at line 335 of file dptabres.hxx.
Referenced by GetSubTotalCount().
|
private |
Definition at line 334 of file dptabres.hxx.
Referenced by CheckShowEmpty(), IsVisible(), and SetHasElements().
|
private |
Definition at line 336 of file dptabres.hxx.
Referenced by HasHiddenDetails(), InitFrom(), and LateInitFrom().
|
private |
Definition at line 337 of file dptabres.hxx.
Referenced by CheckShowEmpty(), InitFrom(), IsVisible(), and LateInitFrom().
|
private |
Definition at line 341 of file dptabres.hxx.
Referenced by FillMemberResults(), InitFrom(), and LateInitFrom().
|
private |
Definition at line 332 of file dptabres.hxx.
Referenced by DoAutoShow(), FillDataResults(), FillMemberResults(), FillVisibilityData(), GetChildDimension(), GetSize(), InitFrom(), IsSubTotalInTitle(), LateInitFrom(), ProcessData(), ResetResults(), SortMembers(), UpdateDataResults(), and UpdateRunningTotals().
|
private |
Definition at line 333 of file dptabres.hxx.
Referenced by DoAutoShow(), FillDataResults(), GetDataRoot(), ProcessData(), ResetResults(), SortMembers(), UpdateDataResults(), and UpdateRunningTotals().
|
private |
Definition at line 330 of file dptabres.hxx.
Referenced by FillDataResults(), FillMemberResults(), GetDisplayName(), GetSize(), InitFrom(), IsSubTotalInTitle(), LateInitFrom(), ProcessData(), UpdateDataResults(), and UpdateRunningTotals().