LibreOffice Module sc (master) 1
|
#include <xipivot.hxx>
Public Member Functions | |
XclImpPTField (const XclImpPivotTable &rPTable, sal_uInt16 nCacheIdx) | |
const XclImpPCField * | GetCacheField () 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 XclImpPTItem * | GetItem (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 XclImpPivotTable & | mrPTable |
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< XclPTDataFieldInfo > | maDataInfoVector |
Page field info (entry from SXPI record). More... | |
std::vector< XclImpPTItemRef > | maItems |
Vector of extended data field info (SXDI records). More... | |
Definition at line 220 of file xipivot.hxx.
|
explicit |
Definition at line 956 of file xipivot.cxx.
References maFieldInfo, and XclPTFieldInfo::mnCacheIdx.
void XclImpPTField::AddDataFieldInfo | ( | const XclPTDataFieldInfo & | rDataInfo | ) |
Definition at line 1052 of file xipivot.cxx.
References EXC_SXVD_AXIS_DATA, maDataInfoVector, maFieldInfo, and XclPTFieldInfo::mnAxes.
void XclImpPTField::ConvertDataField | ( | ScDPSaveData & | rSaveData | ) | const |
Definition at line 1058 of file xipivot.cxx.
References ConvertDataField(), ConvertDataFieldInfo(), ScDPSaveData::DuplicateDimension(), EXC_SXVD_AXIS_DATA, GetFieldName(), ScDPSaveData::GetNewDimensionByName(), maDataInfoVector, maFieldInfo, XclPTFieldInfo::mnAxes, and SAL_WARN.
Referenced by ConvertDataField().
|
private |
Definition at line 1203 of file xipivot.cxx.
References ConvertDataFieldInfo(), and ScDPSaveDimension::SetOrientation().
|
private |
Definition at line 1211 of file xipivot.cxx.
References XclPTDataFieldInfo::GetApiAggFunc(), XclPTDataFieldInfo::GetApiRefItemType(), XclPTDataFieldInfo::GetApiRefType(), XclImpPivotTable::GetField(), GetFieldName(), GetItemName(), XclPTVisNameInfo::GetVisName(), XclPTDataFieldInfo::mnRefField, XclPTDataFieldInfo::mnRefItem, mrPTable, ScDPSaveDimension::SetFunction(), ScDPSaveDimension::SetLayoutName(), and ScDPSaveDimension::SetReferenceValue().
Referenced by ConvertDataField().
void XclImpPTField::ConvertFieldInfo | ( | const ScDPSaveData & | rSaveData, |
ScDPObject * | pObj, | ||
const XclImpRoot & | rRoot, | ||
bool | bPageField = false |
||
) | const |
Definition at line 1173 of file xipivot.cxx.
References EXC_SXPI_ALLITEMS, EXC_SXVDEX_SHOWALL, get_flag(), GetCacheField(), ScDPSaveData::GetExistingDimensionByName(), GetFieldName(), GetItem(), XclImpPTItem::GetItemName(), XclPCField::IsSupportedField(), maFieldExtInfo, maItems, maPageInfo, XclPTFieldExtInfo::mnFlags, XclPTPageFieldInfo::mnSelItem, ScDPSaveDimension::SetCurrentPage(), and ScDPSaveDimension::SetShowEmpty().
void XclImpPTField::ConvertHiddenField | ( | ScDPSaveData & | rSaveData | ) | const |
Definition at line 1039 of file xipivot.cxx.
References ConvertRCPField(), EXC_SXVD_AXIS_ROWCOLPAGE, maFieldInfo, and XclPTFieldInfo::mnAxes.
void XclImpPTField::ConvertPageField | ( | ScDPSaveData & | rSaveData | ) | const |
Definition at line 1031 of file xipivot.cxx.
References ConvertRCPField(), EXC_SXVD_AXIS_PAGE, maFieldInfo, and XclPTFieldInfo::mnAxes.
|
private |
Definition at line 1111 of file xipivot.cxx.
References aLayoutInfo, XclImpPCField::ConvertGroupField(), EXC_SXVD_AXIS_ROWCOLPAGE, EXC_SXVDEX_AUTOSHOW, EXC_SXVDEX_LAYOUT_BLANK, EXC_SXVDEX_SORT_ASC, get_flag(), XclPTFieldExtInfo::GetApiAutoShowCount(), XclPTFieldExtInfo::GetApiAutoShowMode(), XclPTFieldExtInfo::GetApiLayoutMode(), XclPTFieldInfo::GetApiOrient(), XclPTFieldExtInfo::GetApiSortMode(), GetCacheField(), XclImpPivotTable::GetDataFieldName(), GetFieldName(), ScDPSaveData::GetNewDimensionByName(), XclPTFieldInfo::GetSubtotals(), XclImpPivotTable::GetVisFieldNames(), XclPTVisNameInfo::GetVisName(), XclPCField::IsSupportedField(), lcl_convertExcelSubtotalName(), maFieldExtInfo, maFieldInfo, XclPTFieldExtInfo::mnFlags, XclPTFieldExtInfo::mnShowField, XclPTFieldExtInfo::mnSortField, XclPTFieldExtInfo::mpFieldTotalName, mrPTable, ScDPSaveDimension::SetAutoShowInfo(), ScDPSaveDimension::SetLayoutInfo(), ScDPSaveDimension::SetLayoutName(), ScDPSaveDimension::SetOrientation(), ScDPSaveDimension::SetSortInfo(), ScDPSaveDimension::SetSubtotalName(), and ScDPSaveDimension::SetSubTotals().
Referenced by ConvertHiddenField(), ConvertPageField(), and ConvertRowColField().
void XclImpPTField::ConvertRowColField | ( | ScDPSaveData & | rSaveData | ) | const |
Definition at line 1014 of file xipivot.cxx.
References ConvertRCPField(), EXC_SXIVD_DATA, EXC_SXVD_AXIS_ROWCOL, XclPTFieldInfo::GetApiOrient(), ScDPSaveData::GetDataLayoutDimension(), maFieldInfo, XclPTFieldInfo::mnAxes, XclPTFieldInfo::mnCacheIdx, and ScDPSaveDimension::SetOrientation().
|
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.
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().
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().
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().
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().
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.
bool XclImpPTField::HasDataFieldInfo | ( | ) | const |
Definition at line 1047 of file xipivot.cxx.
References maDataInfoVector.
void XclImpPTField::ReadSxvd | ( | XclImpStream & | rStrm | ) |
Reads an SXVD record describing the field.
Definition at line 995 of file xipivot.cxx.
References maFieldInfo, and rStrm.
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.
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.
|
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().
void XclImpPTField::SetPageFieldInfo | ( | const XclPTPageFieldInfo & | rPageInfo | ) |
Definition at line 1026 of file xipivot.cxx.
References maPageInfo.
|
private |
Page field info (entry from SXPI record).
Definition at line 286 of file xipivot.hxx.
Referenced by AddDataFieldInfo(), ConvertDataField(), and HasDataFieldInfo().
|
private |
General field info (SXVD record).
Definition at line 284 of file xipivot.hxx.
Referenced by ConvertFieldInfo(), ConvertRCPField(), and ReadSxvdex().
|
private |
Parent pivot table containing this field.
Definition at line 283 of file xipivot.hxx.
Referenced by AddDataFieldInfo(), ConvertDataField(), ConvertHiddenField(), ConvertPageField(), ConvertRCPField(), ConvertRowColField(), GetAxes(), GetCacheField(), GetVisFieldName(), ReadSxvd(), SetAxes(), and XclImpPTField().
|
private |
Vector of extended data field info (SXDI records).
Definition at line 287 of file xipivot.hxx.
Referenced by ConvertFieldInfo(), GetItem(), and ReadSxvi().
|
private |
Extended field info (SXVDEX record).
Definition at line 285 of file xipivot.hxx.
Referenced by ConvertFieldInfo(), and SetPageFieldInfo().
|
private |
Definition at line 282 of file xipivot.hxx.
Referenced by ConvertDataFieldInfo(), ConvertRCPField(), GetCacheField(), and GetFieldName().