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

#include <dpsave.hxx>

Collaboration diagram for ScDPSaveDimension:
[legend]

Public Types

typedef std::unordered_set< OUString > MemberSetType
 
typedef std::vector< ScDPSaveMember * > MemberList
 

Public Member Functions

 ScDPSaveDimension (OUString aName, bool bDataLayout)
 
 ScDPSaveDimension (const ScDPSaveDimension &r)
 
 ~ScDPSaveDimension ()
 
bool operator== (const ScDPSaveDimension &r) const
 
const MemberListGetMembers () const
 
void AddMember (std::unique_ptr< ScDPSaveMember > pMember)
 
void SetDupFlag (bool bSet)
 
bool GetDupFlag () const
 
const OUString & GetName () const
 
bool IsDataLayout () const
 
void SetName (const OUString &rNew)
 
void SetOrientation (css::sheet::DataPilotFieldOrientation nNew)
 
void SetSubTotals (std::vector< ScGeneralFunction > &&rFuncs)
 
tools::Long GetSubTotalsCount () const
 
ScGeneralFunction GetSubTotalFunc (tools::Long nIndex) const
 
bool HasShowEmpty () const
 
void SetShowEmpty (bool bSet)
 
bool GetShowEmpty () const
 
void SetRepeatItemLabels (bool bSet)
 
bool GetRepeatItemLabels () const
 
void SetFunction (ScGeneralFunction nNew)
 
ScGeneralFunction GetFunction () const
 
void SetUsedHierarchy (tools::Long nNew)
 
tools::Long GetUsedHierarchy () const
 
void SetLayoutName (const OUString &rName)
 
const std::optional< OUString > & GetLayoutName () const
 
void RemoveLayoutName ()
 
void SetSubtotalName (const OUString &rName)
 
const std::optional< OUString > & GetSubtotalName () const
 
void RemoveSubtotalName ()
 
bool IsMemberNameInUse (const OUString &rName) const
 
const css::sheet::DataPilotFieldReference * GetReferenceValue () const
 
void SetReferenceValue (const css::sheet::DataPilotFieldReference *pNew)
 
const css::sheet::DataPilotFieldSortInfo * GetSortInfo () const
 
void SetSortInfo (const css::sheet::DataPilotFieldSortInfo *pNew)
 
const css::sheet::DataPilotFieldAutoShowInfo * GetAutoShowInfo () const
 
void SetAutoShowInfo (const css::sheet::DataPilotFieldAutoShowInfo *pNew)
 
const css::sheet::DataPilotFieldLayoutInfo * GetLayoutInfo () const
 
void SetLayoutInfo (const css::sheet::DataPilotFieldLayoutInfo *pNew)
 
void SetCurrentPage (const OUString *pPage)
 
OUString GetCurrentPage () const
 
css::sheet::DataPilotFieldOrientation GetOrientation () const
 
ScDPSaveMemberGetExistingMemberByName (const OUString &rName)
 
ScDPSaveMemberGetMemberByName (const OUString &rName)
 Get a member object by its name. More...
 
void SetMemberPosition (const OUString &rName, sal_Int32 nNewPos)
 
void WriteToSource (const css::uno::Reference< css::uno::XInterface > &xDim)
 
void UpdateMemberVisibility (const std::unordered_map< OUString, bool > &rData)
 
bool HasInvisibleMember () const
 
void RemoveObsoleteMembers (const MemberSetType &rMembers)
 
void Dump (int nIndent=0) const
 

Private Attributes

OUString aName
 
std::optional< OUString > mpLayoutName
 
std::optional< OUString > mpSubtotalName
 
bool bIsDataLayout
 
bool bDupFlag
 
css::sheet::DataPilotFieldOrientation nOrientation
 
ScGeneralFunction nFunction
 
tools::Long nUsedHierarchy
 
sal_uInt16 nShowEmptyMode
 
bool bRepeatItemLabels
 at level More...
 
bool bSubTotalDefault
 at level More...
 
std::vector< ScGeneralFunctionmaSubTotalFuncs
 at level More...
 
std::unique_ptr< css::sheet::DataPilotFieldReference > pReferenceValue
 
std::unique_ptr< css::sheet::DataPilotFieldSortInfo > pSortInfo
 
std::unique_ptr< css::sheet::DataPilotFieldAutoShowInfo > pAutoShowInfo
 
std::unique_ptr< css::sheet::DataPilotFieldLayoutInfo > pLayoutInfo
 
std::unordered_map< OUString, std::unique_ptr< ScDPSaveMember > > maMemberHash
 
MemberList maMemberList
 

Detailed Description

Definition at line 93 of file dpsave.hxx.

Member Typedef Documentation

◆ MemberList

Definition at line 115 of file dpsave.hxx.

◆ MemberSetType

typedef std::unordered_set<OUString> ScDPSaveDimension::MemberSetType

Definition at line 114 of file dpsave.hxx.

Constructor & Destructor Documentation

◆ ScDPSaveDimension() [1/2]

ScDPSaveDimension::ScDPSaveDimension ( OUString  aName,
bool  bDataLayout 
)

Definition at line 183 of file dpsave.cxx.

References aName, and AUTO.

◆ ScDPSaveDimension() [2/2]

ScDPSaveDimension::ScDPSaveDimension ( const ScDPSaveDimension r)

◆ ~ScDPSaveDimension()

ScDPSaveDimension::~ScDPSaveDimension ( )

Definition at line 227 of file dpsave.cxx.

References maMemberHash, pAutoShowInfo, pLayoutInfo, pReferenceValue, and pSortInfo.

Member Function Documentation

◆ AddMember()

void ScDPSaveDimension::AddMember ( std::unique_ptr< ScDPSaveMember pMember)

Definition at line 294 of file dpsave.cxx.

References maMemberHash, and maMemberList.

Referenced by ScDBFunc::DataPilotSort(), and lcl_MoveToEnd().

◆ Dump()

void ScDPSaveDimension::Dump ( int  nIndent = 0) const

◆ GetAutoShowInfo()

const css::sheet::DataPilotFieldAutoShowInfo * ScDPSaveDimension::GetAutoShowInfo ( ) const
inline

◆ GetCurrentPage()

OUString ScDPSaveDimension::GetCurrentPage ( ) const

Definition at line 440 of file dpsave.cxx.

References maMemberList.

Referenced by ScXMLExportDataPilot::WriteDimension().

◆ GetDupFlag()

bool ScDPSaveDimension::GetDupFlag ( ) const
inline

Definition at line 136 of file dpsave.hxx.

◆ GetExistingMemberByName()

ScDPSaveMember * ScDPSaveDimension::GetExistingMemberByName ( const OUString &  rName)

◆ GetFunction()

ScGeneralFunction ScDPSaveDimension::GetFunction ( ) const
inline

◆ GetLayoutInfo()

const css::sheet::DataPilotFieldLayoutInfo * ScDPSaveDimension::GetLayoutInfo ( ) const
inline

◆ GetLayoutName()

const std::optional< OUString > & ScDPSaveDimension::GetLayoutName ( ) const

◆ GetMemberByName()

ScDPSaveMember * ScDPSaveDimension::GetMemberByName ( const OUString &  rName)

Get a member object by its name.

If one doesn't exist, create a new object and return it. This class manages the life cycle of all member objects belonging to it, so don't delete the returned instance.

Parameters
rNamemember name
Returns
pointer to the member object.

Definition at line 458 of file dpsave.cxx.

References maMemberHash, and maMemberList.

Referenced by ScPivotLayoutDialog::ApplyLabelData(), oox::xls::PivotTableField::convertRowColPageField(), ScDBFunc::SetDataPilotDetails(), SetMemberPosition(), and ScDataPilotItemObj::setPropertyValue().

◆ GetMembers()

const MemberList & ScDPSaveDimension::GetMembers ( ) const
inline

◆ GetName()

const OUString & ScDPSaveDimension::GetName ( ) const
inline

◆ GetOrientation()

css::sheet::DataPilotFieldOrientation ScDPSaveDimension::GetOrientation ( ) const
inline

◆ GetReferenceValue()

const css::sheet::DataPilotFieldReference * ScDPSaveDimension::GetReferenceValue ( ) const
inline

◆ GetRepeatItemLabels()

bool ScDPSaveDimension::GetRepeatItemLabels ( ) const
inline

◆ GetShowEmpty()

bool ScDPSaveDimension::GetShowEmpty ( ) const
inline

◆ GetSortInfo()

const css::sheet::DataPilotFieldSortInfo * ScDPSaveDimension::GetSortInfo ( ) const
inline

◆ GetSubTotalFunc()

ScGeneralFunction ScDPSaveDimension::GetSubTotalFunc ( tools::Long  nIndex) const
inline

◆ GetSubtotalName()

const std::optional< OUString > & ScDPSaveDimension::GetSubtotalName ( ) const

◆ GetSubTotalsCount()

tools::Long ScDPSaveDimension::GetSubTotalsCount ( ) const
inline

◆ GetUsedHierarchy()

tools::Long ScDPSaveDimension::GetUsedHierarchy ( ) const
inline

Definition at line 169 of file dpsave.hxx.

Referenced by ScXMLExportDataPilot::WriteDimension().

◆ HasInvisibleMember()

bool ScDPSaveDimension::HasInvisibleMember ( ) const

◆ HasShowEmpty()

bool ScDPSaveDimension::HasShowEmpty ( ) const

◆ IsDataLayout()

bool ScDPSaveDimension::IsDataLayout ( ) const
inline

◆ IsMemberNameInUse()

bool ScDPSaveDimension::IsMemberNameInUse ( const OUString &  rName) const

Definition at line 370 of file dpsave.cxx.

References maMemberList.

Referenced by ScDBFunc::DataPilotInput().

◆ operator==()

bool ScDPSaveDimension::operator== ( const ScDPSaveDimension r) const

◆ RemoveLayoutName()

void ScDPSaveDimension::RemoveLayoutName ( )

Definition at line 391 of file dpsave.cxx.

References mpLayoutName.

Referenced by ScDPObject::ConvertOrientation(), and ScDBFunc::DataPilotInput().

◆ RemoveObsoleteMembers()

void ScDPSaveDimension::RemoveObsoleteMembers ( const MemberSetType rMembers)

Definition at line 630 of file dpsave.cxx.

References maMemberHash, and maMemberList.

◆ RemoveSubtotalName()

void ScDPSaveDimension::RemoveSubtotalName ( )

Definition at line 365 of file dpsave.cxx.

References mpSubtotalName.

Referenced by ScDPObject::ConvertOrientation().

◆ SetAutoShowInfo()

void ScDPSaveDimension::SetAutoShowInfo ( const css::sheet::DataPilotFieldAutoShowInfo *  pNew)

Definition at line 412 of file dpsave.cxx.

References pAutoShowInfo.

Referenced by ScPivotLayoutDialog::ApplyLabelData(), and XclImpPTField::ConvertRCPField().

◆ SetCurrentPage()

void ScDPSaveDimension::SetCurrentPage ( const OUString *  pPage)

Definition at line 428 of file dpsave.cxx.

References bVisible, and maMemberList.

Referenced by XclImpPTField::ConvertFieldInfo(), and ScDataPilotFieldObj::setUseCurrentPage().

◆ SetDupFlag()

void ScDPSaveDimension::SetDupFlag ( bool  bSet)
inline

◆ SetFunction()

void ScDPSaveDimension::SetFunction ( ScGeneralFunction  nNew)

◆ SetLayoutInfo()

void ScDPSaveDimension::SetLayoutInfo ( const css::sheet::DataPilotFieldLayoutInfo *  pNew)

Definition at line 420 of file dpsave.cxx.

References pLayoutInfo.

Referenced by ScPivotLayoutDialog::ApplyLabelData(), and XclImpPTField::ConvertRCPField().

◆ SetLayoutName()

void ScDPSaveDimension::SetLayoutName ( const OUString &  rName)

◆ SetMemberPosition()

void ScDPSaveDimension::SetMemberPosition ( const OUString &  rName,
sal_Int32  nNewPos 
)

Definition at line 470 of file dpsave.cxx.

References GetMemberByName(), and maMemberList.

Referenced by ScDataPilotItemObj::setPropertyValue().

◆ SetName()

void ScDPSaveDimension::SetName ( const OUString &  rNew)

Definition at line 311 of file dpsave.cxx.

References aName.

Referenced by ScDPSaveData::CheckDuplicateName(), and ScDBFunc::DataPilotInput().

◆ SetOrientation()

void ScDPSaveDimension::SetOrientation ( css::sheet::DataPilotFieldOrientation  nNew)

◆ SetReferenceValue()

void ScDPSaveDimension::SetReferenceValue ( const css::sheet::DataPilotFieldReference *  pNew)

Definition at line 396 of file dpsave.cxx.

References pReferenceValue.

Referenced by XclImpPTField::ConvertDataFieldInfo(), and ScDPObject::ConvertOrientation().

◆ SetRepeatItemLabels()

void ScDPSaveDimension::SetRepeatItemLabels ( bool  bSet)

Definition at line 340 of file dpsave.cxx.

References bRepeatItemLabels.

Referenced by ScPivotLayoutDialog::ApplyLabelData().

◆ SetShowEmpty()

void ScDPSaveDimension::SetShowEmpty ( bool  bSet)

◆ SetSortInfo()

void ScDPSaveDimension::SetSortInfo ( const css::sheet::DataPilotFieldSortInfo *  pNew)

◆ SetSubtotalName()

void ScDPSaveDimension::SetSubtotalName ( const OUString &  rName)

◆ SetSubTotals()

void ScDPSaveDimension::SetSubTotals ( std::vector< ScGeneralFunction > &&  rFuncs)

◆ SetUsedHierarchy()

void ScDPSaveDimension::SetUsedHierarchy ( tools::Long  nNew)

Definition at line 350 of file dpsave.cxx.

References nUsedHierarchy.

Referenced by ScPivotLayoutDialog::ApplyLabelData().

◆ UpdateMemberVisibility()

void ScDPSaveDimension::UpdateMemberVisibility ( const std::unordered_map< OUString, bool > &  rData)

Definition at line 613 of file dpsave.cxx.

References maMemberList.

Referenced by ScGridWindow::UpdateDPFromFieldPopupMenu().

◆ WriteToSource()

void ScDPSaveDimension::WriteToSource ( const css::uno::Reference< css::uno::XInterface > &  xDim)

Member Data Documentation

◆ aName

OUString ScDPSaveDimension::aName
private

Definition at line 96 of file dpsave.hxx.

Referenced by operator==(), and SetName().

◆ bDupFlag

bool ScDPSaveDimension::bDupFlag
private

Definition at line 100 of file dpsave.hxx.

Referenced by operator==().

◆ bIsDataLayout

bool ScDPSaveDimension::bIsDataLayout
private

Definition at line 99 of file dpsave.hxx.

Referenced by operator==().

◆ bRepeatItemLabels

bool ScDPSaveDimension::bRepeatItemLabels
private

at level

Definition at line 105 of file dpsave.hxx.

Referenced by operator==(), SetRepeatItemLabels(), and WriteToSource().

◆ bSubTotalDefault

bool ScDPSaveDimension::bSubTotalDefault
private

at level

Definition at line 106 of file dpsave.hxx.

Referenced by operator==(), SetSubTotals(), and WriteToSource().

◆ maMemberHash

std::unordered_map<OUString, std::unique_ptr<ScDPSaveMember> > ScDPSaveDimension::maMemberHash
private

◆ maMemberList

MemberList ScDPSaveDimension::maMemberList
private

◆ maSubTotalFuncs

std::vector<ScGeneralFunction> ScDPSaveDimension::maSubTotalFuncs
private

at level

Definition at line 107 of file dpsave.hxx.

Referenced by operator==(), SetSubTotals(), and WriteToSource().

◆ mpLayoutName

std::optional<OUString> ScDPSaveDimension::mpLayoutName
private

Definition at line 97 of file dpsave.hxx.

Referenced by GetLayoutName(), RemoveLayoutName(), SetLayoutName(), and WriteToSource().

◆ mpSubtotalName

std::optional<OUString> ScDPSaveDimension::mpSubtotalName
private

Definition at line 98 of file dpsave.hxx.

Referenced by GetSubtotalName(), RemoveSubtotalName(), and SetSubtotalName().

◆ nFunction

ScGeneralFunction ScDPSaveDimension::nFunction
private

Definition at line 102 of file dpsave.hxx.

Referenced by operator==(), SetFunction(), and WriteToSource().

◆ nOrientation

css::sheet::DataPilotFieldOrientation ScDPSaveDimension::nOrientation
private

Definition at line 101 of file dpsave.hxx.

Referenced by operator==(), SetOrientation(), and WriteToSource().

◆ nShowEmptyMode

sal_uInt16 ScDPSaveDimension::nShowEmptyMode
private

Definition at line 104 of file dpsave.hxx.

Referenced by HasShowEmpty(), operator==(), SetShowEmpty(), and WriteToSource().

◆ nUsedHierarchy

tools::Long ScDPSaveDimension::nUsedHierarchy
private

Definition at line 103 of file dpsave.hxx.

Referenced by operator==(), SetUsedHierarchy(), and WriteToSource().

◆ pAutoShowInfo

std::unique_ptr<css::sheet::DataPilotFieldAutoShowInfo> ScDPSaveDimension::pAutoShowInfo
private

◆ pLayoutInfo

std::unique_ptr<css::sheet::DataPilotFieldLayoutInfo> ScDPSaveDimension::pLayoutInfo
private

Definition at line 111 of file dpsave.hxx.

Referenced by ScDPSaveDimension(), SetLayoutInfo(), WriteToSource(), and ~ScDPSaveDimension().

◆ pReferenceValue

std::unique_ptr<css::sheet::DataPilotFieldReference> ScDPSaveDimension::pReferenceValue
private

◆ pSortInfo

std::unique_ptr<css::sheet::DataPilotFieldSortInfo> ScDPSaveDimension::pSortInfo
private

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