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 ):
82 OUString val = rAttribs.
getString( XML_val, OUString() );
OptValue< bool > getBool(sal_Int32 nAttrToken) const
Returns the boolean value of the specified attribute.
OptValue< sal_Int32 > getInteger(sal_Int32 nAttrToken) const
Returns the 32-bit signed integer value of the specified attribute (decimal).
bool isCurrentElement(sal_Int32 nElement) const
Returns true, if nElement contains the identifier of the currently processed element.
OptValue< double > getDouble(sal_Int32 nAttrToken) const
Returns the double value of the specified attribute.
OptValue< OUString > getString(sal_Int32 nAttrToken) const
Returns the string value of the specified attribute.
AnimVariantContext(::oox::core::FragmentHandler2 const &rParent,::sal_Int32 aElement, css::uno::Any &aValue)
::Color getColor(const GraphicHelper &rGraphicHelper,::Color nPhClr=API_RGB_TRANSPARENT) const
Returns the final RGB color value.
bool isUsed() const
Returns true, if the color is initialized.
virtual void onEndElement() override
Will be called when the current element is about to be left.
Provides access to attribute values of an element.
virtual ~AnimVariantContext() noexcept override
::oox::drawingml::Color maColor
::rtl::Reference< ContextHandler > ContextHandlerRef
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 aElementToken, const AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.