LibreOffice Module sc (master) 1
|
The term 'measure' here roughly equals "data dimension" ? More...
#include <dptabres.hxx>
Public Member Functions | |
ScDPResultData (ScDPSource &rSrc) | |
~ScDPResultData () | |
void | SetMeasureData (std::vector< ScSubTotalFunc > &rFunctions, std::vector< css::sheet::DataPilotFieldReference > &rRefs, std::vector< css::sheet::DataPilotFieldOrientation > &rRefOrient, std::vector< OUString > &rNames) |
void | SetDataLayoutOrientation (css::sheet::DataPilotFieldOrientation nOrient) |
void | SetLateInit (bool bSet) |
tools::Long | GetMeasureCount () const |
ScSubTotalFunc | GetMeasureFunction (tools::Long nMeasure) const |
OUString | GetMeasureString (tools::Long nMeasure, bool bForce, ScSubTotalFunc eForceFunc, bool &rbTotalResult) const |
OUString | GetMeasureDimensionName (tools::Long nMeasure) const |
const css::sheet::DataPilotFieldReference & | GetMeasureRefVal (tools::Long nMeasure) const |
css::sheet::DataPilotFieldOrientation | GetMeasureRefOrient (tools::Long nMeasure) const |
bool | IsLateInit () const |
tools::Long | GetColStartMeasure () const |
tools::Long | GetRowStartMeasure () const |
tools::Long | GetCountForMeasure (tools::Long nMeas) const |
bool | IsBaseForGroup (tools::Long nDim) const |
tools::Long | GetGroupBase (tools::Long nGroupDim) const |
bool | IsNumOrDateGroup (tools::Long nDim) const |
bool | IsInGroup (SCROW nGroupDataId, tools::Long nGroupIndex, const ScDPItemData &rBaseData, tools::Long nBaseIndex) const |
bool | HasCommonElement (SCROW nFirstDataId, tools::Long nFirstIndex, const ScDPItemData &rSecondData, tools::Long nSecondIndex) const |
ResultMembers & | GetDimResultMembers (tools::Long nDim, const ScDPDimension *pDim, ScDPLevel *pLevel) const |
const ScDPSource & | GetSource () const |
Private Attributes | |
ScDPSource & | mrSource |
std::vector< ScSubTotalFunc > | maMeasureFuncs |
keep things like measure lists here More... | |
std::vector< css::sheet::DataPilotFieldReference > | maMeasureRefs |
std::vector< css::sheet::DataPilotFieldOrientation > | maMeasureRefOrients |
std::vector< OUString > | maMeasureNames |
bool | bLateInit:1 |
bool | bDataAtCol:1 |
bool | bDataAtRow:1 |
std::vector< std::unique_ptr< ResultMembers > > | maDimMembers |
add "displayed values" settings More... | |
The term 'measure' here roughly equals "data dimension" ?
Definition at line 271 of file dptabres.hxx.
ScDPResultData::ScDPResultData | ( | ScDPSource & | rSrc | ) |
Definition at line 760 of file dptabres.cxx.
ScDPResultData::~ScDPResultData | ( | ) |
Definition at line 768 of file dptabres.cxx.
tools::Long ScDPResultData::GetColStartMeasure | ( | ) | const |
Definition at line 806 of file dptabres.cxx.
References bDataAtCol, maMeasureFuncs, SC_DPMEASURE_ALL, and SC_DPMEASURE_ANY.
Referenced by ScDPResultMember::FillDataResults(), ScDPResultMember::UpdateDataResults(), and ScDPResultMember::UpdateRunningTotals().
|
inline |
Definition at line 312 of file dptabres.hxx.
References maMeasureFuncs, and SC_DPMEASURE_ALL.
Referenced by ScDPResultMember::FillDataResults(), ScDPDataMember::FillDataRow(), ScDPResultMember::FillMemberResults(), ScDPResultMember::UpdateDataResults(), ScDPDataMember::UpdateDataRow(), ScDPDataMember::UpdateRunningTotals(), and ScDPResultMember::UpdateRunningTotals().
ResultMembers & ScDPResultData::GetDimResultMembers | ( | tools::Long | nDim, |
const ScDPDimension * | pDim, | ||
ScDPLevel * | pLevel | ||
) | const |
Definition at line 920 of file dptabres.cxx.
References ScDPMembers::getByIndex(), ScDPMembers::getCount(), ScDPLevel::GetGlobalOrder(), ScDPMember::GetItemDataId(), ScDPLevel::GetMembersObject(), i, and maDimMembers.
Referenced by ScDPResultDimension::LateInitFrom().
tools::Long ScDPResultData::GetGroupBase | ( | tools::Long | nGroupDim | ) | const |
Definition at line 890 of file dptabres.cxx.
References ScDPSource::GetData(), ScDPTableData::GetGroupBase(), and mrSource.
|
inline |
Definition at line 300 of file dptabres.hxx.
References maMeasureFuncs.
Referenced by ScDPResultDimension::FillDataResults(), ScDPDataDimension::FillDataRow(), ScDPDataMember::GetAggData(), ScDPDataMember::GetConstAggData(), ScDPResultMember::GetSize(), ScDPResultDimension::GetSize(), ScDPResultMember::IsSubTotalInTitle(), ScDPResultDimension::UpdateDataResults(), ScDPDataDimension::UpdateDataRow(), ScDPDataDimension::UpdateRunningTotals(), ScDPResultDimension::UpdateRunningTotals(), and ScDPDataMember::UpdateValues().
OUString ScDPResultData::GetMeasureDimensionName | ( | tools::Long | nMeasure | ) | const |
Definition at line 874 of file dptabres.cxx.
References ScDPSource::GetDataDimName(), and mrSource.
Referenced by ScDPResultMember::FillMemberResults(), and ScDPResultDimension::FillMemberResults().
ScSubTotalFunc ScDPResultData::GetMeasureFunction | ( | tools::Long | nMeasure | ) | const |
Definition at line 822 of file dptabres.cxx.
References o3tl::make_unsigned(), and maMeasureFuncs.
Referenced by GetMeasureString(), ScDPDataMember::UpdateDataRow(), and ScDPDataMember::UpdateValues().
sheet::DataPilotFieldOrientation ScDPResultData::GetMeasureRefOrient | ( | tools::Long | nMeasure | ) | const |
Definition at line 834 of file dptabres.cxx.
References o3tl::make_unsigned(), and maMeasureRefOrients.
Referenced by ScDPDataMember::UpdateRunningTotals().
const sheet::DataPilotFieldReference & ScDPResultData::GetMeasureRefVal | ( | tools::Long | nMeasure | ) | const |
Definition at line 828 of file dptabres.cxx.
References o3tl::make_unsigned(), and maMeasureRefs.
Referenced by ScDPDataMember::UpdateDataRow(), and ScDPDataMember::UpdateRunningTotals().
OUString ScDPResultData::GetMeasureString | ( | tools::Long | nMeasure, |
bool | bForce, | ||
ScSubTotalFunc | eForceFunc, | ||
bool & | rbTotalResult | ||
) | const |
Definition at line 840 of file dptabres.cxx.
References ScDPSource::GetDataDimension(), ScDPUtil::getDisplayedMeasureName(), ScDPDimension::GetLayoutName(), GetMeasureFunction(), o3tl::make_unsigned(), maMeasureFuncs, maMeasureNames, mrSource, SAL_N_ELEMENTS, ScResId(), and SUBTOTAL_FUNC_NONE.
Referenced by ScDPResultMember::FillMemberResults(), and ScDPResultDimension::FillMemberResults().
tools::Long ScDPResultData::GetRowStartMeasure | ( | ) | const |
Definition at line 814 of file dptabres.cxx.
References bDataAtRow, maMeasureFuncs, SC_DPMEASURE_ALL, and SC_DPMEASURE_ANY.
|
inline |
Definition at line 324 of file dptabres.hxx.
References mrSource.
Referenced by ScDPResultMember::FillMemberResults(), and ScDPResultMember::GetDisplayName().
bool ScDPResultData::HasCommonElement | ( | SCROW | nFirstDataId, |
tools::Long | nFirstIndex, | ||
const ScDPItemData & | rSecondData, | ||
tools::Long | nSecondIndex | ||
) | const |
Definition at line 910 of file dptabres.cxx.
References ScDPSource::GetData(), ScDPSource::GetItemDataById(), ScDPTableData::HasCommonElement(), and mrSource.
bool ScDPResultData::IsBaseForGroup | ( | tools::Long | nDim | ) | const |
Definition at line 885 of file dptabres.cxx.
References ScDPSource::GetData(), ScDPTableData::IsBaseForGroup(), and mrSource.
bool ScDPResultData::IsInGroup | ( | SCROW | nGroupDataId, |
tools::Long | nGroupIndex, | ||
const ScDPItemData & | rBaseData, | ||
tools::Long | nBaseIndex | ||
) | const |
Definition at line 900 of file dptabres.cxx.
References ScDPSource::GetData(), ScDPSource::GetItemDataById(), ScDPTableData::IsInGroup(), and mrSource.
|
inline |
Definition at line 307 of file dptabres.hxx.
References bLateInit.
Referenced by ScDPResultMember::InitFrom(), ScDPDataDimension::InitFrom(), ScDPResultMember::LateInitFrom(), and ScDPDataMember::ProcessData().
bool ScDPResultData::IsNumOrDateGroup | ( | tools::Long | nDim | ) | const |
Definition at line 895 of file dptabres.cxx.
References ScDPSource::GetData(), ScDPTableData::IsNumOrDateGroup(), and mrSource.
Referenced by ScDPResultMember::FillMemberResults().
void ScDPResultData::SetDataLayoutOrientation | ( | css::sheet::DataPilotFieldOrientation | nOrient | ) |
Definition at line 795 of file dptabres.cxx.
References bDataAtCol, and bDataAtRow.
void ScDPResultData::SetLateInit | ( | bool | bSet | ) |
Definition at line 801 of file dptabres.cxx.
References bLateInit.
void ScDPResultData::SetMeasureData | ( | std::vector< ScSubTotalFunc > & | rFunctions, |
std::vector< css::sheet::DataPilotFieldReference > & | rRefs, | ||
std::vector< css::sheet::DataPilotFieldOrientation > & | rRefOrient, | ||
std::vector< OUString > & | rNames | ||
) |
Definition at line 772 of file dptabres.cxx.
References maMeasureFuncs, maMeasureNames, maMeasureRefOrients, maMeasureRefs, ScResId(), and SUBTOTAL_FUNC_NONE.
|
private |
Definition at line 282 of file dptabres.hxx.
Referenced by GetColStartMeasure(), and SetDataLayoutOrientation().
|
private |
Definition at line 283 of file dptabres.hxx.
Referenced by GetRowStartMeasure(), and SetDataLayoutOrientation().
|
private |
Definition at line 281 of file dptabres.hxx.
Referenced by IsLateInit(), and SetLateInit().
|
mutableprivate |
add "displayed values" settings
Definition at line 286 of file dptabres.hxx.
Referenced by GetDimResultMembers().
|
private |
keep things like measure lists here
Definition at line 276 of file dptabres.hxx.
Referenced by GetColStartMeasure(), GetCountForMeasure(), GetMeasureCount(), GetMeasureFunction(), GetMeasureString(), GetRowStartMeasure(), and SetMeasureData().
|
private |
Definition at line 279 of file dptabres.hxx.
Referenced by GetMeasureString(), and SetMeasureData().
|
private |
Definition at line 278 of file dptabres.hxx.
Referenced by GetMeasureRefOrient(), and SetMeasureData().
|
private |
Definition at line 277 of file dptabres.hxx.
Referenced by GetMeasureRefVal(), and SetMeasureData().
|
private |
Definition at line 273 of file dptabres.hxx.
Referenced by GetGroupBase(), GetMeasureDimensionName(), GetMeasureString(), GetSource(), HasCommonElement(), IsBaseForGroup(), IsInGroup(), and IsNumOrDateGroup().