LibreOffice Module sc (master) 1
|
#include <dptabres.hxx>
Public Member Functions | |
ScDPDataMember (const ScDPResultData *pData, const ScDPResultMember *pRes) | |
~ScDPDataMember () | |
void | InitFrom (const ScDPResultDimension *pDim) |
OUString | GetName () const |
bool | IsVisible () const |
bool | HasData (tools::Long nMeasure, const ScDPSubTotalState &rSubState) const |
bool | IsNamedItem (SCROW nRow) const |
bool | HasHiddenDetails () const |
void | ProcessData (const ::std::vector< SCROW > &aChildMembers, const ::std::vector< ScDPValue > &aValues, const ScDPSubTotalState &rSubState) |
bool | HasError (tools::Long nMeasure, const ScDPSubTotalState &rSubState) const |
double | GetAggregate (tools::Long nMeasure, const ScDPSubTotalState &rSubState) const |
const ScDPAggData * | GetConstAggData (tools::Long nMeasure, const ScDPSubTotalState &rSubState) const |
ScDPAggData * | GetAggData (tools::Long nMeasure, const ScDPSubTotalState &rSubState) |
void | FillDataRow (const ScDPResultMember *pRefMember, ScDPResultFilterContext &rFilterCxt, css::uno::Sequence< css::sheet::DataResult > &rSequence, tools::Long nMeasure, bool bIsSubTotalRow, const ScDPSubTotalState &rSubState) const |
void | UpdateDataRow (const ScDPResultMember *pRefMember, tools::Long nMeasure, bool bIsSubTotalRow, const ScDPSubTotalState &rSubState) |
void | UpdateRunningTotals (const ScDPResultMember *pRefMember, tools::Long nMeasure, bool bIsSubTotalRow, const ScDPSubTotalState &rSubState, ScDPRunningTotalState &rRunning, ScDPRowTotals &rTotals, const ScDPResultMember &rRowParent) |
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 ScDPDataDimension * | GetChildDimension () const |
this will be removed! More... | |
ScDPDataDimension * | GetChildDimension () |
Private Member Functions | |
void | UpdateValues (const ::std::vector< ScDPValue > &aValues, const ScDPSubTotalState &rSubState) |
Private Attributes | |
const ScDPResultData * | pResultData |
const ScDPResultMember * | pResultMember |
std::unique_ptr< ScDPDataDimension > | pChildDimension |
Ref? More... | |
ScDPAggData | aAggregate |
Definition at line 425 of file dptabres.hxx.
ScDPDataMember::ScDPDataMember | ( | const ScDPResultData * | pData, |
const ScDPResultMember * | pRes | ||
) |
Definition at line 1843 of file dptabres.cxx.
References pData.
ScDPDataMember::~ScDPDataMember | ( | ) |
Definition at line 1850 of file dptabres.cxx.
void ScDPDataMember::DoAutoShow | ( | ScDPResultMember * | pRefMember | ) |
Definition at line 2261 of file dptabres.cxx.
References ScDPDataDimension::DoAutoShow(), ScDPResultMember::GetChildDimension(), GetChildDimension(), ScDPResultMember::IsVisible(), and pResultMember.
Referenced by ScDPDataDimension::DoAutoShow().
void ScDPDataMember::Dump | ( | int | nIndent | ) | const |
void ScDPDataMember::DumpState | ( | const ScDPResultMember * | pRefMember, |
ScDocument * | pDoc, | ||
ScAddress & | rPos | ||
) | const |
void ScDPDataMember::FillDataRow | ( | const ScDPResultMember * | pRefMember, |
ScDPResultFilterContext & | rFilterCxt, | ||
css::uno::Sequence< css::sheet::DataResult > & | rSequence, | ||
tools::Long | nMeasure, | ||
bool | bIsSubTotalRow, | ||
const ScDPSubTotalState & | rSubState | ||
) | const |
Definition at line 2045 of file dptabres.cxx.
References ScDPResultTree::add(), ScDPSubTotalState::eColForce, ScDPDataDimension::FillDataRow(), GetAggregate(), ScDPResultMember::GetChildDimension(), GetChildDimension(), ScDPResultData::GetCountForMeasure(), ScDPResultMember::GetDisplayName(), ScDPResultMember::GetParentLevel(), ScDPResultMember::GetSize(), ScDPResultMember::GetSubTotalCount(), HasData(), HasError(), ScDPLevel::IsAddEmpty(), ScDPLevel::IsOutlineLayout(), ScDPResultMember::IsSubTotalInTitle(), lcl_GetForceFunc(), ScDPResultFilterContext::maFilters, ScDPResultFilterContext::maFilterSet, ScDPResultFilterContext::mnCol, ScDPSubTotalState::nColSubTotalFunc, pChildDimension, pResultData, pResultMember, and SC_DPMEASURE_ALL.
Referenced by ScDPDataDimension::FillDataRow().
ScDPAggData * ScDPDataMember::GetAggData | ( | tools::Long | nMeasure, |
const ScDPSubTotalState & | rSubState | ||
) |
Definition at line 2005 of file dptabres.cxx.
References aAggregate, ScDPAggData::GetChild(), ScDPResultData::GetMeasureCount(), lcl_GetSubTotalPos(), nPos, pResultData, and SC_SUBTOTALPOS_SKIP.
Referenced by UpdateDataRow(), and UpdateRunningTotals().
double ScDPDataMember::GetAggregate | ( | tools::Long | nMeasure, |
const ScDPSubTotalState & | rSubState | ||
) | const |
Definition at line 1996 of file dptabres.cxx.
References GetConstAggData(), and ScDPAggData::GetResult().
Referenced by FillDataRow().
|
inline |
Definition at line 481 of file dptabres.hxx.
References pChildDimension.
|
inline |
this will be removed!
Definition at line 480 of file dptabres.hxx.
References pChildDimension.
Referenced by DoAutoShow(), FillDataRow(), ScDPResultDimension::GetColReferenceMember(), ScDPResultDimension::GetRowReferenceMember(), ResetResults(), SortMembers(), UpdateDataRow(), and UpdateRunningTotals().
const ScDPAggData * ScDPDataMember::GetConstAggData | ( | tools::Long | nMeasure, |
const ScDPSubTotalState & | rSubState | ||
) | const |
Definition at line 2023 of file dptabres.cxx.
References aAggregate, ScDPAggData::GetExistingChild(), ScDPResultData::GetMeasureCount(), lcl_GetSubTotalPos(), nPos, pResultData, and SC_SUBTOTALPOS_SKIP.
Referenced by GetAggregate(), HasData(), HasError(), lcl_IsEqual(), lcl_IsLess(), and UpdateRunningTotals().
OUString ScDPDataMember::GetName | ( | ) | const |
Definition at line 1854 of file dptabres.cxx.
References ScDPResultMember::GetName(), and pResultMember.
Referenced by ScDPResultDimension::GetColReferenceMember().
bool ScDPDataMember::HasData | ( | tools::Long | nMeasure, |
const ScDPSubTotalState & | rSubState | ||
) | const |
Definition at line 1972 of file dptabres.cxx.
References ScDPSubTotalState::eColForce, ScDPSubTotalState::eRowForce, GetConstAggData(), ScDPAggData::HasData(), and SUBTOTAL_FUNC_NONE.
Referenced by FillDataRow().
bool ScDPDataMember::HasError | ( | tools::Long | nMeasure, |
const ScDPSubTotalState & | rSubState | ||
) | const |
Definition at line 1987 of file dptabres.cxx.
References GetConstAggData(), and ScDPAggData::HasError().
Referenced by FillDataRow().
bool ScDPDataMember::HasHiddenDetails | ( | ) | const |
Definition at line 1878 of file dptabres.cxx.
References ScDPResultMember::HasHiddenDetails(), and pResultMember.
Referenced by ScDPResultDimension::GetColReferenceMember(), and UpdateRunningTotals().
void ScDPDataMember::InitFrom | ( | const ScDPResultDimension * | pDim | ) |
Definition at line 1886 of file dptabres.cxx.
References pChildDimension, and pResultData.
Referenced by ScDPDataDimension::InitFrom(), and ProcessData().
bool ScDPDataMember::IsNamedItem | ( | SCROW | nRow | ) | const |
Definition at line 1870 of file dptabres.cxx.
References ScDPResultMember::IsNamedItem(), and pResultMember.
Referenced by ScDPDataDimension::ProcessData().
bool ScDPDataMember::IsVisible | ( | ) | const |
Definition at line 1862 of file dptabres.cxx.
References ScDPResultMember::IsVisible(), and pResultMember.
Referenced by ScDPDataDimension::DoAutoShow(), and ScDPResultDimension::GetColReferenceMember().
void ScDPDataMember::ProcessData | ( | const ::std::vector< SCROW > & | aChildMembers, |
const ::std::vector< ScDPValue > & | aValues, | ||
const ScDPSubTotalState & | rSubState | ||
) |
Definition at line 1937 of file dptabres.cxx.
References ScDPSubTotalState::eColForce, ScDPResultMember::GetChildDimension(), ScDPResultMember::GetParentLevel(), ScDPResultMember::GetSubTotalCount(), InitFrom(), ScDPResultData::IsLateInit(), lcl_GetForceFunc(), ScDPSubTotalState::nColSubTotalFunc, pChildDimension, pResultData, pResultMember, and UpdateValues().
Referenced by ScDPDataDimension::ProcessData().
void ScDPDataMember::ResetResults | ( | ) |
Definition at line 2274 of file dptabres.cxx.
References aAggregate, GetChildDimension(), ScDPAggData::Reset(), and ScDPDataDimension::ResetResults().
Referenced by ScDPDataDimension::ResetResults().
void ScDPDataMember::SortMembers | ( | ScDPResultMember * | pRefMember | ) |
Definition at line 2248 of file dptabres.cxx.
References ScDPResultMember::GetChildDimension(), GetChildDimension(), ScDPResultMember::IsVisible(), pResultMember, and ScDPDataDimension::SortMembers().
Referenced by ScDPDataDimension::SortMembers().
void ScDPDataMember::UpdateDataRow | ( | const ScDPResultMember * | pRefMember, |
tools::Long | nMeasure, | ||
bool | bIsSubTotalRow, | ||
const ScDPSubTotalState & | rSubState | ||
) |
Definition at line 2175 of file dptabres.cxx.
References ScDPAggData::Calculate(), ScDPSubTotalState::eColForce, GetAggData(), ScDPResultMember::GetChildDimension(), GetChildDimension(), ScDPResultData::GetCountForMeasure(), ScDPResultData::GetMeasureFunction(), ScDPResultData::GetMeasureRefVal(), ScDPResultMember::GetParentLevel(), ScDPAggData::GetResult(), ScDPResultMember::GetSubTotalCount(), lcl_GetForceFunc(), ScDPSubTotalState::nColSubTotalFunc, pChildDimension, pResultData, pResultMember, SC_DPMEASURE_ALL, ScDPAggData::SetAuxiliary(), and ScDPDataDimension::UpdateDataRow().
Referenced by ScDPDataDimension::UpdateDataRow().
void ScDPDataMember::UpdateRunningTotals | ( | const ScDPResultMember * | pRefMember, |
tools::Long | nMeasure, | ||
bool | bIsSubTotalRow, | ||
const ScDPSubTotalState & | rSubState, | ||
ScDPRunningTotalState & | rRunning, | ||
ScDPRowTotals & | rTotals, | ||
const ScDPResultMember & | rRowParent | ||
) |
Definition at line 2283 of file dptabres.cxx.
References ScDPSubTotalState::eColForce, GetAggData(), ScDPAggData::GetAuxiliary(), ScDPResultMember::GetChildDimension(), GetChildDimension(), ScDPResultDimension::GetColReferenceMember(), ScDPRunningTotalState::GetColResRoot(), ScDPRunningTotalState::GetColSorted(), ScDPResultMember::GetColTotal(), ScDPRunningTotalState::GetColVisible(), GetConstAggData(), ScDPResultData::GetCountForMeasure(), ScDPRowTotals::GetGrandTotal(), ScDPResultData::GetMeasureRefOrient(), ScDPResultData::GetMeasureRefVal(), ScDPResultDimension::GetMember(), ScDPResultDimension::GetName(), ScDPResultMember::GetParentLevel(), ScDPAggData::GetResult(), ScDPResultDimension::GetRowReferenceMember(), ScDPRunningTotalState::GetRowResRoot(), ScDPRunningTotalState::GetRowSorted(), ScDPRowTotals::GetRowTotal(), ScDPRunningTotalState::GetRowVisible(), ScDPResultMember::GetSubTotalCount(), ScDPAggData::HasError(), ScDPResultMember::HasHiddenDetails(), HasHiddenDetails(), ScDPRowTotals::IsInColRoot(), lcl_GetForceFunc(), ScDPRelativePos::nBasePos, ScDPSubTotalState::nColSubTotalFunc, nIndex, pChildDimension, pResultData, pResultMember, SC_DPMEASURE_ALL, ScDPAggData::SetAuxiliary(), ScDPAggData::SetEmpty(), ScDPAggData::SetError(), ScDPAggData::SetResult(), and ScDPDataDimension::UpdateRunningTotals().
Referenced by ScDPDataDimension::UpdateRunningTotals().
|
private |
Definition at line 1913 of file dptabres.cxx.
References aAggregate, ScDPAggData::GetChild(), ScDPResultData::GetMeasureCount(), ScDPResultData::GetMeasureFunction(), i, lcl_GetSubTotalPos(), nCount, nPos, pResultData, SC_SUBTOTALPOS_SKIP, and ScDPAggData::Update().
Referenced by ProcessData().
|
private |
Definition at line 432 of file dptabres.hxx.
Referenced by GetAggData(), GetConstAggData(), ResetResults(), and UpdateValues().
|
private |
Ref?
Definition at line 431 of file dptabres.hxx.
Referenced by FillDataRow(), GetChildDimension(), InitFrom(), ProcessData(), UpdateDataRow(), and UpdateRunningTotals().
|
private |
Definition at line 428 of file dptabres.hxx.
Referenced by FillDataRow(), GetAggData(), GetConstAggData(), InitFrom(), ProcessData(), UpdateDataRow(), UpdateRunningTotals(), and UpdateValues().
|
private |
Definition at line 429 of file dptabres.hxx.
Referenced by DoAutoShow(), FillDataRow(), GetName(), HasHiddenDetails(), IsNamedItem(), IsVisible(), ProcessData(), SortMembers(), UpdateDataRow(), and UpdateRunningTotals().