23 #include <oox/token/namespaces.hxx>
31 mrTableField( rTableField )
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 ):
109 mrTableFilter( rTableFilter )
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 ):
161 mrPivotTable( getPivotTables().createPivotTable() )
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 ):
250 static const RecordInfo spRecInfos[] =
const sal_Int32 BIFF12_ID_PTDATAFIELD
const sal_Int32 BIFF12_ID_PTFITEMS
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
PivotTable & mrPivotTable
const sal_Int32 BIFF12_ID_PTLOCATION
const sal_Int32 BIFF12_ID_AUTOSORTSCOPE
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
void importRowField(const AttributeList &rAttribs)
Reads the index of a field located in the row dimension.
void importPTReferenceItem(SequenceInputStream &rStrm)
Imports pivot field item reference settings from the PTREFERENCEITEM record.
const sal_Int32 BIFF12_ID_PIVOTAREA
const sal_Int32 BIFF12_ID_PTFIELD
void importColField(const AttributeList &rAttribs)
Reads the index of a field located in the column dimension.
PivotTableFieldContext(WorksheetFragmentBase &rFragment, PivotTableField &rTableField)
void importDataField(const AttributeList &rAttribs)
Reads the settings of a field located in the data dimension from the dataField element.
void importPTFItem(SequenceInputStream &rStrm)
Imports settings of an item in this pivot field from the PTFITEM record.
const sal_Int32 BIFF12_ID_PTCOLFIELDS
void importLocation(const AttributeList &rAttribs, sal_Int16 nSheet)
Reads the location of the pivot table from the location element.
PivotTableFilter & mrTableFilter
const sal_Int32 BIFF12_ID_PTREFERENCEITEM
void importTop10Filter(SequenceInputStream &rStrm)
Reads additional settings of a field filter from the TOP10FILTER record.
virtual void onStartElement(const AttributeList &rAttribs) override
const sal_Int32 BIFF12_ID_PTFIELDS
const sal_Int32 BIFF12_ID_AUTOFILTER
void importPivotTableDefinition(const AttributeList &rAttribs)
Reads global pivot table settings from the pivotTableDefinition element.
void importPageField(const AttributeList &rAttribs)
Reads the settings of a field located in the page dimension from the pageField element.
const sal_Int32 BIFF12_ID_PTREFERENCES
void importPTPageField(SequenceInputStream &rStrm)
Reads the settings of a field located in the page dimension from the PTPAGEFIELD record.
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
void importFilter(const AttributeList &rAttribs)
Reads the settings of a field filter from the filter element.
const sal_Int32 BIFF12_ID_PTFITEM
const sal_Int32 BIFF12_ID_PTREFERENCE
const sal_Int32 BIFF12_ID_PTFILTERS
sal_Int32 getCurrentElement() const
virtual void onStartRecord(SequenceInputStream &rStrm) override
PivotTableField & mrTableField
const sal_Int32 BIFF12_ID_FILTERCOLUMN
virtual const ::oox::core::RecordInfo * getRecordInfos() const override
bool isRootElement() const
void putToInteropGrabBag(const OUString &sName, const AttributeList &rAttribs)
Puts the attributes to the named grab bag value.
void importPTRowFields(SequenceInputStream &rStrm)
Reads the indexes of all fields located in the row dimension from a PTROWFIELDS record.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
void importPTDefinition(SequenceInputStream &rStrm)
Reads global pivot table settings from the PTDEFINITION record.
Fragment handler derived from the WorksheetHelper helper class.
PivotTableField & createTableField()
Creates and returns a new pivot table field.
void importPTLocation(SequenceInputStream &rStrm, sal_Int16 nSheet)
Reads the location of the pivot table from the PTLOCATION record.
void importPTDataField(SequenceInputStream &rStrm)
Reads the settings of a field located in the data dimension from the PTDATAFIELD record.
void importPTField(SequenceInputStream &rStrm)
Imports pivot field settings from the PTFIELD record.
void importTop10(const AttributeList &rAttribs)
Reads additional settings of a field filter from the top10 element.
Context handler derived from the WorksheetHelper helper class.
PivotTableFilterContext(WorksheetFragmentBase &rFragment, PivotTableFilter &rTableFilter)
virtual void onStartRecord(SequenceInputStream &rStrm) override
const sal_Int32 BIFF12_ID_TOP10FILTER
void importItem(const AttributeList &rAttribs)
Imports settings of an item in this pivot field from the item element.
SCTAB getSheetIndex() const
Returns the index of the current sheet.
void importReferenceItem(const AttributeList &rAttribs)
Imports pivot field item reference settings from the x element.
const sal_Int32 BIFF12_ID_PTDATAFIELDS
const sal_Int32 BIFF12_ID_PTPAGEFIELDS
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
const sal_Int32 XML_ROOT_CONTEXT
void importReference(const AttributeList &rAttribs)
Imports pivot field reference settings from the reference element.
PivotTableFragment(const WorksheetHelper &rHelper, const OUString &rFragmentPath)
PivotTableFilter & createTableFilter()
Creates and returns a new pivot table filter.
const sal_Int32 BIFF12_ID_PTPAGEFIELD
void importPTReference(SequenceInputStream &rStrm)
Imports pivot field reference settings from the PTREFERENCE record.
const sal_Int32 BIFF12_ID_PTFILTER
void importPTFilter(SequenceInputStream &rStrm)
Reads the settings of a field filter from the PTFILTER record.
const sal_Int32 BIFF12_ID_PTROWFIELDS
virtual void onStartElement(const AttributeList &rAttribs) override
void importPivotField(const AttributeList &rAttribs)
Imports pivot field settings from the pivotField element.
const sal_Int32 BIFF12_ID_PTDEFINITION
void importPTColFields(SequenceInputStream &rStrm)
Reads the indexes of all fields located in the column dimension from a PTCOLFIELDS record...