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

#include <dptabres.hxx>

Collaboration diagram for ScDPResultMember:
[legend]

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 ScDPResultDimensionGetChildDimension () const
 this will be removed! More...
 
ScDPResultDimensionGetChildDimension ()
 
ScDPDataMemberGetDataRoot () const
 
const ScDPDimensionGetParentDim () const
 
const ScDPLevelGetParentLevel () const
 Ref. More...
 
const ScDPMemberGetDPMember () const
 Ref. More...
 
SCROW GetOrder () const
 Ref. More...
 
bool IsRoot () const
 Ref. More...
 
SCROW GetDataId () const
 
ScDPAggDataGetColTotal (tools::Long nMeasure) const
 
void FillVisibilityData (ScDPResultVisibilityData &rData) const
 

Private Attributes

const ScDPResultDatapResultData
 
ScDPParentDimData aParentDimData
 
std::unique_ptr< ScDPResultDimensionpChildDimension
 
std::unique_ptr< ScDPDataMemberpDataRoot
 
bool bHasElements:1
 
bool bForceSubTotal:1
 
bool bHasHiddenDetails:1
 
bool bInitialized:1
 
bool bAutoHidden:1
 
ScDPAggData aColTotal
 
sal_uInt16 nMemberStep
 

Detailed Description

Definition at line 327 of file dptabres.hxx.

Constructor & Destructor Documentation

◆ ScDPResultMember() [1/2]

ScDPResultMember::ScDPResultMember ( const ScDPResultData pData,
const ScDPParentDimData rParentDimData 
)

Definition at line 949 of file dptabres.cxx.

References pData.

◆ ScDPResultMember() [2/2]

ScDPResultMember::ScDPResultMember ( const ScDPResultData pData,
bool  bForceSub 
)

Ref.

Definition at line 963 of file dptabres.cxx.

References pData.

◆ ~ScDPResultMember()

ScDPResultMember::~ScDPResultMember ( )

Definition at line 974 of file dptabres.cxx.

Member Function Documentation

◆ CheckShowEmpty()

void ScDPResultMember::CheckShowEmpty ( bool  bShow = false)

◆ DoAutoShow()

void ScDPResultMember::DoAutoShow ( ScDPResultMember pRefMember)

Definition at line 1719 of file dptabres.cxx.

References IsRoot(), pChildDimension, and pDataRoot.

Referenced by ScDPResultDimension::DoAutoShow().

◆ Dump()

void ScDPResultMember::Dump ( int  nIndent) const

◆ DumpState()

void ScDPResultMember::DumpState ( const ScDPResultMember pRefMember,
ScDocument pDoc,
ScAddress rPos 
) const

◆ FillDataResults()

void ScDPResultMember::FillDataResults ( const ScDPResultMember pRefMember,
ScDPResultFilterContext rFilterCxt,
css::uno::Sequence< css::uno::Sequence< css::sheet::DataResult > > &  rSequence,
tools::Long  nMeasure 
) const

◆ FillItemData()

ScDPItemData ScDPResultMember::FillItemData ( ) const

◆ FillMemberResults()

void ScDPResultMember::FillMemberResults ( css::uno::Sequence< css::sheet::MemberResult > *  pSequences,
tools::Long rPos,
tools::Long  nMeasure,
bool  bRoot,
const OUString *  pMemberName,
const OUString *  pMemberCaption 
)

◆ FillVisibilityData()

void ScDPResultMember::FillVisibilityData ( ScDPResultVisibilityData rData) const

Definition at line 1837 of file dptabres.cxx.

References pChildDimension, and rData.

Referenced by ScDPResultDimension::FillVisibilityData().

◆ GetChildDimension() [1/2]

ScDPResultDimension * ScDPResultMember::GetChildDimension ( )
inline

Definition at line 410 of file dptabres.hxx.

References pChildDimension.

◆ GetChildDimension() [2/2]

const ScDPResultDimension * ScDPResultMember::GetChildDimension ( ) const
inline

◆ GetColTotal()

ScDPAggData * ScDPResultMember::GetColTotal ( tools::Long  nMeasure) const

Definition at line 1832 of file dptabres.cxx.

References aColTotal, and lcl_GetChildTotal().

Referenced by ScDPDataMember::UpdateRunningTotals().

◆ GetDataId()

SCROW ScDPResultMember::GetDataId ( ) const

◆ GetDataRoot()

ScDPDataMember * ScDPResultMember::GetDataRoot ( ) const
inline

◆ GetDisplayName()

OUString ScDPResultMember::GetDisplayName ( bool  bLocaleIndependent) const

◆ GetDPMember()

const ScDPMember * ScDPResultMember::GetDPMember ( ) const
inline

◆ GetName()

OUString ScDPResultMember::GetName ( ) const

◆ GetOrder()

SCROW ScDPResultMember::GetOrder ( ) const
inline

Ref.

Definition at line 417 of file dptabres.hxx.

References aParentDimData, and ScDPParentDimData::mnOrder.

◆ GetParentDim()

const ScDPDimension * ScDPResultMember::GetParentDim ( ) const
inline

Definition at line 414 of file dptabres.hxx.

References aParentDimData, and ScDPParentDimData::mpParentDim.

Referenced by FillMemberResults().

◆ GetParentLevel()

const ScDPLevel * ScDPResultMember::GetParentLevel ( ) const
inline

◆ GetSize()

tools::Long ScDPResultMember::GetSize ( tools::Long  nMeasure) const

◆ GetSubTotalCount()

tools::Long ScDPResultMember::GetSubTotalCount ( tools::Long pUserSubStart = nullptr) const

◆ HasHiddenDetails()

bool ScDPResultMember::HasHiddenDetails ( ) const
inline

◆ InitFrom()

void ScDPResultMember::InitFrom ( const ::std::vector< ScDPDimension * > &  ppDim,
const ::std::vector< ScDPLevel * > &  ppLev,
size_t  nPos,
ScDPInitState rInitState,
bool  bInitChild = true 
)

◆ IsNamedItem()

bool ScDPResultMember::IsNamedItem ( SCROW  nIndex) const

◆ IsRoot()

bool ScDPResultMember::IsRoot ( ) const
inline

Ref.

Definition at line 418 of file dptabres.hxx.

References GetParentLevel().

Referenced by DoAutoShow(), SortMembers(), and UpdateRunningTotals().

◆ IsSubTotalInTitle()

bool ScDPResultMember::IsSubTotalInTitle ( tools::Long  nMeasure) const

◆ IsValid()

bool ScDPResultMember::IsValid ( ) const

◆ IsValidEntry()

bool ScDPResultMember::IsValidEntry ( const ::std::vector< SCROW > &  aMembers) const

◆ IsVisible()

bool ScDPResultMember::IsVisible ( ) const

◆ LateInitFrom()

void ScDPResultMember::LateInitFrom ( LateInitParams rParams,
const ::std::vector< SCROW > &  pItemData,
size_t  nPos,
ScDPInitState rInitState 
)

◆ ProcessData()

void ScDPResultMember::ProcessData ( const ::std::vector< SCROW > &  aChildMembers,
const ScDPResultDimension pDataDim,
const ::std::vector< SCROW > &  aDataMembers,
const ::std::vector< ScDPValue > &  aValues 
)

◆ ResetResults()

void ScDPResultMember::ResetResults ( )

Definition at line 1734 of file dptabres.cxx.

References pChildDimension, and pDataRoot.

Referenced by ScDPResultDimension::ResetResults().

◆ SetAutoHidden()

void ScDPResultMember::SetAutoHidden ( )
inline

Definition at line 377 of file dptabres.hxx.

References bAutoHidden.

Referenced by ScDPDataDimension::DoAutoShow(), and ScDPResultDimension::DoAutoShow().

◆ SetHasElements()

void ScDPResultMember::SetHasElements ( )
inline

Definition at line 376 of file dptabres.hxx.

References bHasElements.

Referenced by CheckShowEmpty(), and ProcessData().

◆ SortMembers()

void ScDPResultMember::SortMembers ( ScDPResultMember pRefMember)

Definition at line 1704 of file dptabres.cxx.

References IsRoot(), pChildDimension, and pDataRoot.

Referenced by ScDPResultDimension::SortMembers().

◆ UpdateDataResults()

void ScDPResultMember::UpdateDataResults ( const ScDPResultMember pRefMember,
tools::Long  nMeasure 
) const

◆ UpdateRunningTotals()

void ScDPResultMember::UpdateRunningTotals ( const ScDPResultMember pRefMember,
tools::Long  nMeasure,
ScDPRunningTotalState rRunning,
ScDPRowTotals rTotals 
) const

Member Data Documentation

◆ aColTotal

ScDPAggData ScDPResultMember::aColTotal
private

Definition at line 339 of file dptabres.hxx.

Referenced by GetColTotal().

◆ aParentDimData

ScDPParentDimData ScDPResultMember::aParentDimData
private

◆ bAutoHidden

bool ScDPResultMember::bAutoHidden
private

Definition at line 338 of file dptabres.hxx.

Referenced by IsValid(), and SetAutoHidden().

◆ bForceSubTotal

bool ScDPResultMember::bForceSubTotal
private

Definition at line 335 of file dptabres.hxx.

Referenced by GetSubTotalCount().

◆ bHasElements

bool ScDPResultMember::bHasElements
private

Definition at line 334 of file dptabres.hxx.

Referenced by CheckShowEmpty(), IsVisible(), and SetHasElements().

◆ bHasHiddenDetails

bool ScDPResultMember::bHasHiddenDetails
private

Definition at line 336 of file dptabres.hxx.

Referenced by HasHiddenDetails(), InitFrom(), and LateInitFrom().

◆ bInitialized

bool ScDPResultMember::bInitialized
private

Definition at line 337 of file dptabres.hxx.

Referenced by CheckShowEmpty(), InitFrom(), IsVisible(), and LateInitFrom().

◆ nMemberStep

sal_uInt16 ScDPResultMember::nMemberStep
private

Definition at line 341 of file dptabres.hxx.

Referenced by FillMemberResults(), InitFrom(), and LateInitFrom().

◆ pChildDimension

std::unique_ptr<ScDPResultDimension> ScDPResultMember::pChildDimension
private

◆ pDataRoot

std::unique_ptr<ScDPDataMember> ScDPResultMember::pDataRoot
private

◆ pResultData

const ScDPResultData* ScDPResultMember::pResultData
private

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