|
LibreOffice Module sc (master) 1
|
#include <xepivot.hxx>
Public Member Functions | |
| XclExpPTField (const XclExpPivotTable &rPTable, sal_uInt16 nCacheIdx) | |
| OUString | GetFieldName () const |
| Returns the name of this field. More... | |
| sal_uInt16 | GetFieldIndex () const |
| Returns the pivot table field list index of this field. More... | |
| sal_uInt16 | GetLastDataInfoIndex () const |
| Returns the index of the last inserted data info struct. More... | |
| sal_uInt16 | GetItemIndex (std::u16string_view rName, sal_uInt16 nDefaultIdx) const |
| Returns the list index of an item by its name. More... | |
| void | SetPropertiesFromDim (const ScDPSaveDimension &rSaveDim) |
| Fills this field with row/column/page properties from the passed save dimension. More... | |
| void | SetDataPropertiesFromDim (const ScDPSaveDimension &rSaveDim) |
| Fills this field with data field properties from the passed save dimension. More... | |
| void | AppendSubtotalItems () |
| Appends special items describing the field subtotal entries. More... | |
| void | WriteSxpiEntry (XclExpStream &rStrm) const |
| Writes an entry for an SXPI record containing own page field info. More... | |
| void | WriteSxdi (XclExpStream &rStrm, sal_uInt16 nDataInfoIdx) const |
| Writes an SXDI records containing info about a data field. More... | |
| virtual void | Save (XclExpStream &rStrm) override |
| Writes the entire pivot table field. More... | |
Public Member Functions inherited from XclExpRecordBase | |
| XclExpRecordBase () | |
| XclExpRecordBase (XclExpRecordBase const &) | |
| XclExpRecordBase (XclExpRecordBase &&) | |
| XclExpRecordBase & | operator= (XclExpRecordBase const &) |
| XclExpRecordBase & | operator= (XclExpRecordBase &&) noexcept |
| virtual | ~XclExpRecordBase () |
| virtual void | Save (XclExpStream &rStrm) |
| Overwrite this method to do any operation while saving the record. More... | |
| virtual void | SaveXml (XclExpXmlStream &rStrm) |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
| SimpleReferenceObject () | |
| void | acquire () |
| void | release () |
Private Member Functions | |
| XclExpPTItem * | GetItemAcc (std::u16string_view rName) |
| Returns an item by its name. More... | |
| void | AppendSubtotalItem (sal_uInt16 nItemType) |
| Appends a special item describing a field subtotal entry. More... | |
| void | WriteSxvd (XclExpStream &rStrm) const |
| Writes the SXVD record introducing the field. More... | |
| void | WriteSxvdex (XclExpStream &rStrm) const |
| Writes the SXVDEX record containing additional settings. More... | |
Private Attributes | |
| const XclExpPivotTable & | mrPTable |
| const XclExpPCField * | mpCacheField |
| Parent pivot table containing this field. More... | |
| XclPTFieldInfo | maFieldInfo |
| The referred pivot cache field. More... | |
| XclPTFieldExtInfo | maFieldExtInfo |
| General field info (SXVD record). More... | |
| XclPTPageFieldInfo | maPageInfo |
| Extended field info (SXVDEX record). More... | |
| std::vector< XclPTDataFieldInfo > | maDataInfoVec |
| Page field info (entry in SXPI record). More... | |
| XclExpRecordList< XclExpPTItem > | maItemList |
| List of extended data field info (SXDI records). More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
| static void * | operator new (std::size_t nSize) |
| static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
| static void | operator delete (void *pPtr) |
| static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
| virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
| oslInterlockedCount | m_nCount |
Definition at line 251 of file xepivot.hxx.
|
explicit |
Definition at line 939 of file xepivot.cxx.
References XclExpRecordList< RecType >::AppendNewRecord(), XclExpPCField::GetItemCount(), XclExpRecordList< RecType >::GetSize(), maFieldInfo, maItemList, XclPTFieldInfo::mnCacheIdx, XclPTFieldInfo::mnItemCount, and mpCacheField.
|
private |
Appends a special item describing a field subtotal entry.
Definition at line 1158 of file xepivot.cxx.
References XclExpRecordList< RecType >::AppendNewRecord(), EXC_SXVI_DEFAULT_CACHE, maFieldInfo, maItemList, and XclPTFieldInfo::mnItemCount.
Referenced by AppendSubtotalItems().
| void XclExpPTField::AppendSubtotalItems | ( | ) |
Appends special items describing the field subtotal entries.
Definition at line 1103 of file xepivot.cxx.
References AppendSubtotalItem(), EXC_SXVD_SUBT_AVERAGE, EXC_SXVD_SUBT_COUNT, EXC_SXVD_SUBT_COUNTNUM, EXC_SXVD_SUBT_DEFAULT, EXC_SXVD_SUBT_MAX, EXC_SXVD_SUBT_MIN, EXC_SXVD_SUBT_PROD, EXC_SXVD_SUBT_STDDEV, EXC_SXVD_SUBT_STDDEVP, EXC_SXVD_SUBT_SUM, EXC_SXVD_SUBT_VAR, EXC_SXVD_SUBT_VARP, EXC_SXVI_TYPE_AVERAGE, EXC_SXVI_TYPE_COUNT, EXC_SXVI_TYPE_COUNTNUM, EXC_SXVI_TYPE_DEFAULT, EXC_SXVI_TYPE_MAX, EXC_SXVI_TYPE_MIN, EXC_SXVI_TYPE_PROD, EXC_SXVI_TYPE_STDDEV, EXC_SXVI_TYPE_STDDEVP, EXC_SXVI_TYPE_SUM, EXC_SXVI_TYPE_VAR, EXC_SXVI_TYPE_VARP, maFieldInfo, and XclPTFieldInfo::mnSubtotals.
Referenced by XclExpPivotTable::Finalize().
|
inline |
Returns the pivot table field list index of this field.
The field index is always equal to cache index.
Definition at line 263 of file xepivot.hxx.
References maFieldInfo, and XclPTFieldInfo::mnCacheIdx.
Referenced by SetDataPropertiesFromDim(), XclExpPivotTable::SetFieldPropertiesFromDim(), and SetPropertiesFromDim().
| OUString XclExpPTField::GetFieldName | ( | ) | const |
Returns the name of this field.
Definition at line 954 of file xepivot.cxx.
References XclExpPCField::GetFieldName(), and mpCacheField.
Referenced by XclExpPivotTable::GetFieldAcc(), SetDataPropertiesFromDim(), and SetPropertiesFromDim().
|
private |
Returns an item by its name.
Definition at line 1149 of file xepivot.cxx.
References XclExpPTItem::GetItemName(), XclExpRecordList< RecType >::GetRecord(), XclExpRecordList< RecType >::GetSize(), maItemList, and nPos.
Referenced by SetPropertiesFromDim().
| sal_uInt16 XclExpPTField::GetItemIndex | ( | std::u16string_view | rName, |
| sal_uInt16 | nDefaultIdx | ||
| ) | const |
Returns the list index of an item by its name.
| nDefaultIdx | This value will be returned, if the item could not be found. |
Definition at line 966 of file xepivot.cxx.
References XclExpPTItem::GetItemName(), XclExpRecordList< RecType >::GetRecord(), XclExpRecordList< RecType >::GetSize(), maItemList, and nPos.
| sal_uInt16 XclExpPTField::GetLastDataInfoIndex | ( | ) | const |
Returns the index of the last inserted data info struct.
Definition at line 959 of file xepivot.cxx.
References maDataInfoVec.
|
overridevirtual |
Writes the entire pivot table field.
Reimplemented from XclExpRecordBase.
Definition at line 1137 of file xepivot.cxx.
References maItemList, rStrm, XclExpRecordList< RecType >::Save(), WriteSxvd(), and WriteSxvdex().
| void XclExpPTField::SetDataPropertiesFromDim | ( | const ScDPSaveDimension & | rSaveDim | ) |
Fills this field with data field properties from the passed save dimension.
Definition at line 1069 of file xepivot.cxx.
References XclPTFieldInfo::AddApiOrient(), XclExpPivotTable::GetField(), GetFieldIndex(), GetFieldName(), ScDPSaveDimension::GetFunction(), ScDPSaveDimension::GetLayoutName(), ScDPSaveDimension::GetReferenceValue(), maDataInfoVec, maFieldInfo, XclPTDataFieldInfo::mnField, XclPTDataFieldInfo::mnRefField, XclPTDataFieldInfo::mnRefItem, mrPTable, XclPTDataFieldInfo::SetApiAggFunc(), XclPTDataFieldInfo::SetApiRefItemType(), XclPTDataFieldInfo::SetApiRefType(), and XclPTVisNameInfo::SetVisName().
| void XclExpPTField::SetPropertiesFromDim | ( | const ScDPSaveDimension & | rSaveDim | ) |
Fills this field with row/column/page properties from the passed save dimension.
Definition at line 1001 of file xepivot.cxx.
References XclPTFieldInfo::AddApiOrient(), EXC_SXPI_ALLITEMS, EXC_SXVDEX_AUTOSHOW, EXC_SXVDEX_LAYOUT_BLANK, EXC_SXVDEX_SHOW_NONE, EXC_SXVDEX_SHOWALL, EXC_SXVDEX_SORT_ASC, EXC_SXVDEX_SORT_OWN, ScDPSaveDimension::GetAutoShowInfo(), XclExpPivotTable::GetDataFieldIndex(), GetFieldIndex(), GetFieldName(), GetItemAcc(), ScDPSaveDimension::GetLayoutInfo(), ScDPSaveDimension::GetLayoutName(), ScDPSaveDimension::GetMembers(), ScDPSaveDimension::GetOrientation(), ScDPSaveDimension::GetShowEmpty(), ScDPSaveDimension::GetSortInfo(), ScDPSaveDimension::GetSubTotalFunc(), ScDPSaveDimension::GetSubtotalName(), ScDPSaveDimension::GetSubTotalsCount(), ScDPSaveDimension::HasShowEmpty(), lcl_convertCalcSubtotalName(), maFieldExtInfo, maFieldInfo, maPageInfo, XclPTPageFieldInfo::mnField, XclPTFieldExtInfo::mnFlags, XclPTPageFieldInfo::mnSelItem, XclPTFieldExtInfo::mnShowField, XclPTFieldExtInfo::mnSortField, XclPTFieldExtInfo::mpFieldTotalName, mrPTable, set_flag(), XclPTFieldExtInfo::SetApiAutoShowCount(), XclPTFieldExtInfo::SetApiAutoShowMode(), XclPTFieldExtInfo::SetApiLayoutMode(), XclPTFieldExtInfo::SetApiSortMode(), XclPTFieldInfo::SetSubtotals(), and XclPTVisNameInfo::SetVisName().
Referenced by XclExpPivotTable::SetFieldPropertiesFromDim().
| void XclExpPTField::WriteSxdi | ( | XclExpStream & | rStrm, |
| sal_uInt16 | nDataInfoIdx | ||
| ) | const |
Writes an SXDI records containing info about a data field.
Definition at line 1126 of file xepivot.cxx.
References EXC_ID_SXDI, maDataInfoVec, and rStrm.
| void XclExpPTField::WriteSxpiEntry | ( | XclExpStream & | rStrm | ) | const |
Writes an entry for an SXPI record containing own page field info.
Definition at line 1121 of file xepivot.cxx.
References maPageInfo, and rStrm.
|
private |
Writes the SXVD record introducing the field.
Definition at line 1164 of file xepivot.cxx.
References EXC_ID_SXVD, maFieldInfo, and rStrm.
Referenced by Save().
|
private |
Writes the SXVDEX record containing additional settings.
Definition at line 1171 of file xepivot.cxx.
References EXC_ID_SXVDEX, maFieldExtInfo, and rStrm.
Referenced by Save().
|
private |
Page field info (entry in SXPI record).
Definition at line 312 of file xepivot.hxx.
Referenced by GetLastDataInfoIndex(), SetDataPropertiesFromDim(), and WriteSxdi().
|
private |
General field info (SXVD record).
Definition at line 309 of file xepivot.hxx.
Referenced by SetPropertiesFromDim(), and WriteSxvdex().
|
private |
The referred pivot cache field.
Definition at line 308 of file xepivot.hxx.
Referenced by AppendSubtotalItem(), AppendSubtotalItems(), GetFieldIndex(), SetDataPropertiesFromDim(), SetPropertiesFromDim(), WriteSxvd(), and XclExpPTField().
|
private |
List of extended data field info (SXDI records).
Definition at line 314 of file xepivot.hxx.
Referenced by AppendSubtotalItem(), GetItemAcc(), GetItemIndex(), Save(), and XclExpPTField().
|
private |
Extended field info (SXVDEX record).
Definition at line 310 of file xepivot.hxx.
Referenced by SetPropertiesFromDim(), and WriteSxpiEntry().
|
private |
Parent pivot table containing this field.
Definition at line 307 of file xepivot.hxx.
Referenced by GetFieldName(), and XclExpPTField().
|
private |
Definition at line 306 of file xepivot.hxx.
Referenced by SetDataPropertiesFromDim(), and SetPropertiesFromDim().