10#include <com/sun/star/animations/Timing.hpp>
11#include <com/sun/star/animations/Event.hpp>
12#include <com/sun/star/animations/EventTrigger.hpp>
13#include <com/sun/star/drawing/XShape.hpp>
14#include <com/sun/star/animations/XAnimationNode.hpp>
23const char* convertEventTrigger(sal_Int16 nTrigger)
25 const char* pEvent =
nullptr;
28 case EventTrigger::ON_NEXT:
31 case EventTrigger::ON_PREV:
34 case EventTrigger::BEGIN_EVENT:
37 case EventTrigger::END_EVENT:
40 case EventTrigger::ON_BEGIN:
43 case EventTrigger::ON_END:
46 case EventTrigger::ON_CLICK:
49 case EventTrigger::ON_DBL_CLICK:
50 pEvent =
"onDblClick";
52 case EventTrigger::ON_STOP_AUDIO:
53 pEvent =
"onStopAudio";
55 case EventTrigger::ON_MOUSE_ENTER:
56 pEvent =
"onMouseOver";
58 case EventTrigger::ON_MOUSE_LEAVE:
59 pEvent =
"onMouseOut";
71 bool bHasFDelay =
false;
78 if (eTiming == Timing_INDEFINITE)
83 if (
aEvent.Trigger == EventTrigger::ON_NEXT && bIsMainSeqChild)
91 if (
aEvent.Offset >>= fDelay)
95 else if (rAny >>= fDelay)
100 sal_Int32 nDelay =
static_cast<sal_uInt32
>(fDelay * 1000.0);
101 msDelay = OString::number(nDelay);
css::uno::Reference< css::drawing::XShape > mxShape
Cond(const css::uno::Any &rAny, bool bIsMainSeqChild)
css::uno::Reference< css::animations::XAnimationNode > mxNode