22#include <com/sun/star/uno/Any.hxx>
23#include <rtl/ustring.hxx>
28#include <oox/token/namespaces.hxx>
29#include <oox/token/tokens.hxx>
37 : FragmentHandler2( rParent )
38 , mnElement( aElement )
57 switch( aElementToken )
59 case PPT_TOKEN( boolVal ):
61 bool val = rAttribs.
getBool( XML_val,
false );
65 case PPT_TOKEN( clrVal ):
66 return new ::oox::drawingml::ColorContext( *
this,
maColor );
68 case PPT_TOKEN( fltVal ):
70 double val = rAttribs.
getDouble( XML_val, 0.0 );
74 case PPT_TOKEN( intVal ):
76 sal_Int32 val = rAttribs.
getInteger( XML_val, 0 );
80 case PPT_TOKEN( strVal ):
Provides access to attribute values of an element.
OUString getStringDefaulted(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute, returns an empty string if attribute not present...
std::optional< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
std::optional< bool > getBool(sal_Int32 nAttrToken) const
Returns the boolean value of the specified attribute.
std::optional< double > getDouble(sal_Int32 nAttrToken) const
Returns the double value of the specified attribute.
bool isUsed() const
Returns true, if the color is initialized.
::Color getColor(const GraphicHelper &rGraphicHelper, ::Color nPhClr=API_RGB_TRANSPARENT) const
Returns the final RGB color value.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 aElementToken, const AttributeList &rAttribs) override
virtual ~AnimVariantContext() noexcept override
virtual void onEndElement() override
::oox::drawingml::Color maColor
AnimVariantContext(::oox::core::FragmentHandler2 const &rParent, ::sal_Int32 aElement, css::uno::Any &aValue)
::rtl::Reference< ContextHandler > ContextHandlerRef