23#include <oox/token/namespaces.hxx>
31 mrTableField( rTableField )
37 switch( getCurrentElement() )
39 case XLS_TOKEN( pivotField ):
42 case XLS_TOKEN( items ):
return this;
43 case XLS_TOKEN( autoSortScope ):
return this;
46 case XLS_TOKEN( items ):
49 case XLS_TOKEN( autoSortScope ):
50 if( nElement == XLS_TOKEN( pivotArea ) )
return this;
52 case XLS_TOKEN( pivotArea ):
53 if( nElement == XLS_TOKEN( references ) )
return this;
55 case XLS_TOKEN( references ):
58 case XLS_TOKEN( reference ):
73 switch( getCurrentElement() )
103 if( isRootElement() )
109 mrTableFilter( rTableFilter )
115 switch( getCurrentElement() )
118 if( nElement == XLS_TOKEN( autoFilter ) )
return this;
120 case XLS_TOKEN( autoFilter ):
121 if( nElement == XLS_TOKEN( filterColumn ) )
return this;
123 case XLS_TOKEN( filterColumn ):
132 if( isRootElement() )
138 switch( getCurrentElement() )
155 if( isRootElement() )
161 mrPivotTable( getPivotTables().createPivotTable() )
167 switch( getCurrentElement() )
173 case XLS_TOKEN( pivotTableDefinition ):
177 case XLS_TOKEN( pivotFields ):
return this;
178 case XLS_TOKEN( rowFields ):
return this;
179 case XLS_TOKEN( colFields ):
return this;
180 case XLS_TOKEN( pageFields ):
return this;
181 case XLS_TOKEN( dataFields ):
return this;
182 case XLS_TOKEN( filters ):
return this;
183 case XLS_TOKEN(pivotTableStyleInfo):
189 case XLS_TOKEN( pivotFields ):
192 case XLS_TOKEN( rowFields ):
195 case XLS_TOKEN( colFields ):
198 case XLS_TOKEN( pageFields ):
201 case XLS_TOKEN( dataFields ):
204 case XLS_TOKEN( filters ):
213 switch( getCurrentElement() )
250 static const RecordInfo spRecInfos[] =
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
PivotTableFieldContext(WorksheetFragmentBase &rFragment, PivotTableField &rTableField)
virtual void onStartElement(const AttributeList &rAttribs) override
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
PivotTableField & mrTableField
void importPTReference(SequenceInputStream &rStrm)
Imports pivot field reference settings from the PTREFERENCE record.
void importPivotField(const AttributeList &rAttribs)
Imports pivot field settings from the pivotField element.
void importReference(const AttributeList &rAttribs)
Imports pivot field reference settings from the reference element.
void importReferenceItem(const AttributeList &rAttribs)
Imports pivot field item reference settings from the x element.
void importPTFItem(SequenceInputStream &rStrm)
Imports settings of an item in this pivot field from the PTFITEM record.
void importItem(const AttributeList &rAttribs)
Imports settings of an item in this pivot field from the item element.
void importPTReferenceItem(SequenceInputStream &rStrm)
Imports pivot field item reference settings from the PTREFERENCEITEM record.
void importPTField(SequenceInputStream &rStrm)
Imports pivot field settings from the PTFIELD record.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
PivotTableFilterContext(WorksheetFragmentBase &rFragment, PivotTableFilter &rTableFilter)
virtual void onStartRecord(SequenceInputStream &rStrm) override
PivotTableFilter & mrTableFilter
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void onStartElement(const AttributeList &rAttribs) override
void importFilter(const AttributeList &rAttribs)
Reads the settings of a field filter from the filter element.
void importTop10Filter(SequenceInputStream &rStrm)
Reads additional settings of a field filter from the TOP10FILTER record.
void importPTFilter(SequenceInputStream &rStrm)
Reads the settings of a field filter from the PTFILTER record.
void importTop10(const AttributeList &rAttribs)
Reads additional settings of a field filter from the top10 element.
PivotTable & mrPivotTable
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual const ::oox::core::RecordInfo * getRecordInfos() const override
PivotTableFragment(const WorksheetHelper &rHelper, const OUString &rFragmentPath)
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
void importPTDataField(SequenceInputStream &rStrm)
Reads the settings of a field located in the data dimension from the PTDATAFIELD record.
void importDataField(const AttributeList &rAttribs)
Reads the settings of a field located in the data dimension from the dataField element.
PivotTableField & createTableField()
Creates and returns a new pivot table field.
void importPivotTableDefinition(const AttributeList &rAttribs)
Reads global pivot table settings from the pivotTableDefinition element.
void importLocation(const AttributeList &rAttribs, sal_Int16 nSheet)
Reads the location of the pivot table from the location element.
void putToInteropGrabBag(const OUString &sName, const AttributeList &rAttribs)
Puts the attributes to the named grab bag value.
void importPTLocation(SequenceInputStream &rStrm, sal_Int16 nSheet)
Reads the location of the pivot table from the PTLOCATION record.
void importColField(const AttributeList &rAttribs)
Reads the index of a field located in the column dimension.
void importPTPageField(SequenceInputStream &rStrm)
Reads the settings of a field located in the page dimension from the PTPAGEFIELD record.
void importRowField(const AttributeList &rAttribs)
Reads the index of a field located in the row dimension.
PivotTableFilter & createTableFilter()
Creates and returns a new pivot table filter.
void importPTRowFields(SequenceInputStream &rStrm)
Reads the indexes of all fields located in the row dimension from a PTROWFIELDS record.
void importPageField(const AttributeList &rAttribs)
Reads the settings of a field located in the page dimension from the pageField element.
void importPTColFields(SequenceInputStream &rStrm)
Reads the indexes of all fields located in the column dimension from a PTCOLFIELDS record.
void importPTDefinition(SequenceInputStream &rStrm)
Reads global pivot table settings from the PTDEFINITION record.
Context handler derived from the WorksheetHelper helper class.
Fragment handler derived from the WorksheetHelper helper class.
SCTAB getSheetIndex() const
Returns the index of the current sheet.
const sal_Int32 XML_ROOT_CONTEXT
const sal_Int32 BIFF12_ID_PTFILTERS
const sal_Int32 BIFF12_ID_FILTERCOLUMN
const sal_Int32 BIFF12_ID_PTFITEM
const sal_Int32 BIFF12_ID_PTCOLFIELDS
const sal_Int32 BIFF12_ID_PTDATAFIELD
const sal_Int32 BIFF12_ID_PTFIELD
const sal_Int32 BIFF12_ID_PTDEFINITION
const sal_Int32 BIFF12_ID_PTROWFIELDS
const sal_Int32 BIFF12_ID_PTPAGEFIELDS
const sal_Int32 BIFF12_ID_PTFITEMS
const sal_Int32 BIFF12_ID_AUTOSORTSCOPE
const sal_Int32 BIFF12_ID_PTREFERENCEITEM
const sal_Int32 BIFF12_ID_PTPAGEFIELD
const sal_Int32 BIFF12_ID_TOP10FILTER
const sal_Int32 BIFF12_ID_PTREFERENCE
const sal_Int32 BIFF12_ID_PTFIELDS
const sal_Int32 BIFF12_ID_PTREFERENCES
const sal_Int32 BIFF12_ID_PTFILTER
const sal_Int32 BIFF12_ID_PIVOTAREA
const sal_Int32 BIFF12_ID_PTDATAFIELDS
const sal_Int32 BIFF12_ID_PTLOCATION
const sal_Int32 BIFF12_ID_AUTOFILTER