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

Classes to save Data Pilot settings that create new dimensions (fields). More...

#include <dpdimsave.hxx>

Public Member Functions

 ScDPSaveGroupItem (const OUString &rName)
 
 ~ScDPSaveGroupItem ()
 
 ScDPSaveGroupItem (ScDPSaveGroupItem const &)=default
 
 ScDPSaveGroupItem (ScDPSaveGroupItem &&)=default
 
ScDPSaveGroupItemoperator= (ScDPSaveGroupItem const &)=default
 
ScDPSaveGroupItemoperator= (ScDPSaveGroupItem &&)=default
 
void AddToData (ScDPGroupDimension &rDataDim) const
 
void AddElement (const OUString &rName)
 
void AddElementsFromGroup (const ScDPSaveGroupItem &rGroup)
 
const OUString & GetGroupName () const
 
bool RemoveElement (const OUString &rName)
 
bool IsEmpty () const
 
size_t GetElementCount () const
 
const OUString * GetElementByIndex (size_t nIndex) const
 
void Rename (const OUString &rNewName)
 
void RemoveElementsFromGroups (ScDPSaveGroupDimension &rDimension) const
 remove this group's elements from their groups in rDimension (rDimension must be a different dimension from the one which contains this) More...
 
void ConvertElementsToItems (SvNumberFormatter *pFormatter) const
 
bool HasInGroup (const ScDPItemData &rItem) const
 

Private Attributes

OUString aGroupName
 name of group More...
 
std::vector< OUString > aElements
 names of items in original dimension More...
 
std::vector< ScDPItemDatamaItems
 items converted from the strings. More...
 

Detailed Description

Classes to save Data Pilot settings that create new dimensions (fields).

These have to be applied before the other ScDPSaveData settings.

Definition at line 43 of file dpdimsave.hxx.

Constructor & Destructor Documentation

ScDPSaveGroupItem::ScDPSaveGroupItem ( const OUString &  rName)

Definition at line 39 of file dpdimsave.cxx.

ScDPSaveGroupItem::~ScDPSaveGroupItem ( )

Definition at line 42 of file dpdimsave.cxx.

ScDPSaveGroupItem::ScDPSaveGroupItem ( ScDPSaveGroupItem const &  )
default
ScDPSaveGroupItem::ScDPSaveGroupItem ( ScDPSaveGroupItem &&  )
default

Member Function Documentation

void ScDPSaveGroupItem::AddElement ( const OUString &  rName)
void ScDPSaveGroupItem::AddElementsFromGroup ( const ScDPSaveGroupItem rGroup)

Definition at line 49 of file dpdimsave.cxx.

References aElements.

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

void ScDPSaveGroupItem::AddToData ( ScDPGroupDimension rDataDim) const
void ScDPSaveGroupItem::ConvertElementsToItems ( SvNumberFormatter pFormatter) const
const OUString * ScDPSaveGroupItem::GetElementByIndex ( size_t  nIndex) const
size_t ScDPSaveGroupItem::GetElementCount ( ) const
const OUString& ScDPSaveGroupItem::GetGroupName ( ) const
inline
bool ScDPSaveGroupItem::HasInGroup ( const ScDPItemData rItem) const

Definition at line 114 of file dpdimsave.cxx.

References maItems.

bool ScDPSaveGroupItem::IsEmpty ( ) const

Definition at line 68 of file dpdimsave.cxx.

References aElements.

ScDPSaveGroupItem& ScDPSaveGroupItem::operator= ( ScDPSaveGroupItem const &  )
default
ScDPSaveGroupItem& ScDPSaveGroupItem::operator= ( ScDPSaveGroupItem &&  )
default
bool ScDPSaveGroupItem::RemoveElement ( const OUString &  rName)
Returns
true if found (removed)

Definition at line 57 of file dpdimsave.cxx.

References aElements.

void ScDPSaveGroupItem::RemoveElementsFromGroups ( ScDPSaveGroupDimension rDimension) const

remove this group's elements from their groups in rDimension (rDimension must be a different dimension from the one which contains this)

Definition at line 88 of file dpdimsave.cxx.

References aElements, and ScDPSaveGroupDimension::RemoveFromGroups().

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

void ScDPSaveGroupItem::Rename ( const OUString &  rNewName)

Definition at line 83 of file dpdimsave.cxx.

References aGroupName.

Referenced by ScDBFunc::DataPilotInput().

Member Data Documentation

std::vector<OUString> ScDPSaveGroupItem::aElements
private
OUString ScDPSaveGroupItem::aGroupName
private

name of group

Definition at line 45 of file dpdimsave.hxx.

Referenced by AddToData(), and Rename().

std::vector<ScDPItemData> ScDPSaveGroupItem::maItems
mutableprivate

items converted from the strings.

Definition at line 47 of file dpdimsave.hxx.

Referenced by AddToData(), ConvertElementsToItems(), and HasInGroup().


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