LibreOffice Module sc (master) 1
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
oox::xls::PivotTable Class Reference

#include <pivottablebuffer.hxx>

Inheritance diagram for oox::xls::PivotTable:
[legend]
Collaboration diagram for oox::xls::PivotTable:
[legend]

Public Member Functions

 PivotTable (const WorkbookHelper &rHelper)
 
void importPivotTableDefinition (const AttributeList &rAttribs)
 Reads global pivot table settings from the pivotTableDefinition element. More...
 
void importLocation (const AttributeList &rAttribs, sal_Int16 nSheet)
 Reads the location of the pivot table from the location element. More...
 
void importRowField (const AttributeList &rAttribs)
 Reads the index of a field located in the row dimension. More...
 
void importColField (const AttributeList &rAttribs)
 Reads the index of a field located in the column dimension. More...
 
void importPageField (const AttributeList &rAttribs)
 Reads the settings of a field located in the page dimension from the pageField element. More...
 
void importDataField (const AttributeList &rAttribs)
 Reads the settings of a field located in the data dimension from the dataField element. More...
 
void putToInteropGrabBag (const OUString &sName, const AttributeList &rAttribs)
 Puts the attributes to the named grab bag value. More...
 
void importPTDefinition (SequenceInputStream &rStrm)
 Reads global pivot table settings from the PTDEFINITION record. More...
 
void importPTLocation (SequenceInputStream &rStrm, sal_Int16 nSheet)
 Reads the location of the pivot table from the PTLOCATION record. More...
 
void importPTRowFields (SequenceInputStream &rStrm)
 Reads the indexes of all fields located in the row dimension from a PTROWFIELDS record. More...
 
void importPTColFields (SequenceInputStream &rStrm)
 Reads the indexes of all fields located in the column dimension from a PTCOLFIELDS record. More...
 
void importPTPageField (SequenceInputStream &rStrm)
 Reads the settings of a field located in the page dimension from the PTPAGEFIELD record. More...
 
void importPTDataField (SequenceInputStream &rStrm)
 Reads the settings of a field located in the data dimension from the PTDATAFIELD record. More...
 
PivotTableFieldcreateTableField ()
 Creates and returns a new pivot table field. More...
 
PivotTableFiltercreateTableFilter ()
 Creates and returns a new pivot table filter. More...
 
void finalizeImport ()
 Inserts the pivot table into the sheet. More...
 
void finalizeFieldsImport ()
 Finalizes all fields, finds field names and creates grouping fields. More...
 
void finalizeDateGroupingImport (const css::uno::Reference< css::sheet::XDataPilotField > &rxBaseDPField, sal_Int32 nBaseFieldIdx)
 Creates all date group fields for the specified cache field after import. More...
 
void finalizeParentGroupingImport (const css::uno::Reference< css::sheet::XDataPilotField > &rxBaseDPField, const PivotCacheField &rBaseCacheField, PivotCacheGroupItemVector &orItemNames)
 Creates all grouped fields for the specified cache field after import. More...
 
css::uno::Reference< css::sheet::XDataPilotField > getDataPilotField (const OUString &rFieldName) const
 Returns the associated data pilot field for the specified pivot table field. More...
 
css::uno::Reference< css::sheet::XDataPilotField > getDataPilotField (sal_Int32 nFieldIdx) const
 Returns the associated data pilot field for the specified pivot table field. More...
 
css::uno::Reference< css::sheet::XDataPilotField > getDataLayoutField () const
 Returns the data layout field used to store all data fields in row/col dimension. More...
 
PivotCacheFieldgetCacheField (sal_Int32 nFieldIdx)
 Returns the cache field with the specified index. More...
 
const PivotCacheFieldgetCacheField (sal_Int32 nFieldIdx) const
 
const PivotCacheFieldgetCacheFieldOfDataField (sal_Int32 nDataItemIdx) const
 Returns the base cache field of the data field item with the specified index. More...
 
sal_Int32 getCacheDatabaseIndex (sal_Int32 nFieldIdx) const
 Returns the source column index of the pivot field with the passed index, or -1. More...
 
ScDPObjectgetDPObject ()
 
- Public Member Functions inherited from oox::xls::WorkbookHelper
 WorkbookHelper (WorkbookGlobals &rBookGlob)
 
virtual ~WorkbookHelper ()
 
 WorkbookHelper (WorkbookHelper const &)=default
 
 WorkbookHelper (WorkbookHelper &&)=default
 
WorkbookHelperoperator= (WorkbookHelper const &)=delete
 
WorkbookHelperoperator= (WorkbookHelper &&)=delete
 
::oox::core::FilterBasegetBaseFilter () const
 Returns the base filter object (base class of all filters). More...
 
SegmentProgressBargetProgressBar () const
 Returns the filter progress bar. More...
 
sal_Int16 getCurrentSheetIndex () const
 Returns the index of the current Calc sheet, if filter currently processes a sheet. More...
 
bool isGeneratorKnownGood () const
 Returns true when reading a file generated by a known good generator. More...
 
bool hasCalculatedFormulaCells () const
 Returns true if any formula cell is calculated. More...
 
void setCalculatedFormulaCells ()
 Set if any formula cell is calculated. More...
 
void setVbaProjectStorage (const StorageRef &rxVbaPrjStrg)
 Sets the VBA project storage used to import VBA source code and forms. More...
 
void setCurrentSheetIndex (SCTAB nSheet)
 Sets the index of the current Calc sheet, if filter currently processes a sheet. More...
 
void finalizeWorkbookImport ()
 Final conversion after importing the workbook. More...
 
void useInternalChartDataTable (bool bInternal)
 
ScDocumentgetScDocument ()
 
const ScDocumentgetScDocument () const
 
ScDocumentImportgetDocImport ()
 
const ScDocumentImportgetDocImport () const
 
ScEditEngineDefaultergetEditEngine () const
 
const css::uno::Reference< css::sheet::XSpreadsheetDocument > & getDocument () const
 Returns a reference to the source/target spreadsheet document model. More...
 
css::uno::Reference< css::sheet::XSpreadsheet > getSheetFromDoc (sal_Int32 nSheet) const
 Returns a reference to the specified spreadsheet in the document model. More...
 
css::uno::Reference< css::sheet::XSpreadsheet > getSheetFromDoc (const OUString &rSheet) const
 Returns a reference to the specified spreadsheet in the document model. More...
 
css::uno::Reference< css::table::XCellRange > getCellRangeFromDoc (const ScRange &rRange) const
 Returns the XCellRange interface for the passed cell range address. More...
 
css::uno::Reference< css::container::XNameContainer > getCellStyleFamily () const
 Returns the cell styles container from the Calc document. More...
 
css::uno::Reference< css::style::XStyle > getStyleObject (const OUString &rStyleName, bool bPageStyle) const
 Returns the specified cell or page style from the Calc document. More...
 
RangeDataRet createNamedRangeObject (OUString &orName, sal_Int32 nIndex, sal_Int32 nNameFlags, bool bHidden) const
 Creates and returns a defined name on-the-fly in the Calc document. More...
 
RangeDataRet createLocalNamedRangeObject (OUString &orName, sal_Int32 nIndex, sal_Int32 nNameFlags, sal_Int32 nTab, bool bHidden) const
 Creates and returns a defined name on-the-fly in the sheet. More...
 
css::uno::Reference< css::sheet::XDatabaseRange > createDatabaseRangeObject (OUString &orName, const ScRange &rRangeAddr) const
 Creates and returns a database range on-the-fly in the Calc document. More...
 
css::uno::Reference< css::sheet::XDatabaseRange > createUnnamedDatabaseRangeObject (const ScRange &rRangeAddr) const
 Creates and returns an unnamed database range on-the-fly in the Calc document. More...
 
ScDBDatafindDatabaseRangeByIndex (sal_uInt16 nIndex) const
 Finds the (already existing) database range of the given formula token index. More...
 
css::uno::Reference< css::style::XStyle > createStyleObject (OUString &orStyleName, bool bPageStyle) const
 Creates and returns a com.sun.star.style.Style object for cells or pages. More...
 
FormulaBuffergetFormulaBuffer () const
 
WorkbookSettingsgetWorkbookSettings () const
 Returns the global workbook settings object. More...
 
ViewSettingsgetViewSettings () const
 Returns the workbook and sheet view settings object. More...
 
WorksheetBuffergetWorksheets () const
 Returns the worksheet buffer containing sheet names and properties. More...
 
ThemeBuffergetTheme () const
 Returns the office theme object read from the theme substorage. More...
 
StylesBuffergetStyles () const
 Returns all cell formatting objects read from the styles substream. More...
 
SharedStringsBuffergetSharedStrings () const
 Returns the shared strings read from the shared strings substream. More...
 
ExternalLinkBuffergetExternalLinks () const
 Returns the external links read from the external links substream. More...
 
DefinedNamesBuffergetDefinedNames () const
 Returns the defined names read from the workbook globals. More...
 
TableBuffergetTables () const
 Returns the tables collection (equivalent to Calc's database ranges). More...
 
ScenarioBuffergetScenarios () const
 Returns the scenarios collection. More...
 
ConnectionsBuffergetConnections () const
 Returns the collection of external data connections. More...
 
PivotCacheBuffergetPivotCaches () const
 Returns the collection of pivot caches. More...
 
PivotTableBuffergetPivotTables () const
 Returns the collection of pivot tables. More...
 
FormulaParsergetFormulaParser () const
 Returns a shared import formula parser (import filter only!). More...
 
FormulaParsercreateFormulaParser () const
 Returns an unshared import formula parser (import filter only!). More...
 
UnitConvertergetUnitConverter () const
 Returns the measurement unit converter. More...
 
AddressConvertergetAddressConverter () const
 Returns the converter for string to cell address/range conversion. More...
 
oox::drawingml::chart::ChartConvertergetChartConverter () const
 Returns the chart object converter. More...
 
PageSettingsConvertergetPageSettingsConverter () const
 Returns the page and print settings converter. More...
 
::oox::core::XmlFilterBasegetOoxFilter () const
 Returns the base OOXML/BIFF12 filter object. More...
 
bool importOoxFragment (const rtl::Reference< oox::core::FragmentHandler > &rxHandler)
 Imports a fragment using the passed fragment handler, which contains the full path to the fragment stream. More...
 
bool importOoxFragment (const rtl::Reference< oox::core::FragmentHandler > &rxHandler, oox::core::FastParser &rParser)
 
rtl_TextEncoding getTextEncoding () const
 Returns the text encoding used to import/export byte strings. More...
 

Private Types

typedef RefVector< PivotTableFieldPivotTableFieldVector
 
typedef RefVector< PivotTableFilterPivotTableFilterVector
 
typedef ::std::vector< sal_Int32 > IndexVector
 
typedef ::std::vector< PTPageFieldModelPageFieldVector
 
typedef ::std::vector< PTDataFieldModelDataFieldVector
 

Private Member Functions

PivotTableFieldgetTableField (sal_Int32 nFieldIdx)
 Returns a pivot table field by its index. More...
 

Static Private Member Functions

static void importField (IndexVector &orFields, const AttributeList &rAttribs)
 Reads a field index for the row or column dimension. More...
 
static void importFields (IndexVector &orFields, SequenceInputStream &rStrm)
 Reads an array of field indexes for the row or column dimension. More...
 

Private Attributes

ScDPObjectmpDPObject
 
PivotTableFieldVector maFields
 
PivotTableField maDataField
 All pivot table fields. More...
 
IndexVector maRowFields
 Data layout field. More...
 
IndexVector maColFields
 Indexes to fields in row dimension. More...
 
PageFieldVector maPageFields
 Indexes to fields in column dimension. More...
 
DataFieldVector maDataFields
 Settings for all fields in page dimension. More...
 
PivotTableFilterVector maFilters
 Settings for all fields in data area. More...
 
PTDefinitionModel maDefModel
 All field filters. More...
 
PTLocationModel maLocationModel
 Global pivot table settings. More...
 
PivotCachempPivotCache
 Location settings of the pivot table. More...
 
css::uno::Reference< css::sheet::XDataPilotDescriptor > mxDPDescriptor
 The pivot cache this table is based on. More...
 
std::map< OUString, css::uno::Any > maInteropGrabBag
 Descriptor of the DataPilot object. More...
 

Additional Inherited Members

- Public Types inherited from oox::xls::WorkbookHelper
typedef std::pair< ScRangeData *, bool > RangeDataRet
 
- Static Public Member Functions inherited from oox::xls::WorkbookHelper
static WorkbookGlobalsRef constructGlobals (ExcelFilter &rFilter)
 

Detailed Description

Definition at line 282 of file pivottablebuffer.hxx.

Member Typedef Documentation

◆ DataFieldVector

typedef ::std::vector< PTDataFieldModel > oox::xls::PivotTable::DataFieldVector
private

Definition at line 358 of file pivottablebuffer.hxx.

◆ IndexVector

typedef ::std::vector< sal_Int32 > oox::xls::PivotTable::IndexVector
private

Definition at line 356 of file pivottablebuffer.hxx.

◆ PageFieldVector

typedef ::std::vector< PTPageFieldModel > oox::xls::PivotTable::PageFieldVector
private

Definition at line 357 of file pivottablebuffer.hxx.

◆ PivotTableFieldVector

Definition at line 354 of file pivottablebuffer.hxx.

◆ PivotTableFilterVector

Definition at line 355 of file pivottablebuffer.hxx.

Constructor & Destructor Documentation

◆ PivotTable()

oox::xls::PivotTable::PivotTable ( const WorkbookHelper rHelper)
explicit

Definition at line 966 of file pivottablebuffer.cxx.

Member Function Documentation

◆ createTableField()

PivotTableField & oox::xls::PivotTable::createTableField ( )

Creates and returns a new pivot table field.

Definition at line 1210 of file pivottablebuffer.cxx.

References maFields.

Referenced by oox::xls::PivotTableFragment::onCreateContext(), and oox::xls::PivotTableFragment::onCreateRecordContext().

◆ createTableFilter()

PivotTableFilter & oox::xls::PivotTable::createTableFilter ( )

Creates and returns a new pivot table filter.

Definition at line 1218 of file pivottablebuffer.cxx.

References maFilters.

Referenced by oox::xls::PivotTableFragment::onCreateContext(), and oox::xls::PivotTableFragment::onCreateRecordContext().

◆ finalizeDateGroupingImport()

void oox::xls::PivotTable::finalizeDateGroupingImport ( const css::uno::Reference< css::sheet::XDataPilotField > &  rxBaseDPField,
sal_Int32  nBaseFieldIdx 
)

Creates all date group fields for the specified cache field after import.

Definition at line 1373 of file pivottablebuffer.cxx.

References oox::xls::PivotTableField::finalizeDateGroupingImport(), oox::RefVector< typename ObjType >::forEachMem(), and maFields.

Referenced by oox::xls::PivotTableField::finalizeImport().

◆ finalizeFieldsImport()

void oox::xls::PivotTable::finalizeFieldsImport ( )

◆ finalizeImport()

void oox::xls::PivotTable::finalizeImport ( )

◆ finalizeParentGroupingImport()

void oox::xls::PivotTable::finalizeParentGroupingImport ( const css::uno::Reference< css::sheet::XDataPilotField > &  rxBaseDPField,
const PivotCacheField rBaseCacheField,
PivotCacheGroupItemVector orItemNames 
)

◆ getCacheDatabaseIndex()

sal_Int32 oox::xls::PivotTable::getCacheDatabaseIndex ( sal_Int32  nFieldIdx) const

Returns the source column index of the pivot field with the passed index, or -1.

Definition at line 1439 of file pivottablebuffer.cxx.

References oox::xls::PivotCache::getCacheDatabaseIndex(), and mpPivotCache.

Referenced by oox::xls::PivotTableField::finalizeImport(), and oox::xls::PivotTableField::finalizeImportBasedOnCache().

◆ getCacheField() [1/2]

PivotCacheField * oox::xls::PivotTable::getCacheField ( sal_Int32  nFieldIdx)

◆ getCacheField() [2/2]

const PivotCacheField * oox::xls::PivotTable::getCacheField ( sal_Int32  nFieldIdx) const

Definition at line 1428 of file pivottablebuffer.cxx.

References oox::xls::PivotCache::getCacheField(), and mpPivotCache.

◆ getCacheFieldOfDataField()

const PivotCacheField * oox::xls::PivotTable::getCacheFieldOfDataField ( sal_Int32  nDataItemIdx) const

Returns the base cache field of the data field item with the specified index.

Definition at line 1433 of file pivottablebuffer.cxx.

References getCacheField(), oox::ContainerHelper::getVectorElement(), maDataFields, and oox::xls::PTDataFieldModel::mnField.

Referenced by oox::xls::PivotTableField::convertRowColPageField(), and oox::xls::PivotTableFilter::finalizeImport().

◆ getDataLayoutField()

Reference< XDataPilotField > oox::xls::PivotTable::getDataLayoutField ( ) const

Returns the data layout field used to store all data fields in row/col dimension.

Definition at line 1409 of file pivottablebuffer.cxx.

References Exception, and mxDPDescriptor.

Referenced by oox::xls::PivotTableField::convertRowColPageField().

◆ getDataPilotField() [1/2]

Reference< XDataPilotField > oox::xls::PivotTable::getDataPilotField ( const OUString &  rFieldName) const

◆ getDataPilotField() [2/2]

Reference< XDataPilotField > oox::xls::PivotTable::getDataPilotField ( sal_Int32  nFieldIdx) const

Returns the associated data pilot field for the specified pivot table field.

Definition at line 1401 of file pivottablebuffer.cxx.

References oox::RefVector< typename ObjType >::get(), getDataPilotField(), and maFields.

◆ getDPObject()

ScDPObject * oox::xls::PivotTable::getDPObject ( )
inline

◆ getTableField()

PivotTableField * oox::xls::PivotTable::getTableField ( sal_Int32  nFieldIdx)
private

Returns a pivot table field by its index.

Definition at line 1446 of file pivottablebuffer.cxx.

References oox::RefVector< typename ObjType >::get(), maDataField, and maFields.

Referenced by finalizeImport().

◆ importColField()

void oox::xls::PivotTable::importColField ( const AttributeList rAttribs)

Reads the index of a field located in the column dimension.

Definition at line 1041 of file pivottablebuffer.cxx.

References importField(), and maColFields.

Referenced by oox::xls::PivotTableFragment::onCreateContext().

◆ importDataField()

void oox::xls::PivotTable::importDataField ( const AttributeList rAttribs)

◆ importField()

void oox::xls::PivotTable::importField ( IndexVector orFields,
const AttributeList rAttribs 
)
staticprivate

Reads a field index for the row or column dimension.

Definition at line 1451 of file pivottablebuffer.cxx.

References oox::AttributeList::getInteger().

Referenced by importColField(), and importRowField().

◆ importFields()

void oox::xls::PivotTable::importFields ( IndexVector orFields,
SequenceInputStream rStrm 
)
staticprivate

Reads an array of field indexes for the row or column dimension.

Definition at line 1456 of file pivottablebuffer.cxx.

References nCount, and rStrm.

Referenced by importPTColFields(), and importPTRowFields().

◆ importLocation()

void oox::xls::PivotTable::importLocation ( const AttributeList rAttribs,
sal_Int16  nSheet 
)

◆ importPageField()

void oox::xls::PivotTable::importPageField ( const AttributeList rAttribs)

◆ importPivotTableDefinition()

void oox::xls::PivotTable::importPivotTableDefinition ( const AttributeList rAttribs)

Reads global pivot table settings from the pivotTableDefinition element.

Definition at line 974 of file pivottablebuffer.cxx.

References oox::AttributeList::getBool(), oox::AttributeList::getInteger(), oox::AttributeList::getXString(), oox::xls::PTDefinitionModel::maColHeaderCaption, oox::xls::PTDefinitionModel::maDataCaption, maDefModel, oox::xls::PTDefinitionModel::maErrorCaption, oox::xls::PTDefinitionModel::maGrandTotalCaption, oox::xls::PTDefinitionModel::maMissingCaption, oox::xls::PTDefinitionModel::maName, oox::xls::PTDefinitionModel::maPageStyle, oox::xls::PTDefinitionModel::maPivotTableStyle, oox::xls::PTDefinitionModel::maRowHeaderCaption, oox::xls::PTDefinitionModel::maTag, oox::xls::PTDefinitionModel::maVacatedStyle, oox::xls::AutoFormatModel::mbApplyAlignment, oox::xls::AutoFormatModel::mbApplyBorder, oox::xls::AutoFormatModel::mbApplyFill, oox::xls::AutoFormatModel::mbApplyFont, oox::xls::AutoFormatModel::mbApplyNumFmt, oox::xls::AutoFormatModel::mbApplyProtection, oox::xls::PTDefinitionModel::mbColGrandTotals, oox::xls::PTDefinitionModel::mbCustomListSort, oox::xls::PTDefinitionModel::mbDataOnRows, oox::xls::PTDefinitionModel::mbDisableFieldList, oox::xls::PTDefinitionModel::mbEnableDrill, oox::xls::PTDefinitionModel::mbFieldListSortAsc, oox::xls::PTDefinitionModel::mbFieldPrintTitles, oox::xls::PTDefinitionModel::mbItemPrintTitles, oox::xls::PTDefinitionModel::mbMergeItem, oox::xls::PTDefinitionModel::mbPageOverThenDown, oox::xls::PTDefinitionModel::mbPreserveFormatting, oox::xls::PTDefinitionModel::mbPrintDrill, oox::xls::PTDefinitionModel::mbRowGrandTotals, oox::xls::PTDefinitionModel::mbShowCalcMembers, oox::xls::PTDefinitionModel::mbShowDrill, oox::xls::PTDefinitionModel::mbShowEmptyCol, oox::xls::PTDefinitionModel::mbShowEmptyRow, oox::xls::PTDefinitionModel::mbShowError, oox::xls::PTDefinitionModel::mbShowHeaders, oox::xls::PTDefinitionModel::mbShowItems, oox::xls::PTDefinitionModel::mbShowMissing, oox::xls::PTDefinitionModel::mbSubtotalHiddenItems, oox::xls::PTDefinitionModel::mbUseAutoFormat, oox::xls::PTDefinitionModel::mbVisualTotals, oox::xls::AutoFormatModel::mnAutoFormatId, oox::xls::PTDefinitionModel::mnCacheId, oox::xls::PTDefinitionModel::mnChartFormat, oox::xls::PTDefinitionModel::mnDataPosition, oox::xls::PTDefinitionModel::mnIndent, and oox::xls::PTDefinitionModel::mnPageWrap.

Referenced by oox::xls::PivotTableFragment::onCreateContext().

◆ importPTColFields()

void oox::xls::PivotTable::importPTColFields ( SequenceInputStream rStrm)

Reads the indexes of all fields located in the column dimension from a PTCOLFIELDS record.

Definition at line 1173 of file pivottablebuffer.cxx.

References importFields(), maColFields, and rStrm.

Referenced by oox::xls::PivotTableFragment::onCreateRecordContext().

◆ importPTDataField()

void oox::xls::PivotTable::importPTDataField ( SequenceInputStream rStrm)

◆ importPTDefinition()

void oox::xls::PivotTable::importPTDefinition ( SequenceInputStream rStrm)

Reads global pivot table settings from the PTDEFINITION record.

Definition at line 1081 of file pivottablebuffer.cxx.

References oox::getFlag(), oox::xls::PTDefinitionModel::maColHeaderCaption, oox::xls::PTDefinitionModel::maDataCaption, maDefModel, oox::xls::PTDefinitionModel::maErrorCaption, oox::xls::PTDefinitionModel::maGrandTotalCaption, oox::xls::PTDefinitionModel::maMissingCaption, oox::xls::PTDefinitionModel::maName, oox::xls::PTDefinitionModel::maPageStyle, oox::xls::PTDefinitionModel::maPivotTableStyle, oox::xls::PTDefinitionModel::maRowHeaderCaption, oox::xls::PTDefinitionModel::maTag, oox::xls::PTDefinitionModel::maVacatedStyle, oox::xls::AutoFormatModel::mbApplyAlignment, oox::xls::AutoFormatModel::mbApplyBorder, oox::xls::AutoFormatModel::mbApplyFill, oox::xls::AutoFormatModel::mbApplyFont, oox::xls::AutoFormatModel::mbApplyNumFmt, oox::xls::AutoFormatModel::mbApplyProtection, oox::xls::PTDefinitionModel::mbColGrandTotals, oox::xls::PTDefinitionModel::mbCustomListSort, oox::xls::PTDefinitionModel::mbDataOnRows, oox::xls::PTDefinitionModel::mbDisableFieldList, oox::xls::PTDefinitionModel::mbEnableDrill, oox::xls::PTDefinitionModel::mbFieldListSortAsc, oox::xls::PTDefinitionModel::mbFieldPrintTitles, oox::xls::PTDefinitionModel::mbItemPrintTitles, oox::xls::PTDefinitionModel::mbMergeItem, oox::xls::PTDefinitionModel::mbPageOverThenDown, oox::xls::PTDefinitionModel::mbPreserveFormatting, oox::xls::PTDefinitionModel::mbPrintDrill, oox::xls::PTDefinitionModel::mbRowGrandTotals, oox::xls::PTDefinitionModel::mbShowCalcMembers, oox::xls::PTDefinitionModel::mbShowDrill, oox::xls::PTDefinitionModel::mbShowEmptyCol, oox::xls::PTDefinitionModel::mbShowEmptyRow, oox::xls::PTDefinitionModel::mbShowError, oox::xls::PTDefinitionModel::mbShowHeaders, oox::xls::PTDefinitionModel::mbShowItems, oox::xls::PTDefinitionModel::mbShowMissing, oox::xls::PTDefinitionModel::mbSubtotalHiddenItems, oox::xls::PTDefinitionModel::mbUseAutoFormat, oox::xls::PTDefinitionModel::mbVisualTotals, oox::xls::AutoFormatModel::mnAutoFormatId, oox::xls::PTDefinitionModel::mnCacheId, oox::xls::PTDefinitionModel::mnChartFormat, oox::xls::PTDefinitionModel::mnDataPosition, oox::xls::PTDefinitionModel::mnIndent, oox::xls::PTDefinitionModel::mnPageWrap, rStrm, and SAL_WARN_IF.

Referenced by oox::xls::PivotTableFragment::onCreateRecordContext().

◆ importPTLocation()

void oox::xls::PivotTable::importPTLocation ( SequenceInputStream rStrm,
sal_Int16  nSheet 
)

◆ importPTPageField()

void oox::xls::PivotTable::importPTPageField ( SequenceInputStream rStrm)

Reads the settings of a field located in the page dimension from the PTPAGEFIELD record.

Definition at line 1178 of file pivottablebuffer.cxx.

References oox::getFlag(), oox::xls::PTPageFieldModel::maName, maPageFields, oox::xls::PTPageFieldModel::mnField, oox::xls::PTPageFieldModel::mnItem, and rStrm.

Referenced by oox::xls::PivotTableFragment::onCreateRecordContext().

◆ importPTRowFields()

void oox::xls::PivotTable::importPTRowFields ( SequenceInputStream rStrm)

Reads the indexes of all fields located in the row dimension from a PTROWFIELDS record.

Definition at line 1168 of file pivottablebuffer.cxx.

References importFields(), maRowFields, and rStrm.

Referenced by oox::xls::PivotTableFragment::onCreateRecordContext().

◆ importRowField()

void oox::xls::PivotTable::importRowField ( const AttributeList rAttribs)

Reads the index of a field located in the row dimension.

Definition at line 1036 of file pivottablebuffer.cxx.

References importField(), and maRowFields.

Referenced by oox::xls::PivotTableFragment::onCreateContext().

◆ putToInteropGrabBag()

void oox::xls::PivotTable::putToInteropGrabBag ( const OUString &  sName,
const AttributeList rAttribs 
)

Puts the attributes to the named grab bag value.

Definition at line 1069 of file pivottablebuffer.cxx.

References oox::AttributeList::getFastAttributeList(), maInteropGrabBag, and sName.

Referenced by oox::xls::PivotTableFragment::onCreateContext().

Member Data Documentation

◆ maColFields

IndexVector oox::xls::PivotTable::maColFields
private

Indexes to fields in row dimension.

Definition at line 374 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), importColField(), and importPTColFields().

◆ maDataField

PivotTableField oox::xls::PivotTable::maDataField
private

All pivot table fields.

Definition at line 372 of file pivottablebuffer.hxx.

Referenced by getTableField().

◆ maDataFields

DataFieldVector oox::xls::PivotTable::maDataFields
private

Settings for all fields in page dimension.

Definition at line 376 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), getCacheFieldOfDataField(), importDataField(), and importPTDataField().

◆ maDefModel

PTDefinitionModel oox::xls::PivotTable::maDefModel
private

All field filters.

Definition at line 378 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), importPivotTableDefinition(), and importPTDefinition().

◆ maFields

PivotTableFieldVector oox::xls::PivotTable::maFields
private

◆ maFilters

PivotTableFilterVector oox::xls::PivotTable::maFilters
private

Settings for all fields in data area.

Definition at line 377 of file pivottablebuffer.hxx.

Referenced by createTableFilter(), and finalizeImport().

◆ maInteropGrabBag

std::map<OUString, css::uno::Any> oox::xls::PivotTable::maInteropGrabBag
private

Descriptor of the DataPilot object.

Definition at line 383 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), and putToInteropGrabBag().

◆ maLocationModel

PTLocationModel oox::xls::PivotTable::maLocationModel
private

Global pivot table settings.

Definition at line 379 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), importLocation(), and importPTLocation().

◆ maPageFields

PageFieldVector oox::xls::PivotTable::maPageFields
private

Indexes to fields in column dimension.

Definition at line 375 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), importPageField(), and importPTPageField().

◆ maRowFields

IndexVector oox::xls::PivotTable::maRowFields
private

Data layout field.

Definition at line 373 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), importPTRowFields(), and importRowField().

◆ mpDPObject

ScDPObject* oox::xls::PivotTable::mpDPObject
private

Definition at line 370 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), and getDPObject().

◆ mpPivotCache

PivotCache* oox::xls::PivotTable::mpPivotCache
private

Location settings of the pivot table.

Definition at line 380 of file pivottablebuffer.hxx.

Referenced by finalizeImport(), getCacheDatabaseIndex(), and getCacheField().

◆ mxDPDescriptor

css::uno::Reference< css::sheet::XDataPilotDescriptor > oox::xls::PivotTable::mxDPDescriptor
private

The pivot cache this table is based on.

Definition at line 382 of file pivottablebuffer.hxx.

Referenced by finalizeFieldsImport(), finalizeImport(), getDataLayoutField(), and getDataPilotField().


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