25#include <oox/token/namespaces.hxx>
30using ::oox::core::ContextHandlerRef;
34 mxRule(
std::move( xRule ))
40 switch( getCurrentElement() )
42 case XLS_TOKEN( cfRule ):
43 return (nElement == XLS_TOKEN( colorScale )) ? this :
nullptr;
44 case XLS_TOKEN( colorScale ):
45 if (nElement == XLS_TOKEN( cfvo ))
47 else if (nElement == XLS_TOKEN(
color ))
57 switch( getCurrentElement() )
59 case XLS_TOKEN( cfvo ):
60 mxRule->getColorScale()->importCfvo( rAttribs );
62 case XLS_TOKEN(
color ):
63 mxRule->getColorScale()->importColor( rAttribs );
70 mxRule(
std::move( xRule ))
76 switch( getCurrentElement() )
78 case XLS_TOKEN( cfRule ):
79 return (nElement == XLS_TOKEN( dataBar )) ? this :
nullptr;
80 case XLS_TOKEN( dataBar ):
81 if (nElement == XLS_TOKEN( cfvo ))
83 else if (nElement == XLS_TOKEN(
color ))
93 switch( getCurrentElement() )
95 case XLS_TOKEN( dataBar ):
96 mxRule->getDataBar()->importAttribs( rAttribs );
98 case XLS_TOKEN( cfvo ):
99 mxRule->getDataBar()->importCfvo( rAttribs );
101 case XLS_TOKEN(
color ):
102 mxRule->getDataBar()->importColor( rAttribs );
115 switch( getCurrentElement() )
117 case XLS_TOKEN( cfRule ):
118 case XLS14_TOKEN( cfRule ):
119 return (nElement == XLS_TOKEN( iconSet ) || nElement == XLS14_TOKEN(iconSet)) ? this :
nullptr;
120 case XLS_TOKEN( iconSet ):
121 case XLS14_TOKEN(iconSet):
122 if (nElement == XLS_TOKEN( cfvo ) ||
123 nElement == XLS14_TOKEN(cfvo) ||
124 nElement == XLS14_TOKEN(cfIcon))
128 case XLS14_TOKEN(cfvo):
129 if (nElement == XM_TOKEN(f))
137 switch( getCurrentElement() )
139 case XLS_TOKEN( iconSet ):
140 case XLS14_TOKEN( iconSet ):
143 case XLS_TOKEN( cfvo ):
144 case XLS14_TOKEN( cfvo ):
147 case XLS14_TOKEN(cfIcon):
160 switch(getCurrentElement())
176 switch( getCurrentElement() )
178 case XLS_TOKEN( conditionalFormatting ):
179 return (nElement == XLS_TOKEN( cfRule )) ? this :
nullptr;
180 case XLS_TOKEN( cfRule ):
181 if (nElement == XLS_TOKEN(
formula ))
183 else if (nElement == XLS_TOKEN( colorScale ) )
185 else if (nElement == XLS_TOKEN( dataBar ) )
187 else if (nElement == XLS_TOKEN( iconSet ) )
189 else if (nElement == XLS_TOKEN( extLst ) )
199 switch( getCurrentElement() )
201 case XLS_TOKEN( conditionalFormatting ):
205 case XLS_TOKEN( cfRule ):
219 switch( getCurrentElement() )
221 case XLS_TOKEN( conditionalFormatting ):
224 case XLS_TOKEN( cfRule ):
233 mxRule->appendFormula( rChars );
238 switch( getCurrentElement() )
248 switch( getCurrentElement() )
261 switch( getCurrentElement() )
sal_uInt64 GetCellCount() const
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
ColorScaleContext(CondFormatContext &rFragment, CondFormatRuleRef xRule)
virtual void onStartElement(const AttributeList &rAttribs) override
CondFormatContext(WorksheetFragmentBase &rFragment)
virtual void onStartElement(const AttributeList &rAttribs) override
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 onCharacters(const OUString &rChars) override
virtual void onStartRecord(SequenceInputStream &rStrm) override
virtual void onEndRecord() override
virtual void onEndElement() override
virtual void onStartElement(const AttributeList &rAttribs) override
DataBarContext(CondFormatContext &rFormat, CondFormatRuleRef xRule)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Handle ExtLst entries in xlsx.
virtual void onStartElement(const AttributeList &rAttribs) override
virtual void onCharacters(const OUString &rChars) override
IconSetContext(WorksheetContextBase &rParent, IconSetRule *pIconSet)
virtual void onEndElement() override
virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
void importIcon(const AttributeList &rAttribs)
void importFormula(const OUString &rFormula)
void importAttribs(const AttributeList &rAttribs)
void importCfvo(const AttributeList &rAttribs)
Context handler derived from the WorksheetHelper helper class.
Fragment handler derived from the WorksheetHelper helper class.
CondFormatBuffer & getCondFormats() const
Returns the conditional formatting in this sheet.
const sal_Int32 BIFF12_ID_CFRULE
std::shared_ptr< CondFormatRule > CondFormatRuleRef
const sal_Int32 BIFF12_ID_CONDFORMATTING