LibreOffice Module sc (master) 1
|
#include <dptabres.hxx>
Public Member Functions | |
ScDPDataDimension (const ScDPResultData *pData) | |
or ptr to IntDimension? More... | |
~ScDPDataDimension () | |
void | InitFrom (const ScDPResultDimension *pDim) |
void | ProcessData (const ::std::vector< SCROW > &aDataMembers, const ::std::vector< ScDPValue > &aValues, const ScDPSubTotalState &rSubState) |
void | FillDataRow (const ScDPResultDimension *pRefDim, ScDPResultFilterContext &rFilterCxt, css::uno::Sequence< css::sheet::DataResult > &rSequence, tools::Long nMeasure, bool bIsSubTotalRow, const ScDPSubTotalState &rSubState) const |
void | UpdateDataRow (const ScDPResultDimension *pRefDim, tools::Long nMeasure, bool bIsSubTotalRow, const ScDPSubTotalState &rSubState) const |
void | UpdateRunningTotals (const ScDPResultDimension *pRefDim, tools::Long nMeasure, bool bIsSubTotalRow, const ScDPSubTotalState &rSubState, ScDPRunningTotalState &rRunning, ScDPRowTotals &rTotals, const ScDPResultMember &rRowParent) const |
void | SortMembers (ScDPResultDimension *pRefDim) |
tools::Long | GetSortedIndex (tools::Long nUnsorted) const |
void | DoAutoShow (ScDPResultDimension *pRefDim) |
void | ResetResults () |
void | DumpState (const ScDPResultDimension *pRefDim, ScDocument *pDoc, ScAddress &rPos) const |
void | Dump (int nIndent) const |
tools::Long | GetMemberCount () const |
const ScDPDataMember * | GetMember (tools::Long n) const |
ScDPDataMember * | GetMember (tools::Long n) |
Private Attributes | |
const ScDPResultData * | pResultData |
const ScDPResultDimension * | pResultDimension |
std::vector< std::unique_ptr< ScDPDataMember > > | maMembers |
bool | bIsDataLayout |
Definition at line 600 of file dptabres.hxx.
ScDPDataDimension::ScDPDataDimension | ( | const ScDPResultData * | pData | ) |
ScDPDataDimension::~ScDPDataDimension | ( | ) |
Definition at line 3547 of file dptabres.cxx.
void ScDPDataDimension::DoAutoShow | ( | ScDPResultDimension * | pRefDim | ) |
Definition at line 3716 of file dptabres.cxx.
References bIsDataLayout, ScDPDataMember::DoAutoShow(), ScDPResultDimension::GetAutoCount(), ScDPResultDimension::GetAutoMeasure(), ScDPResultDimension::GetMember(), ScDPResultDimension::GetMemberCount(), i, ScDPResultDimension::IsAutoShow(), ScDPResultDimension::IsAutoTopItems(), ScDPResultMember::IsVisible(), ScDPDataMember::IsVisible(), lcl_IsEqual(), maMembers, nCount, nPos, pResultDimension, and ScDPResultMember::SetAutoHidden().
Referenced by ScDPDataMember::DoAutoShow().
void ScDPDataDimension::Dump | ( | int | nIndent | ) | const |
void ScDPDataDimension::DumpState | ( | const ScDPResultDimension * | pRefDim, |
ScDocument * | pDoc, | ||
ScAddress & | rPos | ||
) | const |
void ScDPDataDimension::FillDataRow | ( | const ScDPResultDimension * | pRefDim, |
ScDPResultFilterContext & | rFilterCxt, | ||
css::uno::Sequence< css::sheet::DataResult > & | rSequence, | ||
tools::Long | nMeasure, | ||
bool | bIsSubTotalRow, | ||
const ScDPSubTotalState & | rSubState | ||
) | const |
Definition at line 3608 of file dptabres.cxx.
References bIsDataLayout, ScDPDataMember::FillDataRow(), get(), ScDPResultData::GetMeasureCount(), ScDPResultDimension::GetMember(), ScDPResultDimension::GetMemberCount(), ScDPResultDimension::GetMemberOrder(), ScDPResultDimension::GetName(), i, ScDPResultDimension::IsDataLayout(), ScDPResultMember::IsVisible(), ScDPResultFilterContext::maFilters, maMembers, nCount, pResultData, pResultDimension, and SC_DPMEASURE_ALL.
Referenced by ScDPDataMember::FillDataRow().
ScDPDataMember * ScDPDataDimension::GetMember | ( | tools::Long | n | ) |
Definition at line 3886 of file dptabres.cxx.
const ScDPDataMember * ScDPDataDimension::GetMember | ( | tools::Long | n | ) | const |
Definition at line 3881 of file dptabres.cxx.
Referenced by ScDPResultDimension::GetColReferenceMember(), and ScDPResultDimension::GetRowReferenceMember().
tools::Long ScDPDataDimension::GetMemberCount | ( | ) | const |
Definition at line 3876 of file dptabres.cxx.
References maMembers.
Referenced by ScDPResultDimension::GetColReferenceMember().
tools::Long ScDPDataDimension::GetSortedIndex | ( | tools::Long | nUnsorted | ) | const |
Definition at line 3797 of file dptabres.cxx.
References ScDPResultDimension::GetMemberOrder(), and pResultDimension.
Referenced by ScDPResultDimension::GetColReferenceMember().
void ScDPDataDimension::InitFrom | ( | const ScDPResultDimension * | pDim | ) |
Definition at line 3551 of file dptabres.cxx.
References bIsDataLayout, ScDPResultMember::GetChildDimension(), ScDPResultDimension::GetMember(), ScDPResultDimension::GetMemberCount(), i, ScDPDataMember::InitFrom(), ScDPResultDimension::IsDataLayout(), ScDPResultData::IsLateInit(), maMembers, nCount, pResultData, and pResultDimension.
void ScDPDataDimension::ProcessData | ( | const ::std::vector< SCROW > & | aDataMembers, |
const ::std::vector< ScDPValue > & | aValues, | ||
const ScDPSubTotalState & | rSubState | ||
) |
Definition at line 3581 of file dptabres.cxx.
References bIsDataLayout, get(), i, ScDPDataMember::IsNamedItem(), maMembers, nCount, and ScDPDataMember::ProcessData().
void ScDPDataDimension::ResetResults | ( | ) |
Definition at line 3784 of file dptabres.cxx.
References bIsDataLayout, i, maMembers, nCount, and ScDPDataMember::ResetResults().
Referenced by ScDPDataMember::ResetResults().
void ScDPDataDimension::SortMembers | ( | ScDPResultDimension * | pRefDim | ) |
Definition at line 3680 of file dptabres.cxx.
References bIsDataLayout, get(), ScDPResultDimension::GetMember(), ScDPResultDimension::GetMemberCount(), ScDPResultDimension::GetMemberOrder(), ScDPResultDimension::GetSortMeasure(), i, ScDPResultDimension::IsSortAscending(), ScDPResultDimension::IsSortByData(), ScDPResultMember::IsVisible(), maMembers, nCount, nPos, pResultDimension, and ScDPDataMember::SortMembers().
Referenced by ScDPDataMember::SortMembers().
void ScDPDataDimension::UpdateDataRow | ( | const ScDPResultDimension * | pRefDim, |
tools::Long | nMeasure, | ||
bool | bIsSubTotalRow, | ||
const ScDPSubTotalState & | rSubState | ||
) | const |
Definition at line 3653 of file dptabres.cxx.
References bIsDataLayout, get(), ScDPResultData::GetMeasureCount(), ScDPResultDimension::GetMember(), ScDPResultDimension::GetMemberCount(), i, maMembers, nCount, pResultData, pResultDimension, SC_DPMEASURE_ALL, and ScDPDataMember::UpdateDataRow().
Referenced by ScDPDataMember::UpdateDataRow().
void ScDPDataDimension::UpdateRunningTotals | ( | const ScDPResultDimension * | pRefDim, |
tools::Long | nMeasure, | ||
bool | bIsSubTotalRow, | ||
const ScDPSubTotalState & | rSubState, | ||
ScDPRunningTotalState & | rRunning, | ||
ScDPRowTotals & | rTotals, | ||
const ScDPResultMember & | rRowParent | ||
) | const |
Definition at line 3806 of file dptabres.cxx.
References ScDPRunningTotalState::AddColIndex(), bIsDataLayout, ScDPResultData::GetMeasureCount(), ScDPResultDimension::GetMember(), ScDPResultDimension::GetMemberCount(), ScDPResultDimension::GetMemberOrder(), i, ScDPResultMember::IsVisible(), maMembers, nCount, pResultData, pResultDimension, ScDPRunningTotalState::RemoveColIndex(), SC_DPMEASURE_ALL, and ScDPDataMember::UpdateRunningTotals().
Referenced by ScDPDataMember::UpdateRunningTotals().
|
private |
Definition at line 606 of file dptabres.hxx.
Referenced by DoAutoShow(), FillDataRow(), InitFrom(), ProcessData(), ResetResults(), SortMembers(), UpdateDataRow(), and UpdateRunningTotals().
|
private |
Definition at line 605 of file dptabres.hxx.
Referenced by DoAutoShow(), FillDataRow(), GetMember(), GetMemberCount(), InitFrom(), ProcessData(), ResetResults(), SortMembers(), UpdateDataRow(), and UpdateRunningTotals().
|
private |
Definition at line 603 of file dptabres.hxx.
Referenced by FillDataRow(), InitFrom(), UpdateDataRow(), and UpdateRunningTotals().
|
private |
Definition at line 604 of file dptabres.hxx.
Referenced by DoAutoShow(), FillDataRow(), GetSortedIndex(), InitFrom(), SortMembers(), UpdateDataRow(), and UpdateRunningTotals().