LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScDPResultData Class Reference

The term 'measure' here roughly equals "data dimension" ? More...

#include <dptabres.hxx>

Collaboration diagram for ScDPResultData:
[legend]

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
 
ResultMembersGetDimResultMembers (tools::Long nDim, const ScDPDimension *pDim, ScDPLevel *pLevel) const
 
const ScDPSourceGetSource () const
 

Private Attributes

ScDPSourcemrSource
 
std::vector< ScSubTotalFuncmaMeasureFuncs
 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...
 

Detailed Description

The term 'measure' here roughly equals "data dimension" ?

Definition at line 271 of file dptabres.hxx.

Constructor & Destructor Documentation

◆ ScDPResultData()

ScDPResultData::ScDPResultData ( ScDPSource rSrc)

Definition at line 760 of file dptabres.cxx.

◆ ~ScDPResultData()

ScDPResultData::~ScDPResultData ( )

Definition at line 768 of file dptabres.cxx.

Member Function Documentation

◆ GetColStartMeasure()

tools::Long ScDPResultData::GetColStartMeasure ( ) const

◆ GetCountForMeasure()

tools::Long ScDPResultData::GetCountForMeasure ( tools::Long  nMeas) const
inline

◆ GetDimResultMembers()

ResultMembers & ScDPResultData::GetDimResultMembers ( tools::Long  nDim,
const ScDPDimension pDim,
ScDPLevel pLevel 
) const

◆ GetGroupBase()

tools::Long ScDPResultData::GetGroupBase ( tools::Long  nGroupDim) const

Definition at line 890 of file dptabres.cxx.

References ScDPSource::GetData(), ScDPTableData::GetGroupBase(), and mrSource.

◆ GetMeasureCount()

tools::Long ScDPResultData::GetMeasureCount ( ) const
inline

◆ GetMeasureDimensionName()

OUString ScDPResultData::GetMeasureDimensionName ( tools::Long  nMeasure) const

◆ GetMeasureFunction()

ScSubTotalFunc ScDPResultData::GetMeasureFunction ( tools::Long  nMeasure) const

◆ GetMeasureRefOrient()

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().

◆ GetMeasureRefVal()

const sheet::DataPilotFieldReference & ScDPResultData::GetMeasureRefVal ( tools::Long  nMeasure) const

◆ GetMeasureString()

OUString ScDPResultData::GetMeasureString ( tools::Long  nMeasure,
bool  bForce,
ScSubTotalFunc  eForceFunc,
bool &  rbTotalResult 
) const

◆ GetRowStartMeasure()

tools::Long ScDPResultData::GetRowStartMeasure ( ) const

Definition at line 814 of file dptabres.cxx.

References bDataAtRow, maMeasureFuncs, SC_DPMEASURE_ALL, and SC_DPMEASURE_ANY.

◆ GetSource()

const ScDPSource & ScDPResultData::GetSource ( ) const
inline

Definition at line 324 of file dptabres.hxx.

References mrSource.

Referenced by ScDPResultMember::FillMemberResults(), and ScDPResultMember::GetDisplayName().

◆ HasCommonElement()

bool ScDPResultData::HasCommonElement ( SCROW  nFirstDataId,
tools::Long  nFirstIndex,
const ScDPItemData rSecondData,
tools::Long  nSecondIndex 
) const

◆ IsBaseForGroup()

bool ScDPResultData::IsBaseForGroup ( tools::Long  nDim) const

Definition at line 885 of file dptabres.cxx.

References ScDPSource::GetData(), ScDPTableData::IsBaseForGroup(), and mrSource.

◆ IsInGroup()

bool ScDPResultData::IsInGroup ( SCROW  nGroupDataId,
tools::Long  nGroupIndex,
const ScDPItemData rBaseData,
tools::Long  nBaseIndex 
) const

◆ IsLateInit()

bool ScDPResultData::IsLateInit ( ) const
inline

◆ IsNumOrDateGroup()

bool ScDPResultData::IsNumOrDateGroup ( tools::Long  nDim) const

◆ SetDataLayoutOrientation()

void ScDPResultData::SetDataLayoutOrientation ( css::sheet::DataPilotFieldOrientation  nOrient)

Definition at line 795 of file dptabres.cxx.

References bDataAtCol, and bDataAtRow.

◆ SetLateInit()

void ScDPResultData::SetLateInit ( bool  bSet)

Definition at line 801 of file dptabres.cxx.

References bLateInit.

◆ SetMeasureData()

void ScDPResultData::SetMeasureData ( std::vector< ScSubTotalFunc > &  rFunctions,
std::vector< css::sheet::DataPilotFieldReference > &  rRefs,
std::vector< css::sheet::DataPilotFieldOrientation > &  rRefOrient,
std::vector< OUString > &  rNames 
)

Member Data Documentation

◆ bDataAtCol

bool ScDPResultData::bDataAtCol
private

Definition at line 282 of file dptabres.hxx.

Referenced by GetColStartMeasure(), and SetDataLayoutOrientation().

◆ bDataAtRow

bool ScDPResultData::bDataAtRow
private

Definition at line 283 of file dptabres.hxx.

Referenced by GetRowStartMeasure(), and SetDataLayoutOrientation().

◆ bLateInit

bool ScDPResultData::bLateInit
private

Definition at line 281 of file dptabres.hxx.

Referenced by IsLateInit(), and SetLateInit().

◆ maDimMembers

std::vector<std::unique_ptr<ResultMembers> > ScDPResultData::maDimMembers
mutableprivate

add "displayed values" settings

Definition at line 286 of file dptabres.hxx.

Referenced by GetDimResultMembers().

◆ maMeasureFuncs

std::vector<ScSubTotalFunc> ScDPResultData::maMeasureFuncs
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().

◆ maMeasureNames

std::vector<OUString> ScDPResultData::maMeasureNames
private

Definition at line 279 of file dptabres.hxx.

Referenced by GetMeasureString(), and SetMeasureData().

◆ maMeasureRefOrients

std::vector<css::sheet::DataPilotFieldOrientation> ScDPResultData::maMeasureRefOrients
private

Definition at line 278 of file dptabres.hxx.

Referenced by GetMeasureRefOrient(), and SetMeasureData().

◆ maMeasureRefs

std::vector<css::sheet::DataPilotFieldReference> ScDPResultData::maMeasureRefs
private

Definition at line 277 of file dptabres.hxx.

Referenced by GetMeasureRefVal(), and SetMeasureData().

◆ mrSource

ScDPSource& ScDPResultData::mrSource
private

The documentation for this class was generated from the following files: