26#include <oox/token/namespaces.hxx>
27#include <oox/token/tokens.hxx>
30#include <osl/diagnose.h>
34using ::oox::core::ContextHandler2Helper;
51 switch( getCurrentElement() )
53 case C_TOKEN( numRef ):
57 case C_TOKEN( numCache ):
62 case C_TOKEN( numCache ):
63 case C_TOKEN( numLit ):
66 case C_TOKEN( formatCode ):
68 case C_TOKEN( ptCount ):
90 switch( getCurrentElement() )
95 case C_TOKEN( formatCode ):
106 if( isParentElement( C_TOKEN( cat ), 4 ) )
116 OUString aFormatCode =
mrModel.maFormatCode;
117 sal_Int32 nCheckPos = 0;
120 bNoKey = (nCheckPos != 0);
130 double fValue = rChars.toDouble();
131 if (
mrModel.meFormatType == SvNumFormatType::DATE)
135 const ::Color* pColor =
nullptr;
136 OUString aFormattedValue;
164 uno::Reference<uno::XComponentContext> rContext =
186 switch( getCurrentElement() )
188 case C_TOKEN( multiLvlStrRef ):
192 case C_TOKEN( multiLvlStrCache ):
197 case C15_TOKEN( datalabelsRange ):
202 case C15_TOKEN( dlblRangeCache ):
207 case C_TOKEN( strRef ):
211 case C_TOKEN( strCache ):
216 case C_TOKEN( strCache ):
217 case C_TOKEN( strLit ):
218 case C15_TOKEN( dlblRangeCache ):
219 if (nElement == C15_TOKEN( dlblRangeCache ) && !
mbReadC15)
224 case C_TOKEN( ptCount ):
233 case C_TOKEN( multiLvlStrCache ):
236 case C_TOKEN( ptCount ):
268 switch( getCurrentElement() )
295 switch( getCurrentElement() )
298 case C_TOKEN( xVal ):
302 case C_TOKEN( multiLvlStrRef ):
303 case C_TOKEN( strLit ):
304 case C_TOKEN( strRef ):
305 case C15_TOKEN( datalabelsRange ):
306 OSL_ENSURE( !
mrModel.
mxDataSeq,
"DataSourceContext::onCreateContext - multiple data sequences" );
309 case C_TOKEN( numLit ):
310 case C_TOKEN( numRef ):
311 OSL_ENSURE( !
mrModel.
mxDataSeq,
"DataSourceContext::onCreateContext - multiple data sequences" );
316 case C_TOKEN( plus ):
317 case C_TOKEN( minus ):
319 case C_TOKEN( yVal ):
320 case C_TOKEN( bubbleSize ):
323 case C_TOKEN( numLit ):
324 case C_TOKEN( numRef ):
325 OSL_ENSURE( !
mrModel.
mxDataSeq,
"DataSourceContext::onCreateContext - multiple data sequences" );
Provides access to attribute values of an element.
std::optional< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
XmlFilterBase & getFilter() const
Returns the filter instance.
const css::uno::Reference< css::uno::XComponentContext > & getComponentContext() const
Returns the component context passed in the filter constructor (always existing).
DataSourceContext(::oox::core::ContextHandler2Helper &rParent, DataSourceModel &rModel)
virtual ~DataSourceContext() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
Handler for a double sequence context (c:numLit, c:numRef elements).
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
virtual ~DoubleSequenceContext() override
SvNumberFormatter * getNumberFormatter()
std::unique_ptr< SvNumberFormatter > mpNumberFormatter
Current data point index.
DoubleSequenceContext(::oox::core::ContextHandler2Helper &rParent, DataSequenceModel &rModel)
virtual void onCharacters(const OUString &rChars) override
Handler for a string sequence context (c:multiLvlStrRef, c:strLit, c:strRef elements).
virtual ~StringSequenceContext() override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
StringSequenceContext(::oox::core::ContextHandler2Helper &rParent, DataSequenceModel &rModel)
bool mbReadC15
Current data point index.
virtual void onCharacters(const OUString &rChars) override
::rtl::Reference< ContextHandler > ContextHandlerRef
DataSequenceRef mxDataSeq
constexpr sal_uInt32 NUMBERFORMAT_ENTRY_NOT_FOUND