237 const OUString*
GetItemName( sal_uInt16 nItemIdx )
const;
350 std::vector< XclImpPTFieldRef >
XclPTPageFieldInfo maPageInfo
Extended field info (SXVDEX record).
OUString GetDataFieldName(sal_uInt16 nDataFieldIdx) const
std::vector< XclImpPTFieldRef > maFields
void ReadSxvd(XclImpStream &rStrm)
Reads an SXVD record describing a new field.
SCCOL mnSourceScCol
List of items containing numeric grouping limits.
OUString maTabName
URL of the source data.
void ReadSxidstm(XclImpStream &rStrm)
Reads an SXIDSTM record containing a pivot cache stream identifier and the pivot cache.
void ReadPivotCacheStream(const XclImpStream &rStrm)
Reads the entire pivot cache stream.
void ReadSxvi(XclImpStream &rStrm)
Reads an SXVI record describing a new item of the current field.
Pivot table autoformat settings (SXVIEWEX9 record).
void ReadSxAddl(XclImpStream &rStrm)
Reads an SXADDL record that specifies additional info for pivot table.
void ConvertDateGroupField(ScDPSaveData &rSaveData, const ScfStringVec &rVisNames) const
Inserts date grouping information of this field into the passed ScDPSaveData.
void ReadSxpi(XclImpStream &rStrm)
Reads an SXPI record containing page field data.
XclPTViewEx9Info maPTViewEx9Info
Extended info about the pivot table (SXEX record).
OUString GetFieldName() const
Returns the name of this field that is used to create the Calc dimensions.
std::shared_ptr< XclImpPCItem > XclImpPCItemRef
void ConvertPageField(ScDPSaveData &rSaveData) const
void ReadSxpi(XclImpStream &rStrm)
Reads an SXPI record containing page field data.
std::vector< XclImpPivotTableRef > maPTables
List of all pivot caches.
void ReadSxfield(XclImpStream &rStrm)
Reads the SXFIELD record describing the field.
void Convert()
Inserts the pivot table into the Calc document.
void ReadSxvdex(XclImpStream &rStrm)
Reads an SXVDEX record describing extended options of the current field.
const ScRange & GetSourceRange() const
Returns the data source range read from the DCONREF record.
void ReadSxidstm(XclImpStream &rStrm)
Reads an SXIDSTM record containing a pivot cache stream identifier and the pivot cache.
void WriteLastOrigItemToSource(SCROW nScRow, SCTAB nScTab)
Inserts the data of the last inserted item into the document.
Extended information about a pivot table (SXEX record).
ScfStringVec maVisFieldNames
Current field for importing additional info.
XclPTFieldInfo maFieldInfo
Parent pivot table containing this field.
const ScfStringVec & GetVisFieldNames() const
XclImpPTField(const XclImpPivotTable &rPTable, sal_uInt16 nCacheIdx)
OUString maSrcRangeName
Sheet name of the source data.
XclPTFieldExtInfo maFieldExtInfo
General field info (SXVD record).
XclImpPCItemVec maItems
Parent pivot cache containing this field.
std::shared_ptr< XclImpPCField > XclImpPCFieldRef
const sal_Int16 * GetDateGroupStep() const
Returns the step value for date grouping fields.
void ReadSxAddl(XclImpStream &rStrm)
Reads an SXADDL record that specifies additional info for pivot table.
ScDPNumGroupInfo GetScDateGroupInfo() const
Returns a Calc struct with date grouping data.
void ReadSxempty(XclImpStream &rStrm)
Reads an SXEMPTY record describing an empty item.
XclImpPivotTable(const XclImpRoot &rRoot)
sal_uInt16 mnSrcType
Pivot cache stream identifier.
Represents a field in a pivot cache.
void WriteFieldNameToSource(SCCOL nScCol, SCTAB nScTab)
Inserts the field name into the document.
void ConvertDataField(ScDPSaveData &rSaveData) const
const XclImpPTItem * GetItem(sal_uInt16 nItemIdx) const
Returns the specified item.
void ReadItem(XclImpStream &rStrm)
Reads an item data record describing a new item.
XclImpPivotCacheRef mxPCache
void ReadSxvs(XclImpStream &rStrm)
Reads an SXVS record containing the source type of a pivot cache.
void SetPageFieldInfo(const XclPTPageFieldInfo &rPageInfo)
virtual ~XclImpPivotCache() override
void ConvertDataFieldInfo(ScDPSaveDimension &rSaveDim, const XclPTDataFieldInfo &rDataInfo) const
XclImpPCItem(XclImpStream &rStrm)
const XclImpPivotCacheRef & GetPivotCache() const
void ReadDconref(XclImpStream &rStrm)
Reads a DCONREF record containing the source range of a pivot cache.
XclImpPTField * GetFieldAcc(sal_uInt16 nFieldIdx)
Contains extended data for a pivot table field (SXVDEX record).
void ReadSxdatetime(XclImpStream &rStrm)
Reads an SXDATETIME record describing a date/time item.
std::shared_ptr< XclImpPivotTable > XclImpPivotTableRef
bool IsRefreshOnLoad() const
Contains data for a pivot table page field (part of SXPI record).
void ReadDConName(XclImpStream &rStrm)
Read DECONNAME record which contains the defined name of the source range.
void ReadSxex(XclImpStream &rStrm)
Reads an SXEX record containing additional settings for a pivot table.
void ReadSxivd(XclImpStream &rStrm)
Reads an SXIVD record containing the row field or column field order.
void ReadSxvd(XclImpStream &rStrm)
Reads an SXVD record describing the field.
Contains data for a pivot table field (SXVD record).
XclImpPTItem(const XclImpPCField *pCacheField)
void ReadSxgroupinfo(XclImpStream &rStrm)
Reads the SXGROUPINFO record describing the item order in grouping fields.
ScDPNumGroupInfo GetScNumGroupInfo() const
Returns a Calc struct with numeric grouping data.
void ReadSxboolean(XclImpStream &rStrm)
Reads an SXBOOLEAN record describing a boolean item.
XclImpPivotCache & mrPCache
ScfUInt16Vec maRowFields
Vector containing all visible field names.
void ReadDConName(XclImpStream &rStrm)
ScRange maSrcRange
List of pivot cache fields.
void ReadSxViewEx9(XclImpStream &rStrm)
Reads an SXVIEWEX9 record that specifies the pivot tables autoformat.
void ConvertStdGroupField(ScDPSaveData &rSaveData, const ScfStringVec &rVisNames) const
Inserts standard grouping information of this field into the passed ScDPSaveData. ...
::std::vector< XclImpPCItemRef > XclImpPCItemVec
ScfUInt16Vec maPageFields
Column field indexes.
XclImpPTField maDataOrientField
Filtered data field indexes.
const XclImpPivotTable & mrPTable
Represents a data item in a pivot cache.
XclImpPivotTableManager(const XclImpRoot &rRoot)
void WriteOrigItemToSource(SCROW nScRow, SCTAB nScTab, sal_uInt16 nItemIdx)
Inserts the specified item data into the document.
void ConvertPivotTables()
Inserts all pivot tables into the Calc document.
ScfUInt16Vec maColFields
Row field indexes.
Contains data for a pivot table data item (SXVI record).
const XclImpPCItem * GetItem(sal_uInt16 nItemIdx) const
Returns the item at the specified position or 0 on error.
void ReadSxvi(XclImpStream &rStrm)
Reads an SXVI record containing data of this item.
std::shared_ptr< XclImpPTField > XclImpPTFieldRef
void ReadSxview(XclImpStream &rStrm)
Reads an SXVIEW record starting a new pivot table.
void ConvertRCPField(ScDPSaveData &rSaveData) const
void ConvertRowColField(ScDPSaveData &rSaveData) const
void ReadSxstring(XclImpStream &rStrm)
Reads an SXSTRING record describing a text item.
void ReadSxvi(XclImpStream &rStrm)
Reads an SXVI record describing a new item of the current field.
XclPTInfo maPTInfo
Pivot cache containing field/item names.
const XclImpPCField * GetGroupBaseField() const
Returns the base field if this is a grouping field.
Contains data for a pivot table data field (SXDI record).
bool mbSelfRef
Source data type.
const XclImpPCField * GetField(sal_uInt16 nFieldIdx) const
Returns read-only access to a pivot cache field.
void ConvertFieldInfo(const ScDPSaveData &rSaveData, ScDPObject *pObj, const XclImpRoot &rRoot, bool bPageField=false) const
void ReadSxvdex(XclImpStream &rStrm)
Reads an SXVDEX record describing extended options of a field.
void ReadSxvs(XclImpStream &rStrm)
Reads an SXVS record containing the source type of the pivot cache.
OUString GetVisFieldName() const
Returns the internally set visible name of this field.
const XclImpPCField * mpCacheField
General data for this item.
void ApplyMergeFlags(const ScRange &rOutRange, const ScDPSaveData &rSaveData)
void ReadSxex(XclImpStream &rStrm)
Reads an SXEX record containing additional settings for the pivot table.
virtual ~XclImpPivotTableManager() override
void ReadSxViewEx9(XclImpStream &rStrm)
Reads an SXVIEWEX9 record that specifies the pivot tables autoformat.
XclImpPTFieldRef mxCurrField
Vector containing all fields.
XclImpPivotCacheRef GetPivotCache(sal_uInt16 nCacheIdx)
Returns the pivot cache with the specified 0-based index.
std::shared_ptr< XclImpPivotCache > XclImpPivotCacheRef
void ReadSxnumgroup(XclImpStream &rStrm)
Reads the SXNUMGROUP record describing numeric grouping fields.
void ReadSxvi(XclImpStream &rStrm)
Reads an SXVI record describing a new item of this field.
ScfUInt16Vec maOrigDataFields
Page field indexes.
const XclImpPCField * GetCacheField() const
Returns the corresponding pivot cache field of this field.
const DateTime * GetDateGroupLimit(sal_uInt16 nLimitIdx) const
Returns a limit value for date grouping fields (minimum/maximum only).
std::vector< XclImpPivotCacheRef > maPCaches
bool HasDataFieldInfo() const
XclPTAddl maPTAddlInfo
(SXVIEWEX9 record)
XclImpPCFieldVec maFields
Pivot cache settings (SXDB record).
void ReadSxdouble(XclImpStream &rStrm)
Reads an SXDOUBLE record describing a floating-point item.
std::vector< XclPTDataFieldInfo > maDataInfoVector
Page field info (entry from SXPI record).
XclPTExtInfo maPTExtInfo
General info about the pivot table (SXVIEW record).
void ReadSxview(XclImpStream &rStrm)
Reads an SXVIEW record describing a new pivot table.
const double * GetNumGroupLimit(sal_uInt16 nLimitIdx) const
Returns a limit value for numeric grouping fields.
const XclImpPCItem * GetLimitItem(sal_uInt16 nItemIdx) const
Returns the item representing a limit value in numeric/date/time grouping fields. ...
Contains data for a pivot cache (SXDB record).
ScRange maOutScRange
Special data field orientation field.
bool mbNumGroupInfoRead
Column index of source data for this field.
void ConvertHiddenField(ScDPSaveData &rSaveData) const
sal_uInt16 GetAxes() const
Returns the flags of the axes this field is part of.
void AddDataFieldInfo(const XclPTDataFieldInfo &rDataInfo)
void ReadSxinteger(XclImpStream &rStrm)
Reads an SXINTEGER record describing an integer item.
const OUString & GetSourceRangeName() const
std::shared_ptr< XclImpPTItem > XclImpPTItemRef
The main class for pivot table import.
Contains data for a pivot table (SXVIEW record).
XclImpPCItemVec maOrigItems
List of all displayed data items.
void ConvertItem(ScDPSaveDimension &rSaveDim, ScDPObject *pObj, const XclImpRoot &rRoot) const
Inserts this item into the passed ScDPSaveDimension.
Additional pivot table settings (SXADDL record).
const XclImpPTField * GetDataField(sal_uInt16 nDataFieldIdx) const
void ReadSxivd(XclImpStream &rStrm)
Reads an SXIVD record containing the row field or column field order.
sal_uInt16 mnStrmId
Name of the source data range.
void MaybeRefreshPivotTables()
virtual ~XclImpPCField() override
void ConvertGroupField(ScDPSaveData &rSaveData, const ScfStringVec &rVisNames) const
Inserts grouping information of this field into the passed ScDPSaveData.
void ConvertNumGroupField(ScDPSaveData &rSaveData, const ScfStringVec &rVisNames) const
Inserts numeric grouping information of this field into the passed ScDPSaveData.
void WriteToSource(XclImpRoot &rRoot, const ScAddress &rScPos) const
Inserts the item data into the passed document.
void SetAxes(sal_uInt16 nAxes)
Sets the flags of the axes this field is part of.
const XclImpPTField * GetField(sal_uInt16 nFieldIdx) const
ScfUInt16Vec maFiltDataFields
Original data field indexes.
void ReadSxdi(XclImpStream &rStrm)
Reads an SXDI record containing data field data.
ScDPObject * mpDPObj
Output range in the Calc document.
sal_uInt16 GetFieldCount() const
This class is used to import record oriented streams.
void ReadDconref(XclImpStream &rStrm)
Reads a DCONREF record containing the source range of the pivot cache.
void ReadSxvd(XclImpStream &rStrm)
Reads an SXVD record describing a new field.
XclImpPCField(const XclImpRoot &rRoot, XclImpPivotCache &rPCache, sal_uInt16 nFieldIdx)
Creates a pivot cache field by reading an SXFIELD record.
void ReadPivotCaches(const XclImpStream &rStrm)
Reads all used pivot caches and creates additional sheets for external data sources.
virtual ~XclImpPivotTable() override
Access to global data from other classes.
const OUString & GetFieldName(const ScfStringVec &rVisNames) const
Returns the name of the field, uses the passed visible name if supported.
void ReadSxdi(XclImpStream &rStrm)
Reads an SXDI record containing data field data.
std::vector< XclImpPTItemRef > maItems
Vector of extended data field info (SXDI records).
XclImpPCItemVec maNumGroupItems
List of all source data items.
const OUString * GetItemName() const
Returns the internal name of the item or 0, if no name could be found.
XclImpPivotCache(const XclImpRoot &rRoot)
void ReadSxvdex(XclImpStream &rStrm)
Reads an SXVDEX record describing extended options of the field.
const OUString * GetItemName(sal_uInt16 nItemIdx) const
Returns the internal name of the specified item.
::std::vector< XclImpPCFieldRef > XclImpPCFieldVec
void ReadSxerror(XclImpStream &rStrm)
Reads an SXERROR record describing an error code item.
OUString maUrl
Source range in the spreadsheet.
Represents a field in a pivot cache (a column of data items in the source area).
Represents a data item of any type in a pivot cache.