20 #ifndef INCLUDED_SC_INC_DPDIMSAVE_HXX
21 #define INCLUDED_SC_INC_DPDIMSAVE_HXX
27 #include <string_view>
51 mutable std::vector<ScDPItemData>
maItems;
64 void AddElement(
const OUString& rName );
69 bool RemoveElement(
const OUString& rName );
72 size_t GetElementCount()
const;
73 const OUString* GetElementByIndex(
size_t nIndex)
const;
75 void Rename(
const OUString& rNewName );
104 void AddToCache(
ScDPCache& rCache)
const;
114 OUString CreateGroupName( std::u16string_view rPrefix );
117 void RemoveFromGroups(
const OUString& rItemName );
118 void RemoveGroup(
const OUString& rGroupName);
119 bool IsEmpty()
const;
125 void Rename(
const OUString& rNewName );
148 void AddToCache(
ScDPCache& rCache)
const;
173 void WriteToCache(
ScDPCache& rCache)
const;
175 OUString CreateGroupDimName(
176 const OUString& rSourceName,
const ScDPObject& rObject,
bool bAllowSource,
177 const ::std::vector<OUString>* pDeletedNames );
179 OUString CreateDateGroupDimName(
180 sal_Int32 nDatePart,
const ScDPObject& rObject,
bool bAllowSource,
181 const ::std::vector<OUString>* pDeletedNames );
185 void RemoveGroupDimension(
const OUString& rGroupDimName );
189 void RemoveNumGroupDimension(
const OUString& rGroupDimName );
204 bool HasGroupDimensions()
const;
206 sal_Int32 CollectDateParts(
const OUString& rBaseDimName )
const;
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)
const OUString & GetGroupDimName() const
This class has to do with handling exclusively grouped dimensions? TODO: Find out what this class doe...
::std::map< OUString, ScDPSaveNumGroupDimension > ScDPSaveNumGroupDimMap
ScDPSaveGroupItemVec aGroups
Classes to save Data Pilot settings that create new dimensions (fields).
const OUString & GetGroupName() const
const OUString & GetSourceDimName() const
const ContentProperties & rData
ScDPNumGroupInfo aDateInfo
sal_Int32 GetDatePart() const
const ScDPNumGroupInfo & GetDateInfo() const
This class represents the cached data part of the datapilot cache table implementation.
std::vector< ScDPItemData > maItems
items converted from the strings.
ScDPNumGroupInfo aDateInfo
ScDPSaveGroupDimVec maGroupDims
sal_Int32 GetDatePart() const
OUString aSourceDim
always the real source from the original data
When assigning a string value, you can also assign an interned string whose life-cycle is managed by ...
Represents a group dimension that introduces a new hierarchy for an existing dimension.
const OUString & GetDimensionName() const
ScDPNumGroupInfo aGroupInfo
OUString aGroupName
name of group
const ScDPNumGroupInfo & GetDateInfo() const
ScDPSaveNumGroupDimMap maNumGroupDims
::std::vector< ScDPSaveGroupDimension > ScDPSaveGroupDimVec
std::unordered_set< OUString > ScDPUniqueStringSet
std::vector< OUString > aElements
names of items in original dimension
Represents a new group dimension whose dimension ID is higher than the highest source dimension ID...
const ScDPNumGroupInfo & GetInfo() const
::std::vector< ScDPSaveGroupItem > ScDPSaveGroupItemVec