28 #include <mdds/flat_segment_tree.hpp>
33 #include <unordered_set>
101 virtual OUString getColumnLabel(
tools::Long nCol)
const = 0;
102 virtual bool first() = 0;
103 virtual bool next() = 0;
104 virtual void finish() = 0;
134 rtl_uString*
InternString(
size_t nDim,
const OUString& rStr );
size_t GetGroupFieldCount() const
static sal_uInt32 GetLocaleIndependentFormat(SvNumberFormatter &rFormatter, sal_uInt32 nNumFormat)
OUString GetFormattedString(tools::Long nDim, const ScDPItemData &rItem, bool bLocaleIndependent) const
EmptyRowsType maEmptyRows
tools::Long GetDimMemberCount(tools::Long nDim) const
OUString GetDimensionName(std::vector< OUString >::size_type nDim) const
static OUString GetLocaleIndependentFormattedString(double fValue, SvNumberFormatter &rFormatter, sal_uInt32 nNumFormat)
std::vector< StringSetType > maStringPools
size_t GetFieldCount() const
std::vector< std::unique_ptr< GroupItems > > GroupFieldsType
SCROW SetGroupItem(tools::Long nDim, const ScDPItemData &rData)
ScDocument & GetDoc() const
SCROW GetIdByItemData(tools::Long nDim, const ScDPItemData &rItem) const
ScDPCache(const ScDPCache &)=delete
const GroupItems * GetGroupItems(tools::Long nDim) const
rtl_uString * InternString(size_t nDim, const OUString &rStr)
const ContentProperties & rData
const ScDPCache & operator=(const ScDPCache &)=delete
const ScDPItemDataVec & GetDimMemberValues(SCCOL nDim) const
This class represents the cached data part of the datapilot cache table implementation.
void InitFromDoc(ScDocument &rDoc, const ScRange &rRange)
SCROW GetItemDataId(sal_uInt16 nDim, SCROW nRow, bool bRepeatIfEmpty) const
SCCOL GetDimensionIndex(std::u16string_view sName) const
std::unordered_set< OUString > StringSetType
bool IsRowEmpty(SCROW nRow) const
sal_Int32 GetGroupType(tools::Long nDim) const
Return a group type identifier.
tools::Long AppendGroupField()
SCROW GetRowCount() const
Row count is the number of records plus any trailing empty rows in case the source data is sheet and ...
const ScDPItemData * GetItemDataById(tools::Long nDim, SCROW nId) const
void AddReference(ScDPObject *pObj) const
const ScDPNumGroupInfo * GetNumGroupInfo(tools::Long nDim) const
ScDPObjectSet maRefObjects
All pivot table objects that references this cache.
std::unique_ptr< GroupItems > mpGroup
Optional items for grouped field.
std::vector< OUString > maLabelNames
Interface for connecting to database source.
When assigning a string value, you can also assign an interned string whose life-cycle is managed by ...
o3tl::sorted_vector< ScDPObject * > ScDPObjectSet
void ResetGroupItems(tools::Long nDim, const ScDPNumGroupInfo &rNumInfo, sal_Int32 nGroupType)
SCROW GetDataSize() const
Data size is the number of records without any trailing empty rows for sheet source data...
SvNumberFormatter * GetNumberFormatter() const
std::vector< ScDPItemData > ScDPItemDataVec
tools::Long GetColumnCount() const
css::beans::Optional< css::uno::Any > getValue(std::u16string_view id)
GroupFieldsType maGroupFields
IndexArrayType maData
Original source data represented as indices to the unique value list.
const IndexArrayType * GetFieldIndexArray(size_t nDim) const
bool InitFromDataBase(DBConnector &rDB)
ScDPItemDataVec maItems
Unique values in the field, stored in ascending order.
static OUString GetLocaleIndependentFormattedNumberString(double fValue)
void RemoveReference(ScDPObject *pObj) const
bool IsDateDimension(tools::Long nDim) const
const ScDPObjectSet & GetAllReferences() const
sal_uInt32 GetNumberFormat(tools::Long nDim) const
std::vector< std::unique_ptr< Field > > FieldsType
std::vector< SCROW > IndexArrayType
void GetGroupDimMemberIds(tools::Long nDim, std::vector< SCROW > &rIds) const
constexpr OUStringLiteral first
mdds::flat_segment_tree< SCROW, bool > EmptyRowsType
bool ValidQuery(SCROW nRow, const ScQueryParam &rQueryParam) const