24#include <oox/token/namespaces.hxx>
28using ::oox::core::ContextHandlerRef;
32 mrFilterSettings( rFilterSettings )
38 switch( getCurrentElement() )
40 case XLS_TOKEN( filters ):
41 if( nElement == XLS_TOKEN(
filter ) || nElement == XLS_TOKEN( dateGroupItem ))
return this;
43 case XLS_TOKEN( customFilters ):
44 if( nElement == XLS_TOKEN( customFilter ) )
return this;
46 case XLS_TOKEN( colorFilter ):
47 if( nElement == XLS_TOKEN( colorFilter ) )
return this;
60 switch( getCurrentElement() )
79 mrFilterColumn( rFilterColumn )
85 if( getCurrentElement() == XLS_TOKEN( filterColumn ) )
switch( nElement )
87 case XLS_TOKEN( filters ):
89 case XLS_TOKEN( top10 ):
91 case XLS_TOKEN( customFilters ):
93 case XLS_TOKEN( colorFilter ):
127 mrSortCondition( rSortCondition )
154 mrAutoFilter( rAutoFilter )
160 if( getCurrentElement() == XLS_TOKEN( sortState ) )
switch( nElement )
162 case XLS_TOKEN( sortCondition ):
184 mrAutoFilter( rAutoFilter )
190 if( getCurrentElement() == XLS_TOKEN( autoFilter ) )
switch( nElement )
192 case XLS_TOKEN( sortState ):
194 case XLS_TOKEN( filterColumn ):
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
AutoFilterContext(WorksheetFragmentBase &rFragment, AutoFilter &rAutoFilter)
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual void onStartElement(const AttributeList &rAttribs) override
AutoFilter & mrAutoFilter
SortCondition & createSortCondition()
void importSortState(const AttributeList &rAttribs, sal_Int16 nSheet)
void importAutoFilter(const AttributeList &rAttribs, sal_Int16 nSheet)
Imports auto filter settings from the autoFilter element.
FilterColumn & createFilterColumn()
Creates a new auto filter column and stores it internally.
Settings for a color filter.
Settings for a custom filter, specifying one or two comparison operators associated with some values.
Settings for a discrete filter, specifying a list of values to be shown in the filtered range.
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
FilterColumn & mrFilterColumn
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onStartElement(const AttributeList &rAttribs) override
FilterColumnContext(WorksheetContextBase &rParent, FilterColumn &rFilterColumn)
A column in a filtered range.
FilterSettingsBase & createFilterSettings()
Creates and returns the specified filter settings object.
void importFilterColumn(const AttributeList &rAttribs)
Imports auto filter column settings from the filterColumn element.
Base class for specific filter settings for a column in a filtered range.
virtual void importAttribs(sal_Int32 nElement, const AttributeList &rAttribs)
Derived classes import filter settings from the passed attribute list.
virtual void importRecord(sal_Int32 nRecId, SequenceInputStream &rStrm)
Derived classes import filter settings from the passed record.
FilterSettingsBase & mrFilterSettings
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
FilterSettingsContext(WorksheetContextBase &rParent, FilterSettingsBase &rFilterSettings)
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual void onStartElement(const AttributeList &rAttribs) override
SortConditionContext(WorksheetContextBase &rFragment, SortCondition &rSortCondition)
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual void onStartElement(const AttributeList &rAttribs) override
SortCondition & mrSortCondition
void importSortCondition(const AttributeList &rAttribs, sal_Int16 nSheet)
SortStateContext(WorksheetContextBase &rFragment, AutoFilter &rAutoFilter)
virtual void onStartElement(const AttributeList &rAttribs) override
AutoFilter & mrAutoFilter
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ::oox::core::ContextHandlerRef onCreateRecordContext(sal_Int32 nRecId, SequenceInputStream &rStrm) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
Settings for a top-10 filter.
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 BIFF12_ID_FILTERCOLUMN
const sal_Int32 BIFF12_ID_DISCRETEFILTER
const sal_Int32 BIFF12_ID_CUSTOMFILTER
const sal_Int32 BIFF12_ID_CUSTOMFILTERS
const sal_Int32 BIFF12_ID_DISCRETEFILTERS
const sal_Int32 BIFF12_ID_TOP10FILTER
const sal_Int32 BIFF12_ID_AUTOFILTER