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:

Public Types

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

Public Member Functions

 ScDPSaveDimension (const OUString &rName, 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

Definition at line 115 of file dpsave.hxx.

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

Definition at line 114 of file dpsave.hxx.

Constructor & Destructor Documentation

ScDPSaveDimension::ScDPSaveDimension ( const OUString &  rName,
bool  bDataLayout 

Definition at line 181 of file dpsave.cxx.

References aName, AUTO, and sheet.

ScDPSaveDimension::ScDPSaveDimension ( const ScDPSaveDimension r)
ScDPSaveDimension::~ScDPSaveDimension ( )

Definition at line 225 of file dpsave.cxx.

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

Member Function Documentation

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

Definition at line 292 of file dpsave.cxx.

References maMemberHash, and maMemberList.

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

void ScDPSaveDimension::Dump ( int  nIndent = 0) const
const css::sheet::DataPilotFieldAutoShowInfo* ScDPSaveDimension::GetAutoShowInfo ( ) const
OUString ScDPSaveDimension::GetCurrentPage ( ) const

Definition at line 438 of file dpsave.cxx.

References maMemberList.

Referenced by ScXMLExportDataPilot::WriteDimension().

bool ScDPSaveDimension::GetDupFlag ( ) const

Definition at line 136 of file dpsave.hxx.

ScDPSaveMember * ScDPSaveDimension::GetExistingMemberByName ( const OUString &  rName)
ScGeneralFunction ScDPSaveDimension::GetFunction ( ) const
const css::sheet::DataPilotFieldLayoutInfo* ScDPSaveDimension::GetLayoutInfo ( ) const
const std::optional< OUString > & ScDPSaveDimension::GetLayoutName ( ) const
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.

rNamemember name
pointer to the member object.

Definition at line 456 of file dpsave.cxx.

References maMemberHash, and maMemberList.

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

const MemberList& ScDPSaveDimension::GetMembers ( ) const
const OUString& ScDPSaveDimension::GetName ( ) const
css::sheet::DataPilotFieldOrientation ScDPSaveDimension::GetOrientation ( ) const
const css::sheet::DataPilotFieldReference* ScDPSaveDimension::GetReferenceValue ( ) const
bool ScDPSaveDimension::GetRepeatItemLabels ( ) const
bool ScDPSaveDimension::GetShowEmpty ( ) const
const css::sheet::DataPilotFieldSortInfo* ScDPSaveDimension::GetSortInfo ( ) const
ScGeneralFunction ScDPSaveDimension::GetSubTotalFunc ( tools::Long  nIndex) const
const std::optional< OUString > & ScDPSaveDimension::GetSubtotalName ( ) const
tools::Long ScDPSaveDimension::GetSubTotalsCount ( ) const
tools::Long ScDPSaveDimension::GetUsedHierarchy ( ) const

Definition at line 169 of file dpsave.hxx.

Referenced by ScXMLExportDataPilot::WriteDimension().

bool ScDPSaveDimension::HasInvisibleMember ( ) const
bool ScDPSaveDimension::HasShowEmpty ( ) const
bool ScDPSaveDimension::IsDataLayout ( ) const
bool ScDPSaveDimension::IsMemberNameInUse ( const OUString &  rName) const

Definition at line 368 of file dpsave.cxx.

References maMemberList.

Referenced by ScDBFunc::DataPilotInput().

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

Definition at line 389 of file dpsave.cxx.

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

void ScDPSaveDimension::RemoveObsoleteMembers ( const MemberSetType rMembers)

Definition at line 628 of file dpsave.cxx.

References maMemberHash, and maMemberList.

void ScDPSaveDimension::RemoveSubtotalName ( )

Definition at line 363 of file dpsave.cxx.

References mpSubtotalName.

Referenced by ScDPObject::ConvertOrientation().

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

Definition at line 410 of file dpsave.cxx.

References pAutoShowInfo.

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

void ScDPSaveDimension::SetCurrentPage ( const OUString *  pPage)

Definition at line 426 of file dpsave.cxx.

References bVisible, and maMemberList.

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

void ScDPSaveDimension::SetDupFlag ( bool  bSet)
void ScDPSaveDimension::SetFunction ( ScGeneralFunction  nNew)
void ScDPSaveDimension::SetLayoutInfo ( const css::sheet::DataPilotFieldLayoutInfo *  pNew)

Definition at line 418 of file dpsave.cxx.

References pLayoutInfo.

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

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

Definition at line 468 of file dpsave.cxx.

References GetMemberByName(), and maMemberList.

Referenced by ScDataPilotItemObj::setPropertyValue().

void ScDPSaveDimension::SetName ( const OUString &  rNew)

Definition at line 309 of file dpsave.cxx.

References aName.

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

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

Definition at line 394 of file dpsave.cxx.

References pReferenceValue.

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

void ScDPSaveDimension::SetRepeatItemLabels ( bool  bSet)

Definition at line 338 of file dpsave.cxx.

References bRepeatItemLabels.

Referenced by ScPivotLayoutDialog::ApplyLabelData().

void ScDPSaveDimension::SetShowEmpty ( bool  bSet)
void ScDPSaveDimension::SetSortInfo ( const css::sheet::DataPilotFieldSortInfo *  pNew)
void ScDPSaveDimension::SetSubtotalName ( const OUString &  rName)
void ScDPSaveDimension::SetSubTotals ( std::vector< ScGeneralFunction > &&  rFuncs)
void ScDPSaveDimension::SetUsedHierarchy ( tools::Long  nNew)

Definition at line 348 of file dpsave.cxx.

References nUsedHierarchy.

Referenced by ScPivotLayoutDialog::ApplyLabelData().

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

Definition at line 611 of file dpsave.cxx.

References maMemberList.

Referenced by ScGridWindow::UpdateDPFromFieldPopupMenu().

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

Member Data Documentation

OUString ScDPSaveDimension::aName

Definition at line 96 of file dpsave.hxx.

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

bool ScDPSaveDimension::bDupFlag

Definition at line 100 of file dpsave.hxx.

Referenced by operator==().

bool ScDPSaveDimension::bIsDataLayout

Definition at line 99 of file dpsave.hxx.

Referenced by operator==().

bool ScDPSaveDimension::bRepeatItemLabels

at level

Definition at line 105 of file dpsave.hxx.

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

bool ScDPSaveDimension::bSubTotalDefault

at level

Definition at line 106 of file dpsave.hxx.

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

std::unordered_map<OUString, std::unique_ptr<ScDPSaveMember> > ScDPSaveDimension::maMemberHash
MemberList ScDPSaveDimension::maMemberList
std::vector<ScGeneralFunction> ScDPSaveDimension::maSubTotalFuncs

at level

Definition at line 107 of file dpsave.hxx.

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

std::optional<OUString> ScDPSaveDimension::mpLayoutName

Definition at line 97 of file dpsave.hxx.

Referenced by GetLayoutName().

std::optional<OUString> ScDPSaveDimension::mpSubtotalName

Definition at line 98 of file dpsave.hxx.

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

ScGeneralFunction ScDPSaveDimension::nFunction

Definition at line 102 of file dpsave.hxx.

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

css::sheet::DataPilotFieldOrientation ScDPSaveDimension::nOrientation

Definition at line 101 of file dpsave.hxx.

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

sal_uInt16 ScDPSaveDimension::nShowEmptyMode

Definition at line 104 of file dpsave.hxx.

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

tools::Long ScDPSaveDimension::nUsedHierarchy

Definition at line 103 of file dpsave.hxx.

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

std::unique_ptr<css::sheet::DataPilotFieldAutoShowInfo> ScDPSaveDimension::pAutoShowInfo
std::unique_ptr<css::sheet::DataPilotFieldLayoutInfo> ScDPSaveDimension::pLayoutInfo

Definition at line 111 of file dpsave.hxx.

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

std::unique_ptr<css::sheet::DataPilotFieldReference> ScDPSaveDimension::pReferenceValue
std::unique_ptr<css::sheet::DataPilotFieldSortInfo> ScDPSaveDimension::pSortInfo

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