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 (const OUString &rSource, const OUString &rName)
 
 ScDPSaveGroupDimension (const OUString &rSource, const OUString &rName, 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 (const OUString &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 87 of file dpdimsave.hxx.

Constructor & Destructor Documentation

ScDPSaveGroupDimension::ScDPSaveGroupDimension ( const OUString &  rSource,
const OUString &  rName 
)

Definition at line 128 of file dpdimsave.cxx.

ScDPSaveGroupDimension::ScDPSaveGroupDimension ( const OUString &  rSource,
const OUString &  rName,
const ScDPNumGroupInfo rDateInfo,
sal_Int32  nPart 
)

Definition at line 135 of file dpdimsave.cxx.

Member Function Documentation

void ScDPSaveGroupDimension::AddGroupItem ( const ScDPSaveGroupItem rItem)
void ScDPSaveGroupDimension::AddToCache ( ScDPCache rCache) const
void ScDPSaveGroupDimension::AddToData ( ScDPGroupTableData rData) const
OUString ScDPSaveGroupDimension::CreateGroupName ( const OUString &  rPrefix)

Definition at line 154 of file dpdimsave.cxx.

References aGroups.

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

const ScDPNumGroupInfo& ScDPSaveGroupDimension::GetDateInfo ( ) const
inline
sal_Int32 ScDPSaveGroupDimension::GetDatePart ( ) const
inline
const ScDPSaveGroupItem & ScDPSaveGroupDimension::GetGroupByIndex ( tools::Long  nIndex) const
tools::Long ScDPSaveGroupDimension::GetGroupCount ( ) const
const OUString& ScDPSaveGroupDimension::GetGroupDimName ( ) const
inline
const ScDPSaveGroupItem * ScDPSaveGroupDimension::GetNamedGroup ( const OUString &  rGroupName) const
ScDPSaveGroupItem * ScDPSaveGroupDimension::GetNamedGroupAcc ( const OUString &  rGroupName)

Definition at line 188 of file dpdimsave.cxx.

References aGroups.

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

const OUString& ScDPSaveGroupDimension::GetSourceDimName ( ) const
inline
bool ScDPSaveGroupDimension::HasOnlyHidden ( const ScDPUniqueStringSet rVisible)

Definition at line 241 of file dpdimsave.cxx.

References aGroups.

Referenced by ScDBFunc::UngroupDataPilot().

bool ScDPSaveGroupDimension::IsEmpty ( ) const

Definition at line 236 of file dpdimsave.cxx.

References aGroups.

Referenced by ScDBFunc::UngroupDataPilot().

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

Definition at line 254 of file dpdimsave.cxx.

References aGroups.

Referenced by AddToCache().

void ScDPSaveGroupDimension::RemoveFromGroups ( const OUString &  rItemName)
void ScDPSaveGroupDimension::RemoveGroup ( const OUString &  rGroupName)

Definition at line 226 of file dpdimsave.cxx.

References aGroups.

Referenced by ScDBFunc::UngroupDataPilot().

void ScDPSaveGroupDimension::Rename ( const OUString &  rNewName)

Definition at line 249 of file dpdimsave.cxx.

References aGroupDimName.

Referenced by ScDBFunc::DataPilotInput().

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

Member Data Documentation

ScDPNumGroupInfo ScDPSaveGroupDimension::aDateInfo
mutableprivate

Definition at line 92 of file dpdimsave.hxx.

Referenced by AddToCache(), and SetDateInfo().

OUString ScDPSaveGroupDimension::aGroupDimName
private

Definition at line 90 of file dpdimsave.hxx.

Referenced by AddToData(), and Rename().

ScDPSaveGroupItemVec ScDPSaveGroupDimension::aGroups
private
OUString ScDPSaveGroupDimension::aSourceDim
private

always the real source from the original data

Definition at line 89 of file dpdimsave.hxx.

Referenced by AddToCache(), and AddToData().

sal_Int32 ScDPSaveGroupDimension::nDatePart
private

Definition at line 93 of file dpdimsave.hxx.

Referenced by SetDateInfo().


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