22#include <com/sun/star/animations/AnimationEndSync.hpp>
23#include <com/sun/star/animations/EventTrigger.hpp>
28#include <oox/token/namespaces.hxx>
29#include <oox/token/tokens.hxx>
45 maEvent.Trigger = EventTrigger::NONE;
51 sal_Int32 nEvent = xAttribs->getOptionalValueToken( XML_evt, 0 );
55 maEvent.Trigger = EventTrigger::ON_BEGIN;
58 maEvent.Trigger = EventTrigger::ON_END;
61 maEvent.Trigger = EventTrigger::BEGIN_EVENT;
64 maEvent.Trigger = EventTrigger::END_EVENT;
67 maEvent.Trigger = EventTrigger::ON_CLICK;
70 maEvent.Trigger = EventTrigger::ON_DBL_CLICK;
73 maEvent.Trigger = EventTrigger::ON_MOUSE_ENTER;
76 maEvent.Trigger = EventTrigger::ON_MOUSE_LEAVE;
79 maEvent.Trigger = EventTrigger::ON_NEXT;
82 maEvent.Trigger = EventTrigger::ON_PREV;
85 maEvent.Trigger = EventTrigger::ON_STOP_AUDIO;
93 maEvent.Offset =
GetTime( xAttribs->getOptionalValue( XML_delay ) );
107 switch( aElementToken )
109 case PPT_TOKEN( rtn ):
114 aTok = rAttribs.
getToken( XML_val, XML_first );
118 nEnum = AnimationEndSync::FIRST;
121 nEnum = AnimationEndSync::LAST;
124 nEnum = AnimationEndSync::ALL;
133 case PPT_TOKEN( tn ):
140 case PPT_TOKEN( tgtEl ):
153 FragmentHandler2
const & rParent, sal_Int32 aElement,
157 , maConditions( aCond )
170 case PPT_TOKEN( cond ):
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...
bool hasAttribute(sal_Int32 nAttrToken) const
Returns true, if the specified attribute is present.
const css::uno::Reference< css::xml::sax::XFastAttributeList > & getFastAttributeList() const
Returns the wrapped com.sun.star.xml.sax.XFastAttributeList object.
std::optional< sal_Int32 > getToken(sal_Int32 nAttrToken) const
Returns the token identifier of the value of the specified attribute.
virtual ~CondContext() noexcept override
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 aElementToken, const AttributeList &rAttribs) override
AnimationCondition & maCond
css::animations::Event maEvent
CondContext(::oox::core::FragmentHandler2 const &rParent, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttribs, const TimeNodePtr &pNode, AnimationCondition &aCond)
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 aElementToken, const AttributeList &rAttribs) override
CondListContext(::oox::core::FragmentHandler2 const &rParent, sal_Int32 aElement, const TimeNodePtr &pNode, AnimationConditionList &aCondList)
CT_TLTimeConditionList.
virtual ~CondListContext() noexcept override
AnimationConditionList & maConditions
context CT_TLTimeTargetElement
std::shared_ptr< TimeNode > TimeNodePtr
Any GetTime(const OUString &val)
std::vector< AnimationCondition > AnimationConditionList
data for CT_TLTimeCondition
AnimTargetElementPtr & getTarget()