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
 
long GetSize (long nMeasure) const
 
bool HasHiddenDetails () const
 
bool IsSubTotalInTitle (long nMeasure) const
 
long GetSubTotalCount (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, long &rPos, 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, long nMeasure) const
 
void UpdateDataResults (const ScDPResultMember *pRefMember, long nMeasure) const
 
void UpdateRunningTotals (const ScDPResultMember *pRefMember, 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 (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 329 of file dptabres.hxx.

Constructor & Destructor Documentation

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

Definition at line 948 of file dptabres.cxx.

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

Ref.

Definition at line 962 of file dptabres.cxx.

ScDPResultMember::~ScDPResultMember ( )

Definition at line 973 of file dptabres.cxx.

Member Function Documentation

void ScDPResultMember::CheckShowEmpty ( bool  bShow = false)
void ScDPResultMember::DoAutoShow ( ScDPResultMember pRefMember)

Definition at line 1713 of file dptabres.cxx.

References IsRoot(), pChildDimension, and pDataRoot.

Referenced by ScDPResultDimension::DoAutoShow().

void ScDPResultMember::Dump ( int  nIndent) const
void ScDPResultMember::DumpState ( const ScDPResultMember pRefMember,
ScDocument pDoc,
ScAddress rPos 
) const
void ScDPResultMember::FillDataResults ( const ScDPResultMember pRefMember,
ScDPResultFilterContext rFilterCxt,
css::uno::Sequence< css::uno::Sequence< css::sheet::DataResult > > &  rSequence,
long  nMeasure 
) const
ScDPItemData ScDPResultMember::FillItemData ( ) const
void ScDPResultMember::FillMemberResults ( css::uno::Sequence< css::sheet::MemberResult > *  pSequences,
long &  rPos,
long  nMeasure,
bool  bRoot,
const OUString *  pMemberName,
const OUString *  pMemberCaption 
)
void ScDPResultMember::FillVisibilityData ( ScDPResultVisibilityData rData) const

Definition at line 1831 of file dptabres.cxx.

References pChildDimension.

Referenced by ScDPResultDimension::FillVisibilityData().

const ScDPResultDimension* ScDPResultMember::GetChildDimension ( ) const
inline
ScDPResultDimension* ScDPResultMember::GetChildDimension ( )
inline

Definition at line 412 of file dptabres.hxx.

ScDPAggData * ScDPResultMember::GetColTotal ( long  nMeasure) const

Definition at line 1826 of file dptabres.cxx.

References aColTotal, and lcl_GetChildTotal().

Referenced by ScDPDataMember::UpdateRunningTotals().

SCROW ScDPResultMember::GetDataId ( ) const
ScDPDataMember* ScDPResultMember::GetDataRoot ( ) const
inline
OUString ScDPResultMember::GetDisplayName ( bool  bLocaleIndependent) const
const ScDPMember* ScDPResultMember::GetDPMember ( ) const
inline
OUString ScDPResultMember::GetName ( ) const
SCROW ScDPResultMember::GetOrder ( ) const
inline

Ref.

Definition at line 419 of file dptabres.hxx.

References ScDPParentDimData::mnOrder.

const ScDPDimension* ScDPResultMember::GetParentDim ( ) const
inline

Definition at line 416 of file dptabres.hxx.

References ScDPParentDimData::mpParentDim.

Referenced by FillMemberResults().

const ScDPLevel* ScDPResultMember::GetParentLevel ( ) const
inline
long ScDPResultMember::GetSize ( long  nMeasure) const
long ScDPResultMember::GetSubTotalCount ( long *  pUserSubStart = nullptr) const
bool ScDPResultMember::HasHiddenDetails ( ) const
inline
void ScDPResultMember::InitFrom ( const ::std::vector< ScDPDimension * > &  ppDim,
const ::std::vector< ScDPLevel * > &  ppLev,
size_t  nPos,
ScDPInitState rInitState,
bool  bInitChild = true 
)
bool ScDPResultMember::IsNamedItem ( SCROW  nIndex) const
bool ScDPResultMember::IsRoot ( ) const
inline

Ref.

Definition at line 420 of file dptabres.hxx.

References GetParentLevel().

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

bool ScDPResultMember::IsSubTotalInTitle ( long  nMeasure) const
bool ScDPResultMember::IsValid ( ) const
bool ScDPResultMember::IsValidEntry ( const ::std::vector< SCROW > &  aMembers) const
bool ScDPResultMember::IsVisible ( ) const
void ScDPResultMember::LateInitFrom ( LateInitParams rParams,
const ::std::vector< SCROW > &  pItemData,
size_t  nPos,
ScDPInitState rInitState 
)
void ScDPResultMember::ProcessData ( const ::std::vector< SCROW > &  aChildMembers,
const ScDPResultDimension pDataDim,
const ::std::vector< SCROW > &  aDataMembers,
const ::std::vector< ScDPValue > &  aValues 
)
void ScDPResultMember::ResetResults ( )

Definition at line 1728 of file dptabres.cxx.

References pChildDimension, and pDataRoot.

Referenced by ScDPResultDimension::ResetResults().

void ScDPResultMember::SetAutoHidden ( )
inline

Definition at line 379 of file dptabres.hxx.

References bAutoHidden.

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

void ScDPResultMember::SetHasElements ( )
inline

Definition at line 378 of file dptabres.hxx.

References bHasElements.

Referenced by CheckShowEmpty(), and ProcessData().

void ScDPResultMember::SortMembers ( ScDPResultMember pRefMember)

Definition at line 1698 of file dptabres.cxx.

References IsRoot(), pChildDimension, and pDataRoot.

Referenced by ScDPResultDimension::SortMembers().

void ScDPResultMember::UpdateDataResults ( const ScDPResultMember pRefMember,
long  nMeasure 
) const
void ScDPResultMember::UpdateRunningTotals ( const ScDPResultMember pRefMember,
long  nMeasure,
ScDPRunningTotalState rRunning,
ScDPRowTotals rTotals 
) const

Member Data Documentation

ScDPAggData ScDPResultMember::aColTotal
private

Definition at line 341 of file dptabres.hxx.

Referenced by GetColTotal().

ScDPParentDimData ScDPResultMember::aParentDimData
private

Definition at line 333 of file dptabres.hxx.

Referenced by FillMemberResults(), and GetDisplayName().

bool ScDPResultMember::bAutoHidden
private

Definition at line 340 of file dptabres.hxx.

Referenced by IsValid(), and SetAutoHidden().

bool ScDPResultMember::bForceSubTotal
private

Definition at line 337 of file dptabres.hxx.

Referenced by GetSubTotalCount().

bool ScDPResultMember::bHasElements
private

Definition at line 336 of file dptabres.hxx.

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

bool ScDPResultMember::bHasHiddenDetails
private

Definition at line 338 of file dptabres.hxx.

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

bool ScDPResultMember::bInitialized
private

Definition at line 339 of file dptabres.hxx.

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

sal_uInt16 ScDPResultMember::nMemberStep
private

Definition at line 343 of file dptabres.hxx.

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

std::unique_ptr<ScDPResultDimension> ScDPResultMember::pChildDimension
private
std::unique_ptr<ScDPDataMember> ScDPResultMember::pDataRoot
private
const ScDPResultData* ScDPResultMember::pResultData
private

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