LibreOffice Module sc (master) 1
|
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 | |
ScDPSaveGroupItem & | operator= (ScDPSaveGroupItem const &)=default |
ScDPSaveGroupItem & | operator= (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< ScDPItemData > | maItems |
items converted from the strings. More... | |
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.
ScDPSaveGroupItem::ScDPSaveGroupItem | ( | OUString | aName | ) |
Definition at line 40 of file dpdimsave.cxx.
References aName.
ScDPSaveGroupItem::~ScDPSaveGroupItem | ( | ) |
Definition at line 43 of file dpdimsave.cxx.
|
default |
|
default |
void ScDPSaveGroupItem::AddElement | ( | const OUString & | rName | ) |
Definition at line 45 of file dpdimsave.cxx.
References aElements.
Referenced by ScDataPilotFieldObj::createNameGroup(), ScDBFunc::DataPilotInput(), ScXMLDataPilotFieldContext::endFastElement(), ScDBFunc::GroupDataPilot(), and ScDataPilotFieldObj::setGroupInfo().
void ScDPSaveGroupItem::AddElementsFromGroup | ( | const ScDPSaveGroupItem & | rGroup | ) |
Definition at line 50 of file dpdimsave.cxx.
References aElements.
Referenced by ScDataPilotFieldObj::createNameGroup(), and ScDBFunc::GroupDataPilot().
void ScDPSaveGroupItem::AddToData | ( | ScDPGroupDimension & | rDataDim | ) | const |
Definition at line 118 of file dpdimsave.cxx.
References ScDPGroupItem::AddElement(), ScDPGroupDimension::AddItem(), aGroupName, and maItems.
void ScDPSaveGroupItem::ConvertElementsToItems | ( | SvNumberFormatter * | pFormatter | ) | const |
Definition at line 96 of file dpdimsave.cxx.
References aData, aElements, SvNumberFormatter::IsNumberFormat(), and maItems.
const OUString * ScDPSaveGroupItem::GetElementByIndex | ( | size_t | nIndex | ) | const |
Definition at line 77 of file dpdimsave.cxx.
References aElements, and nIndex.
Referenced by ScDataPilotFieldObj::getGroupInfo(), XclExpPCField::InitStdGroupField(), and ScXMLExportDataPilot::WriteGroupDimElements().
size_t ScDPSaveGroupItem::GetElementCount | ( | ) | const |
Definition at line 72 of file dpdimsave.cxx.
References aElements.
Referenced by ScDataPilotFieldObj::getGroupInfo(), XclExpPCField::InitStdGroupField(), and ScXMLExportDataPilot::WriteGroupDimElements().
|
inline |
Definition at line 65 of file dpdimsave.hxx.
Referenced by ScDataPilotFieldObj::createNameGroup(), ScDataPilotFieldObj::getGroupInfo(), ScDBFunc::GroupDataPilot(), XclExpPCField::InitStdGroupField(), and ScXMLExportDataPilot::WriteGroupDimElements().
bool ScDPSaveGroupItem::HasInGroup | ( | const ScDPItemData & | rItem | ) | const |
Definition at line 113 of file dpdimsave.cxx.
References maItems.
bool ScDPSaveGroupItem::IsEmpty | ( | ) | const |
Definition at line 67 of file dpdimsave.cxx.
References aElements.
|
default |
|
default |
bool ScDPSaveGroupItem::RemoveElement | ( | const OUString & | rName | ) |
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().
void ScDPSaveGroupItem::Rename | ( | const OUString & | rNewName | ) |
Definition at line 82 of file dpdimsave.cxx.
References aGroupName.
Referenced by ScDBFunc::DataPilotInput().
|
private |
names of items in original dimension
Definition at line 49 of file dpdimsave.hxx.
Referenced by AddElement(), AddElementsFromGroup(), ConvertElementsToItems(), GetElementByIndex(), GetElementCount(), IsEmpty(), RemoveElement(), and RemoveElementsFromGroups().
|
private |
|
mutableprivate |
items converted from the strings.
Definition at line 50 of file dpdimsave.hxx.
Referenced by AddToData(), ConvertElementsToItems(), and HasInGroup().