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

Represents a new group dimension whose dimension ID is higher than the highest source dimension ID. More...

#include <dpdimsave.hxx>

Collaboration diagram for ScDPSaveGroupDimension:
[legend]

Public Member Functions

 ScDPSaveGroupDimension (OUString aSource, OUString aName)
 
 ScDPSaveGroupDimension (OUString aSource, OUString aName, const ScDPNumGroupInfo &rDateInfo, sal_Int32 nPart)
 
void AddToData (ScDPGroupTableData &rData) const
 
void AddToCache (ScDPCache &rCache) const
 
void SetDateInfo (const ScDPNumGroupInfo &rInfo, sal_Int32 nPart)
 
void AddGroupItem (const ScDPSaveGroupItem &rItem)
 
const OUString & GetGroupDimName () const
 
const OUString & GetSourceDimName () const
 
sal_Int32 GetDatePart () const
 
const ScDPNumGroupInfoGetDateInfo () const
 
OUString CreateGroupName (std::u16string_view rPrefix)
 
const ScDPSaveGroupItemGetNamedGroup (const OUString &rGroupName) const
 
ScDPSaveGroupItemGetNamedGroupAcc (const OUString &rGroupName)
 
void RemoveFromGroups (const OUString &rItemName)
 
void RemoveGroup (const OUString &rGroupName)
 
bool IsEmpty () const
 
bool HasOnlyHidden (const ScDPUniqueStringSet &rVisible)
 
tools::Long GetGroupCount () const
 
const ScDPSaveGroupItemGetGroupByIndex (tools::Long nIndex) const
 
void Rename (const OUString &rNewName)
 

Private Member Functions

bool IsInGroup (const ScDPItemData &rItem) const
 

Private Attributes

OUString aSourceDim
 always the real source from the original data More...
 
OUString aGroupDimName
 
ScDPSaveGroupItemVec aGroups
 
ScDPNumGroupInfo aDateInfo
 
sal_Int32 nDatePart
 

Detailed Description

Represents a new group dimension whose dimension ID is higher than the highest source dimension ID.

Definition at line 90 of file dpdimsave.hxx.

Constructor & Destructor Documentation

◆ ScDPSaveGroupDimension() [1/2]

ScDPSaveGroupDimension::ScDPSaveGroupDimension ( OUString  aSource,
OUString  aName 
)

Definition at line 127 of file dpdimsave.cxx.

References aName.

◆ ScDPSaveGroupDimension() [2/2]

ScDPSaveGroupDimension::ScDPSaveGroupDimension ( OUString  aSource,
OUString  aName,
const ScDPNumGroupInfo rDateInfo,
sal_Int32  nPart 
)

Definition at line 134 of file dpdimsave.cxx.

References aName.

Member Function Documentation

◆ AddGroupItem()

void ScDPSaveGroupDimension::AddGroupItem ( const ScDPSaveGroupItem rItem)

◆ AddToCache()

void ScDPSaveGroupDimension::AddToCache ( ScDPCache rCache) const

◆ AddToData()

void ScDPSaveGroupDimension::AddToData ( ScDPGroupTableData rData) const

◆ CreateGroupName()

OUString ScDPSaveGroupDimension::CreateGroupName ( std::u16string_view  rPrefix)

Definition at line 153 of file dpdimsave.cxx.

References aGroups.

Referenced by ScDataPilotFieldObj::createNameGroup(), and ScDBFunc::GroupDataPilot().

◆ GetDateInfo()

const ScDPNumGroupInfo & ScDPSaveGroupDimension::GetDateInfo ( ) const
inline

◆ GetDatePart()

sal_Int32 ScDPSaveGroupDimension::GetDatePart ( ) const
inline

◆ GetGroupByIndex()

const ScDPSaveGroupItem & ScDPSaveGroupDimension::GetGroupByIndex ( tools::Long  nIndex) const

◆ GetGroupCount()

tools::Long ScDPSaveGroupDimension::GetGroupCount ( ) const

◆ GetGroupDimName()

const OUString & ScDPSaveGroupDimension::GetGroupDimName ( ) const
inline

◆ GetNamedGroup()

const ScDPSaveGroupItem * ScDPSaveGroupDimension::GetNamedGroup ( const OUString &  rGroupName) const

◆ GetNamedGroupAcc()

ScDPSaveGroupItem * ScDPSaveGroupDimension::GetNamedGroupAcc ( const OUString &  rGroupName)

Definition at line 187 of file dpdimsave.cxx.

References aGroups.

Referenced by ScDBFunc::DataPilotInput(), and GetNamedGroup().

◆ GetSourceDimName()

const OUString & ScDPSaveGroupDimension::GetSourceDimName ( ) const
inline

◆ HasOnlyHidden()

bool ScDPSaveGroupDimension::HasOnlyHidden ( const ScDPUniqueStringSet rVisible)

Definition at line 240 of file dpdimsave.cxx.

References aGroups.

Referenced by ScDBFunc::UngroupDataPilot().

◆ IsEmpty()

bool ScDPSaveGroupDimension::IsEmpty ( ) const

Definition at line 235 of file dpdimsave.cxx.

References aGroups.

Referenced by ScDBFunc::UngroupDataPilot().

◆ IsInGroup()

bool ScDPSaveGroupDimension::IsInGroup ( const ScDPItemData rItem) const
private

Definition at line 253 of file dpdimsave.cxx.

References aGroups.

Referenced by AddToCache().

◆ RemoveFromGroups()

void ScDPSaveGroupDimension::RemoveFromGroups ( const OUString &  rItemName)

◆ RemoveGroup()

void ScDPSaveGroupDimension::RemoveGroup ( const OUString &  rGroupName)

Definition at line 225 of file dpdimsave.cxx.

References aGroups.

Referenced by ScDBFunc::UngroupDataPilot().

◆ Rename()

void ScDPSaveGroupDimension::Rename ( const OUString &  rNewName)

Definition at line 248 of file dpdimsave.cxx.

References aGroupDimName.

Referenced by ScDBFunc::DataPilotInput().

◆ SetDateInfo()

void ScDPSaveGroupDimension::SetDateInfo ( const ScDPNumGroupInfo rInfo,
sal_Int32  nPart 
)

Member Data Documentation

◆ aDateInfo

ScDPNumGroupInfo ScDPSaveGroupDimension::aDateInfo
mutableprivate

Definition at line 95 of file dpdimsave.hxx.

Referenced by AddToCache(), and SetDateInfo().

◆ aGroupDimName

OUString ScDPSaveGroupDimension::aGroupDimName
private

Definition at line 93 of file dpdimsave.hxx.

Referenced by AddToData(), and Rename().

◆ aGroups

ScDPSaveGroupItemVec ScDPSaveGroupDimension::aGroups
private

◆ aSourceDim

OUString ScDPSaveGroupDimension::aSourceDim
private

always the real source from the original data

Definition at line 92 of file dpdimsave.hxx.

Referenced by AddToCache(), and AddToData().

◆ nDatePart

sal_Int32 ScDPSaveGroupDimension::nDatePart
private

Definition at line 96 of file dpdimsave.hxx.

Referenced by AddToCache(), AddToData(), and SetDateInfo().


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