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 (OUString aName)
 
 ~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 46 of file dpdimsave.hxx.

Constructor & Destructor Documentation

◆ ScDPSaveGroupItem() [1/3]

ScDPSaveGroupItem::ScDPSaveGroupItem ( OUString  aName)

Definition at line 40 of file dpdimsave.cxx.

References aName.

◆ ~ScDPSaveGroupItem()

ScDPSaveGroupItem::~ScDPSaveGroupItem ( )

Definition at line 43 of file dpdimsave.cxx.

◆ ScDPSaveGroupItem() [2/3]

ScDPSaveGroupItem::ScDPSaveGroupItem ( ScDPSaveGroupItem const &  )
default

◆ ScDPSaveGroupItem() [3/3]

ScDPSaveGroupItem::ScDPSaveGroupItem ( ScDPSaveGroupItem &&  )
default

Member Function Documentation

◆ AddElement()

void ScDPSaveGroupItem::AddElement ( const OUString &  rName)

◆ AddElementsFromGroup()

void ScDPSaveGroupItem::AddElementsFromGroup ( const ScDPSaveGroupItem rGroup)

Definition at line 50 of file dpdimsave.cxx.

References aElements.

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

◆ AddToData()

void ScDPSaveGroupItem::AddToData ( ScDPGroupDimension rDataDim) const

◆ ConvertElementsToItems()

void ScDPSaveGroupItem::ConvertElementsToItems ( SvNumberFormatter pFormatter) const

Definition at line 96 of file dpdimsave.cxx.

References aData, aElements, SvNumberFormatter::IsNumberFormat(), and maItems.

◆ GetElementByIndex()

const OUString * ScDPSaveGroupItem::GetElementByIndex ( size_t  nIndex) const

◆ GetElementCount()

size_t ScDPSaveGroupItem::GetElementCount ( ) const

◆ GetGroupName()

const OUString & ScDPSaveGroupItem::GetGroupName ( ) const
inline

◆ HasInGroup()

bool ScDPSaveGroupItem::HasInGroup ( const ScDPItemData rItem) const

Definition at line 113 of file dpdimsave.cxx.

References maItems.

◆ IsEmpty()

bool ScDPSaveGroupItem::IsEmpty ( ) const

Definition at line 67 of file dpdimsave.cxx.

References aElements.

◆ operator=() [1/2]

ScDPSaveGroupItem & ScDPSaveGroupItem::operator= ( ScDPSaveGroupItem &&  )
default

◆ operator=() [2/2]

ScDPSaveGroupItem & ScDPSaveGroupItem::operator= ( ScDPSaveGroupItem const &  )
default

◆ RemoveElement()

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

Definition at line 56 of file dpdimsave.cxx.

References aElements.

◆ RemoveElementsFromGroups()

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 87 of file dpdimsave.cxx.

References aElements, and ScDPSaveGroupDimension::RemoveFromGroups().

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

◆ Rename()

void ScDPSaveGroupItem::Rename ( const OUString &  rNewName)

Definition at line 82 of file dpdimsave.cxx.

References aGroupName.

Referenced by ScDBFunc::DataPilotInput().

Member Data Documentation

◆ aElements

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

◆ aGroupName

OUString ScDPSaveGroupItem::aGroupName
private

name of group

Definition at line 48 of file dpdimsave.hxx.

Referenced by AddToData(), and Rename().

◆ maItems

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

items converted from the strings.

Definition at line 50 of file dpdimsave.hxx.

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


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