LibreOffice Module sd (master) 1
CustomAnimationEffect.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <com/sun/star/animations/XAnimationNode.hpp>
23#include <com/sun/star/animations/XTimeContainer.hpp>
24#include <com/sun/star/animations/XAudio.hpp>
25#include <com/sun/star/drawing/XShape.hpp>
26#include <com/sun/star/util/XChangesListener.hpp>
27#include <rtl/ref.hxx>
28#include <vcl/timer.hxx>
29#include <tools/long.hxx>
30#include "sddllapi.h"
31#include <list>
32#include <vector>
33#include <map>
34#include <memory>
35
36class SdrPathObj;
37class SdrModel;
38
39namespace sd {
40
41enum class EValue { To, By };
42
43class CustomAnimationEffect;
44
45class CustomAnimationPreset;
46typedef std::shared_ptr< CustomAnimationPreset > CustomAnimationPresetPtr;
47
48typedef std::shared_ptr< CustomAnimationEffect > CustomAnimationEffectPtr;
49
50typedef std::list< CustomAnimationEffectPtr > EffectSequence;
51
53
55{
56 friend class MainSequence;
58
59public:
60 CustomAnimationEffect( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
62
63 SAL_DLLPRIVATE const css::uno::Reference< css::animations::XAnimationNode >& getNode() const { return mxNode; }
64 SAL_DLLPRIVATE void setNode( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
65 SAL_DLLPRIVATE void replaceNode( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
66
67 SAL_DLLPRIVATE CustomAnimationEffectPtr clone() const;
68
69 // attributes
70 SAL_DLLPRIVATE const OUString& getPresetId() const { return maPresetId; }
71 SAL_DLLPRIVATE const OUString& getPresetSubType() const { return maPresetSubType; }
72 SAL_DLLPRIVATE const OUString& getProperty() const { return maProperty; }
73
74 SAL_DLLPRIVATE sal_Int16 getPresetClass() const { return mnPresetClass; }
75 SAL_DLLPRIVATE void setPresetClassAndId( sal_Int16 nPresetClass, const OUString& rPresetId );
76
77 SAL_DLLPRIVATE sal_Int16 getNodeType() const { return mnNodeType; }
78 void setNodeType( sal_Int16 nNodeType );
79
80 SAL_DLLPRIVATE css::uno::Any getRepeatCount() const;
81 SAL_DLLPRIVATE void setRepeatCount( const css::uno::Any& rRepeatCount );
82
83 SAL_DLLPRIVATE css::uno::Any getEnd() const;
84 SAL_DLLPRIVATE void setEnd( const css::uno::Any& rEnd );
85
86 SAL_DLLPRIVATE sal_Int16 getFill() const { return mnFill; }
87 SAL_DLLPRIVATE void setFill( sal_Int16 nFill );
88
89 SAL_DLLPRIVATE double getBegin() const { return mfBegin; }
90 void setBegin( double fBegin );
91
92 SAL_DLLPRIVATE double getDuration() const { return mfDuration; }
93 void setDuration( double fDuration );
94
95 SAL_DLLPRIVATE double getAbsoluteDuration() const { return mfAbsoluteDuration; }
96
97 SAL_DLLPRIVATE sal_Int16 getIterateType() const { return mnIterateType; }
98 void setIterateType( sal_Int16 nIterateType );
99
100 SAL_DLLPRIVATE double getIterateInterval() const { return mfIterateInterval; }
101 void setIterateInterval( double fIterateInterval );
102
103 SAL_DLLPRIVATE const css::uno::Any& getTarget() const { return maTarget; }
104 void setTarget( const css::uno::Any& rTarget );
105
106 SAL_DLLPRIVATE bool hasAfterEffect() const { return mbHasAfterEffect; }
107 SAL_DLLPRIVATE void setHasAfterEffect( bool bHasAfterEffect ) { mbHasAfterEffect = bHasAfterEffect; }
108
109 SAL_DLLPRIVATE const css::uno::Any& getDimColor() const { return maDimColor; }
110 SAL_DLLPRIVATE void setDimColor( const css::uno::Any& rDimColor ) { maDimColor = rDimColor; }
111
112 SAL_DLLPRIVATE bool IsAfterEffectOnNext() const { return mbAfterEffectOnNextEffect; }
113 SAL_DLLPRIVATE void setAfterEffectOnNext( bool bOnNextEffect ) { mbAfterEffectOnNextEffect = bOnNextEffect; }
114
115 SAL_DLLPRIVATE sal_Int32 getParaDepth() const { return mnParaDepth; }
116
117 SAL_DLLPRIVATE bool hasText() const { return mbHasText; }
118
119 SAL_DLLPRIVATE sal_Int16 getCommand() const { return mnCommand; }
120
121 SAL_DLLPRIVATE double getAcceleration() const { return mfAcceleration; }
122 SAL_DLLPRIVATE void setAcceleration( double fAcceleration );
123
124 SAL_DLLPRIVATE double getDecelerate() const { return mfDecelerate; }
125 SAL_DLLPRIVATE void setDecelerate( double fDecelerate );
126
127 SAL_DLLPRIVATE bool getAutoReverse() const { return mbAutoReverse; }
128 SAL_DLLPRIVATE void setAutoReverse( bool bAutoReverse );
129
130 SAL_DLLPRIVATE css::uno::Any getProperty( sal_Int32 nNodeType, std::u16string_view rAttributeName, EValue eValue );
131 SAL_DLLPRIVATE bool setProperty( sal_Int32 nNodeType, std::u16string_view rAttributeName, EValue eValue, const css::uno::Any& rValue );
132
133 SAL_DLLPRIVATE css::uno::Any getTransformationProperty( sal_Int32 nTransformType, EValue eValue );
134 SAL_DLLPRIVATE bool setTransformationProperty( sal_Int32 nTransformType, EValue eValue, const css::uno::Any& rValue );
135
136 SAL_DLLPRIVATE css::uno::Any getColor( sal_Int32 nIndex );
137 SAL_DLLPRIVATE void setColor( sal_Int32 nIndex, const css::uno::Any& rColor );
138
139 SAL_DLLPRIVATE sal_Int32 getGroupId() const { return mnGroupId; }
140 SAL_DLLPRIVATE void setGroupId( sal_Int32 nGroupId );
141
142 SAL_DLLPRIVATE sal_Int16 getTargetSubItem() const { return mnTargetSubItem; }
143 void setTargetSubItem( sal_Int16 nSubItem );
144
145 SAL_DLLPRIVATE OUString getPath() const;
146 SAL_DLLPRIVATE void setPath( const OUString& rPath );
147
148 SAL_DLLPRIVATE bool checkForText( const std::vector<sal_Int32>* paragraphNumberingLevel = nullptr );
149 SAL_DLLPRIVATE bool calculateIterateDuration();
150
151 SAL_DLLPRIVATE void setAudio( const css::uno::Reference< css::animations::XAudio >& xAudio );
152 SAL_DLLPRIVATE bool getStopAudio() const;
153 void setStopAudio();
154 void createAudio( const css::uno::Any& rSource );
155 SAL_DLLPRIVATE void removeAudio();
156 SAL_DLLPRIVATE const css::uno::Reference< css::animations::XAudio >& getAudio() const { return mxAudio; }
157
158 SAL_DLLPRIVATE EffectSequenceHelper* getEffectSequence() const { return mpEffectSequence; }
159
160 // helper
162 SAL_DLLPRIVATE css::uno::Reference< css::animations::XAnimationNode > createAfterEffectNode() const;
163 SAL_DLLPRIVATE css::uno::Reference< css::drawing::XShape > getTargetShape() const;
164
165 // static helpers
166 SAL_DLLPRIVATE static sal_Int32 get_node_type( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
167 SAL_DLLPRIVATE static sal_Int32 getNumberOfSubitems( const css::uno::Any& aTarget, sal_Int16 nIterateType );
168
169 SAL_DLLPRIVATE rtl::Reference<SdrPathObj> createSdrPathObjFromPath(SdrModel& rTargetModel);
170 SAL_DLLPRIVATE void updateSdrPathObjFromPath( SdrPathObj& rPathObj );
171 SAL_DLLPRIVATE void updatePathFromSdrPathObj( const SdrPathObj& rPathObj );
172
173private:
174 SAL_DLLPRIVATE void setEffectSequence( EffectSequenceHelper* pSequence ) { mpEffectSequence = pSequence; }
175
176 sal_Int16 mnNodeType;
177 OUString maPresetId;
179 OUString maProperty;
180 sal_Int16 mnPresetClass;
181 sal_Int16 mnFill;
182 double mfBegin;
183 double mfDuration; // this is the maximum duration of the subeffects
184 double mfAbsoluteDuration; // this is the maximum duration of the subeffects including possible iterations
185 sal_Int32 mnGroupId;
186 sal_Int16 mnIterateType;
188 sal_Int32 mnParaDepth;
194 sal_Int16 mnCommand;
195
197
198 css::uno::Reference< css::animations::XAnimationNode > mxNode;
199 css::uno::Reference< css::animations::XAudio > mxAudio;
200 css::uno::Any maTarget;
201
203 css::uno::Any maDimColor;
205};
206
208{
209 stl_CustomAnimationEffect_search_node_predict( const css::uno::Reference< css::animations::XAnimationNode >& xSearchNode );
210 bool operator()( const CustomAnimationEffectPtr& pEffect ) const;
211 const css::uno::Reference< css::animations::XAnimationNode >& mxSearchNode;
212};
213
216{
217public:
218 virtual void notify_change() = 0;
219
220protected:
222};
223
227{
229
230public:
231 CustomAnimationTextGroup( const css::uno::Reference< css::drawing::XShape >& rTarget, sal_Int32 nGroupId );
232
233 void reset();
234 void addEffect( CustomAnimationEffectPtr const & pEffect );
235
236 const EffectSequence& getEffects() const { return maEffects; }
237
238 /* -1: as single object, 0: all at once, n > 0: by n Th paragraph */
239 sal_Int32 getTextGrouping() const { return mnTextGrouping; }
240
241 bool getAnimateForm() const { return mbAnimateForm; }
242 bool getTextReverse() const { return mbTextReverse; }
243 double getTextGroupingAuto() const { return mfGroupingAuto; }
244
245private:
247 css::uno::Reference< css::drawing::XShape > maTarget;
248
249 enum { PARA_LEVELS = 5 };
250
251 sal_Int32 mnTextGrouping;
255 sal_Int32 mnLastPara;
257 sal_Int32 mnGroupId;
258};
259
260typedef std::shared_ptr< CustomAnimationTextGroup > CustomAnimationTextGroupPtr;
261typedef std::map< sal_Int32, CustomAnimationTextGroupPtr > CustomAnimationTextGroupMap;
262
264{
265friend class MainSequence;
266
267public:
268 SAL_DLLPRIVATE EffectSequenceHelper();
269 SAL_DLLPRIVATE EffectSequenceHelper( css::uno::Reference< css::animations::XTimeContainer > xSequenceRoot );
270 SAL_DLLPRIVATE virtual ~EffectSequenceHelper();
271
272 SAL_DLLPRIVATE virtual css::uno::Reference< css::animations::XAnimationNode > getRootNode();
273
274 SAL_DLLPRIVATE CustomAnimationEffectPtr append( const CustomAnimationPresetPtr& pDescriptor, const css::uno::Any& rTarget, double fDuration );
275 SAL_DLLPRIVATE CustomAnimationEffectPtr append( const SdrPathObj& rPathObj, const css::uno::Any& rTarget, double fDuration, const OUString& rPresetId );
276 void append( const CustomAnimationEffectPtr& pEffect );
277 SAL_DLLPRIVATE void replace( const CustomAnimationEffectPtr& pEffect, const CustomAnimationPresetPtr& pDescriptor, double fDuration );
278 SAL_DLLPRIVATE void replace( const CustomAnimationEffectPtr& pEffect, const CustomAnimationPresetPtr& pDescriptor, const OUString& rPresetSubType, double fDuration );
279 SAL_DLLPRIVATE void remove( const CustomAnimationEffectPtr& pEffect );
280 SAL_DLLPRIVATE void moveToBeforeEffect( const CustomAnimationEffectPtr& pEffect, const CustomAnimationEffectPtr& pInsertBefore);
281
282 SAL_DLLPRIVATE void create( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
283 SAL_DLLPRIVATE void createEffectsequence( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
284 SAL_DLLPRIVATE void processAfterEffect( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
285 SAL_DLLPRIVATE void createEffects( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
286
287 SAL_DLLPRIVATE sal_Int32 getCount() const { return sal::static_int_cast< sal_Int32 >( maEffects.size() ); }
288
289 SAL_DLLPRIVATE virtual CustomAnimationEffectPtr findEffect( const css::uno::Reference< css::animations::XAnimationNode >& xNode ) const;
290
291 SAL_DLLPRIVATE virtual bool disposeShape( const css::uno::Reference< css::drawing::XShape >& xShape );
292 SAL_DLLPRIVATE virtual void insertTextRange( const css::uno::Any& aTarget );
293 SAL_DLLPRIVATE virtual void disposeTextRange( const css::uno::Any& aTarget );
294 SAL_DLLPRIVATE virtual bool hasEffect( const css::uno::Reference< css::drawing::XShape >& xShape );
295 SAL_DLLPRIVATE virtual void onTextChanged( const css::uno::Reference< css::drawing::XShape >& xShape );
296
298 SAL_DLLPRIVATE virtual void rebuild();
299
300 SAL_DLLPRIVATE EffectSequence::iterator getBegin() { return maEffects.begin(); }
301 SAL_DLLPRIVATE EffectSequence::iterator getEnd() { return maEffects.end(); }
302 SAL_DLLPRIVATE EffectSequence::iterator find( const CustomAnimationEffectPtr& pEffect );
303
304 SAL_DLLPRIVATE EffectSequence& getSequence() { return maEffects; }
305
306 SAL_DLLPRIVATE void addListener( ISequenceListener* pListener );
307 SAL_DLLPRIVATE void removeListener( ISequenceListener* pListener );
308
309 // text group methods
310
311 SAL_DLLPRIVATE CustomAnimationTextGroupPtr findGroup( sal_Int32 nGroupId );
312 CustomAnimationTextGroupPtr createTextGroup(const CustomAnimationEffectPtr& pEffect,
313 sal_Int32 nTextGrouping, double fTextGroupingAuto,
314 bool bAnimateForm, bool bTextReverse);
315 SAL_DLLPRIVATE void setTextGrouping( const CustomAnimationTextGroupPtr& pTextGroup, sal_Int32 nTextGrouping );
316 SAL_DLLPRIVATE void setAnimateForm( const CustomAnimationTextGroupPtr& pTextGroup, bool bAnimateForm );
317 SAL_DLLPRIVATE void setTextGroupingAuto( const CustomAnimationTextGroupPtr& pTextGroup, double fTextGroupingAuto );
318 SAL_DLLPRIVATE void setTextReverse( const CustomAnimationTextGroupPtr& pTextGroup, bool bAnimateForm );
319
320 SAL_DLLPRIVATE sal_Int32 getSequenceType() const { return mnSequenceType; }
321
322 SAL_DLLPRIVATE const css::uno::Reference< css::drawing::XShape >& getTriggerShape() const { return mxEventSource; }
323 SAL_DLLPRIVATE void setTriggerShape( const css::uno::Reference< css::drawing::XShape >& xTrigger ) { mxEventSource = xTrigger; }
324
325 SAL_DLLPRIVATE virtual sal_Int32 getOffsetFromEffect( const CustomAnimationEffectPtr& xEffect ) const;
326 SAL_DLLPRIVATE virtual CustomAnimationEffectPtr getEffectFromOffset( sal_Int32 nOffset ) const;
327
328protected:
329 SAL_DLLPRIVATE virtual void implRebuild();
330 SAL_DLLPRIVATE virtual void reset();
331
332 SAL_DLLPRIVATE void createTextGroupParagraphEffects( const CustomAnimationTextGroupPtr& pTextGroup, const CustomAnimationEffectPtr& pEffect, bool bUsed );
333
334 SAL_DLLPRIVATE void notify_listeners();
335
336 SAL_DLLPRIVATE void updateTextGroups();
337
338 SAL_DLLPRIVATE bool getParagraphNumberingLevels( const css::uno::Reference< css::drawing::XShape >& xShape, std::vector< sal_Int32 >& rParagraphNumberingLevel );
339
340protected:
341 css::uno::Reference< css::animations::XTimeContainer > mxSequenceRoot;
343 std::list< ISequenceListener* > maListeners;
345 sal_Int32 mnSequenceType;
346 css::uno::Reference< css::drawing::XShape > mxEventSource;
347};
348
349class MainSequence;
350
352{
353friend class MainSequence;
355
356public:
357 InteractiveSequence( const css::uno::Reference< css::animations::XTimeContainer >& xSequenceRoot, MainSequence* pMainSequence );
358
360 virtual void rebuild() override;
361
362private:
363 virtual void implRebuild() override;
364
366};
367
368typedef std::shared_ptr< InteractiveSequence > InteractiveSequencePtr;
369typedef std::vector< InteractiveSequencePtr > InteractiveSequenceVector;
370
372{
373 friend class UndoAnimation;
376
377public:
378 MainSequence();
379 MainSequence( const css::uno::Reference< css::animations::XAnimationNode >& xTimingRootNode );
380 virtual ~MainSequence() override;
381
382 virtual css::uno::Reference< css::animations::XAnimationNode > getRootNode() override;
383 void reset( const css::uno::Reference< css::animations::XAnimationNode >& xTimingRootNode );
384
386 virtual void rebuild() override;
387
388 virtual CustomAnimationEffectPtr findEffect( const css::uno::Reference< css::animations::XAnimationNode >& xNode ) const override;
389
390 virtual bool disposeShape( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
391 virtual void insertTextRange( const css::uno::Any& aTarget ) override;
392 virtual void disposeTextRange( const css::uno::Any& aTarget ) override;
393 virtual bool hasEffect( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
394 virtual void onTextChanged( const css::uno::Reference< css::drawing::XShape >& xShape ) override;
395
396 const InteractiveSequenceVector& getInteractiveSequenceVector() const { return maInteractiveSequenceVector; }
397
398 virtual void notify_change() override;
399
400 bool setTrigger( const CustomAnimationEffectPtr& pEffect, const css::uno::Reference< css::drawing::XShape >& xTriggerShape );
401
403 void startRecreateTimer();
404
406 void startRebuildTimer();
407
408 virtual sal_Int32 getOffsetFromEffect( const CustomAnimationEffectPtr& xEffect ) const override;
409 virtual CustomAnimationEffectPtr getEffectFromOffset( sal_Int32 nOffset ) const override;
410
411private:
414 void lockRebuilds();
415 void unlockRebuilds();
416
417 DECL_DLLPRIVATE_LINK(onTimerHdl, Timer *, void);
418
419 virtual void implRebuild() override;
420
421 void init();
422
423 void createMainSequence();
424 virtual void reset() override;
425
426 InteractiveSequencePtr createInteractiveSequence( const css::uno::Reference< css::drawing::XShape >& xShape );
427
429
430 css::uno::Reference< css::util::XChangesListener > mxChangesListener;
431 css::uno::Reference< css::animations::XTimeContainer > mxTimingRootNode;
435
439};
440
441typedef std::shared_ptr< MainSequence > MainSequencePtr;
442
444{
445public:
448
449private:
451};
452
453}
454
455/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
double mfDuration
sal_Int16 mnFill
double mfAcceleration
double mfIterateInterval
sal_Int16 mnCommand
const sal_Int16 mnNodeType
bool mbAutoReverse
Any maTarget
sal_Int16 mnIterateType
double mfDecelerate
FILE * init(int, char **)
SAL_DLLPRIVATE void setAfterEffectOnNext(bool bOnNextEffect)
SAL_DLLPRIVATE double getDuration() const
SAL_DLLPRIVATE bool getAutoReverse() const
SAL_DLLPRIVATE double getIterateInterval() const
css::uno::Reference< css::animations::XAudio > mxAudio
SAL_DLLPRIVATE const OUString & getPresetId() const
SAL_DLLPRIVATE double getDecelerate() const
SAL_DLLPRIVATE void setHasAfterEffect(bool bHasAfterEffect)
css::uno::Reference< css::animations::XAnimationNode > mxNode
SAL_DLLPRIVATE const OUString & getProperty() const
SAL_DLLPRIVATE double getBegin() const
SAL_DLLPRIVATE const css::uno::Reference< css::animations::XAnimationNode > & getNode() const
SAL_DLLPRIVATE sal_Int32 getParaDepth() const
SAL_DLLPRIVATE const css::uno::Reference< css::animations::XAudio > & getAudio() const
SAL_DLLPRIVATE sal_Int16 getPresetClass() const
SAL_DLLPRIVATE bool IsAfterEffectOnNext() const
SAL_DLLPRIVATE sal_Int16 getCommand() const
SAL_DLLPRIVATE bool hasAfterEffect() const
SAL_DLLPRIVATE sal_Int32 getGroupId() const
SAL_DLLPRIVATE void setEffectSequence(EffectSequenceHelper *pSequence)
SAL_DLLPRIVATE sal_Int16 getIterateType() const
SAL_DLLPRIVATE bool hasText() const
SAL_DLLPRIVATE sal_Int16 getFill() const
EffectSequenceHelper * mpEffectSequence
SAL_DLLPRIVATE sal_Int16 getNodeType() const
SAL_DLLPRIVATE sal_Int16 getTargetSubItem() const
SAL_DLLPRIVATE const OUString & getPresetSubType() const
SAL_DLLPRIVATE EffectSequenceHelper * getEffectSequence() const
SAL_DLLPRIVATE void setDimColor(const css::uno::Any &rDimColor)
SAL_DLLPRIVATE double getAcceleration() const
SAL_DLLPRIVATE double getAbsoluteDuration() const
SAL_DLLPRIVATE const css::uno::Any & getTarget() const
SAL_DLLPRIVATE const css::uno::Any & getDimColor() const
this class keeps track of a group of animations that build up a text animation for a single shape
CustomAnimationTextGroup(const css::uno::Reference< css::drawing::XShape > &rTarget, sal_Int32 nGroupId)
css::uno::Reference< css::drawing::XShape > maTarget
const EffectSequence & getEffects() const
void addEffect(CustomAnimationEffectPtr const &pEffect)
SAL_DLLPRIVATE sal_Int32 getSequenceType() const
SAL_DLLPRIVATE const css::uno::Reference< css::drawing::XShape > & getTriggerShape() const
SAL_DLLPRIVATE EffectSequence::iterator getEnd()
SAL_DLLPRIVATE EffectSequence::iterator getBegin()
CustomAnimationTextGroupMap maGroupMap
SAL_DLLPRIVATE CustomAnimationEffectPtr append(const SdrPathObj &rPathObj, const css::uno::Any &rTarget, double fDuration, const OUString &rPresetId)
css::uno::Reference< css::animations::XTimeContainer > mxSequenceRoot
SAL_DLLPRIVATE sal_Int32 getCount() const
SAL_DLLPRIVATE EffectSequence & getSequence()
SAL_DLLPRIVATE CustomAnimationEffectPtr append(const CustomAnimationPresetPtr &pDescriptor, const css::uno::Any &rTarget, double fDuration)
css::uno::Reference< css::drawing::XShape > mxEventSource
std::list< ISequenceListener * > maListeners
SAL_DLLPRIVATE void setTriggerShape(const css::uno::Reference< css::drawing::XShape > &xTrigger)
this listener is implemented by UI components to track changes in the animation core
virtual void notify_change()=0
InteractiveSequence(const css::uno::Reference< css::animations::XTimeContainer > &xSequenceRoot, MainSequence *pMainSequence)
virtual void implRebuild() override
virtual void rebuild() override
this method rebuilds the animation nodes
MainSequenceRebuildGuard(MainSequencePtr pMainSequence)
DECL_DLLPRIVATE_LINK(onTimerHdl, Timer *, void)
::tools::Long mnRebuildLockGuard
css::uno::Reference< css::animations::XTimeContainer > mxTimingRootNode
InteractiveSequenceVector maInteractiveSequenceVector
const InteractiveSequenceVector & getInteractiveSequenceVector() const
css::uno::Reference< css::util::XChangesListener > mxChangesListener
T * clone(T *const other)
void addListener(const InterfaceRef &xObject, const css::uno::Reference< css::lang::XEventListener > &xListener)
void removeListener(const InterfaceRef &xObject, const css::uno::Reference< css::lang::XEventListener > &xListener)
OUStringBuffer & remove(OUStringBuffer &rIn, sal_Unicode c)
OSQLColumns::const_iterator find(const OSQLColumns::const_iterator &first, const OSQLColumns::const_iterator &last, std::u16string_view _rVal, const ::comphelper::UStringMixEqual &_rCase)
css::uno::Reference< css::deployment::XPackageRegistry > create(css::uno::Reference< css::deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, css::uno::Reference< css::uno::XComponentContext > const &xComponentContext)
std::list< CustomAnimationEffectPtr > EffectSequence
std::vector< InteractiveSequencePtr > InteractiveSequenceVector
std::shared_ptr< MainSequence > MainSequencePtr
std::shared_ptr< CustomAnimationTextGroup > CustomAnimationTextGroupPtr
std::shared_ptr< InteractiveSequence > InteractiveSequencePtr
std::shared_ptr< CustomAnimationPreset > CustomAnimationPresetPtr
std::map< sal_Int32, CustomAnimationTextGroupPtr > CustomAnimationTextGroupMap
std::shared_ptr< CustomAnimationEffect > CustomAnimationEffectPtr
SVX_DLLPUBLIC OUString getProperty(css::uno::Reference< css::beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rName)
long Long
#define SD_DLLPUBLIC
Definition: sddllapi.h:27
stl_CustomAnimationEffect_search_node_predict(const css::uno::Reference< css::animations::XAnimationNode > &xSearchNode)
bool operator()(const CustomAnimationEffectPtr &pEffect) const
const css::uno::Reference< css::animations::XAnimationNode > & mxSearchNode
signed char sal_Int8