LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XclImpPTField Class Reference

#include <xipivot.hxx>

Collaboration diagram for XclImpPTField:
[legend]

Public Member Functions

 XclImpPTField (const XclImpPivotTable &rPTable, sal_uInt16 nCacheIdx)
 
const XclImpPCFieldGetCacheField () const
 Returns the corresponding pivot cache field of this field. More...
 
OUString GetFieldName () const
 Returns the name of this field that is used to create the Calc dimensions. More...
 
OUString GetVisFieldName () const
 Returns the internally set visible name of this field. More...
 
const XclImpPTItemGetItem (sal_uInt16 nItemIdx) const
 Returns the specified item. More...
 
const OUString * GetItemName (sal_uInt16 nItemIdx) const
 Returns the internal name of the specified item. More...
 
sal_uInt16 GetAxes () const
 Returns the flags of the axes this field is part of. More...
 
void SetAxes (sal_uInt16 nAxes)
 Sets the flags of the axes this field is part of. More...
 
void ReadSxvd (XclImpStream &rStrm)
 Reads an SXVD record describing the field. More...
 
void ReadSxvdex (XclImpStream &rStrm)
 Reads an SXVDEX record describing extended options of the field. More...
 
void ReadSxvi (XclImpStream &rStrm)
 Reads an SXVI record describing a new item of this field. More...
 
void ConvertRowColField (ScDPSaveData &rSaveData) const
 
void SetPageFieldInfo (const XclPTPageFieldInfo &rPageInfo)
 
void ConvertPageField (ScDPSaveData &rSaveData) const
 
void ConvertHiddenField (ScDPSaveData &rSaveData) const
 
bool HasDataFieldInfo () const
 
void AddDataFieldInfo (const XclPTDataFieldInfo &rDataInfo)
 
void ConvertDataField (ScDPSaveData &rSaveData) const
 
void ConvertFieldInfo (const ScDPSaveData &rSaveData, ScDPObject *pObj, const XclImpRoot &rRoot, bool bPageField=false) const
 

Private Member Functions

void ConvertRCPField (ScDPSaveData &rSaveData) const
 
void ConvertDataField (ScDPSaveDimension &rSaveDim, const XclPTDataFieldInfo &rDataInfo) const
 
void ConvertDataFieldInfo (ScDPSaveDimension &rSaveDim, const XclPTDataFieldInfo &rDataInfo) const
 

Private Attributes

const XclImpPivotTablemrPTable
 
XclPTFieldInfo maFieldInfo
 Parent pivot table containing this field. More...
 
XclPTFieldExtInfo maFieldExtInfo
 General field info (SXVD record). More...
 
XclPTPageFieldInfo maPageInfo
 Extended field info (SXVDEX record). More...
 
std::vector< XclPTDataFieldInfomaDataInfoVector
 Page field info (entry from SXPI record). More...
 
std::vector< XclImpPTItemRefmaItems
 Vector of extended data field info (SXDI records). More...
 

Detailed Description

Definition at line 220 of file xipivot.hxx.

Constructor & Destructor Documentation

◆ XclImpPTField()

XclImpPTField::XclImpPTField ( const XclImpPivotTable rPTable,
sal_uInt16  nCacheIdx 
)
explicit

Definition at line 956 of file xipivot.cxx.

References maFieldInfo, and XclPTFieldInfo::mnCacheIdx.

Member Function Documentation

◆ AddDataFieldInfo()

void XclImpPTField::AddDataFieldInfo ( const XclPTDataFieldInfo rDataInfo)

◆ ConvertDataField() [1/2]

void XclImpPTField::ConvertDataField ( ScDPSaveData rSaveData) const

◆ ConvertDataField() [2/2]

void XclImpPTField::ConvertDataField ( ScDPSaveDimension rSaveDim,
const XclPTDataFieldInfo rDataInfo 
) const
private

Definition at line 1203 of file xipivot.cxx.

References ConvertDataFieldInfo(), and ScDPSaveDimension::SetOrientation().

◆ ConvertDataFieldInfo()

void XclImpPTField::ConvertDataFieldInfo ( ScDPSaveDimension rSaveDim,
const XclPTDataFieldInfo rDataInfo 
) const
private

◆ ConvertFieldInfo()

void XclImpPTField::ConvertFieldInfo ( const ScDPSaveData rSaveData,
ScDPObject pObj,
const XclImpRoot rRoot,
bool  bPageField = false 
) const

◆ ConvertHiddenField()

void XclImpPTField::ConvertHiddenField ( ScDPSaveData rSaveData) const

◆ ConvertPageField()

void XclImpPTField::ConvertPageField ( ScDPSaveData rSaveData) const

◆ ConvertRCPField()

void XclImpPTField::ConvertRCPField ( ScDPSaveData rSaveData) const
private

◆ ConvertRowColField()

void XclImpPTField::ConvertRowColField ( ScDPSaveData rSaveData) const

◆ GetAxes()

sal_uInt16 XclImpPTField::GetAxes ( ) const
inline

Returns the flags of the axes this field is part of.

Definition at line 240 of file xipivot.hxx.

References maFieldInfo, and XclPTFieldInfo::mnAxes.

◆ GetCacheField()

const XclImpPCField * XclImpPTField::GetCacheField ( ) const

Returns the corresponding pivot cache field of this field.

Definition at line 964 of file xipivot.cxx.

References XclImpPivotTable::GetPivotCache(), maFieldInfo, XclPTFieldInfo::mnCacheIdx, and mrPTable.

Referenced by ConvertFieldInfo(), ConvertRCPField(), GetFieldName(), and ReadSxvi().

◆ GetFieldName()

OUString XclImpPTField::GetFieldName ( ) const

Returns the name of this field that is used to create the Calc dimensions.

Definition at line 970 of file xipivot.cxx.

References GetCacheField(), XclImpPCField::GetFieldName(), XclImpPivotTable::GetVisFieldNames(), and mrPTable.

Referenced by ConvertDataField(), ConvertDataFieldInfo(), ConvertFieldInfo(), and ConvertRCPField().

◆ GetItem()

const XclImpPTItem * XclImpPTField::GetItem ( sal_uInt16  nItemIdx) const

Returns the specified item.

Definition at line 982 of file xipivot.cxx.

References maItems.

Referenced by ConvertFieldInfo(), and GetItemName().

◆ GetItemName()

const OUString * XclImpPTField::GetItemName ( sal_uInt16  nItemIdx) const

Returns the internal name of the specified item.

Definition at line 987 of file xipivot.cxx.

References GetItem(), and XclImpPTItem::GetItemName().

Referenced by ConvertDataFieldInfo().

◆ GetVisFieldName()

OUString XclImpPTField::GetVisFieldName ( ) const

Returns the internally set visible name of this field.

Definition at line 976 of file xipivot.cxx.

References XclPTVisNameInfo::GetVisName(), and maFieldInfo.

◆ HasDataFieldInfo()

bool XclImpPTField::HasDataFieldInfo ( ) const

Definition at line 1047 of file xipivot.cxx.

References maDataInfoVector.

◆ ReadSxvd()

void XclImpPTField::ReadSxvd ( XclImpStream rStrm)

Reads an SXVD record describing the field.

Definition at line 995 of file xipivot.cxx.

References maFieldInfo, and rStrm.

◆ ReadSxvdex()

void XclImpPTField::ReadSxvdex ( XclImpStream rStrm)

Reads an SXVDEX record describing extended options of the field.

Definition at line 1000 of file xipivot.cxx.

References maFieldExtInfo, and rStrm.

◆ ReadSxvi()

void XclImpPTField::ReadSxvi ( XclImpStream rStrm)

Reads an SXVI record describing a new item of this field.

Definition at line 1005 of file xipivot.cxx.

References GetCacheField(), maItems, and rStrm.

◆ SetAxes()

void XclImpPTField::SetAxes ( sal_uInt16  nAxes)
inline

Sets the flags of the axes this field is part of.

Definition at line 242 of file xipivot.hxx.

References maFieldInfo, and XclPTFieldInfo::mnAxes.

Referenced by XclImpPivotTable::ReadSxivd().

◆ SetPageFieldInfo()

void XclImpPTField::SetPageFieldInfo ( const XclPTPageFieldInfo rPageInfo)

Definition at line 1026 of file xipivot.cxx.

References maPageInfo.

Member Data Documentation

◆ maDataInfoVector

std::vector< XclPTDataFieldInfo > XclImpPTField::maDataInfoVector
private

Page field info (entry from SXPI record).

Definition at line 286 of file xipivot.hxx.

Referenced by AddDataFieldInfo(), ConvertDataField(), and HasDataFieldInfo().

◆ maFieldExtInfo

XclPTFieldExtInfo XclImpPTField::maFieldExtInfo
private

General field info (SXVD record).

Definition at line 284 of file xipivot.hxx.

Referenced by ConvertFieldInfo(), ConvertRCPField(), and ReadSxvdex().

◆ maFieldInfo

XclPTFieldInfo XclImpPTField::maFieldInfo
private

◆ maItems

std::vector< XclImpPTItemRef > XclImpPTField::maItems
private

Vector of extended data field info (SXDI records).

Definition at line 287 of file xipivot.hxx.

Referenced by ConvertFieldInfo(), GetItem(), and ReadSxvi().

◆ maPageInfo

XclPTPageFieldInfo XclImpPTField::maPageInfo
private

Extended field info (SXVDEX record).

Definition at line 285 of file xipivot.hxx.

Referenced by ConvertFieldInfo(), and SetPageFieldInfo().

◆ mrPTable

const XclImpPivotTable& XclImpPTField::mrPTable
private

Definition at line 282 of file xipivot.hxx.

Referenced by ConvertDataFieldInfo(), ConvertRCPField(), GetCacheField(), and GetFieldName().


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