InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAnimationAttributeSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IAnimationAttributeSuite__
25 #define __IAnimationAttributeSuite__
26 
27 #include "ISelectionMessages.h"
28 #include "AnimationTypes.h"
29 
30 #include "DynamicDocumentsID.h"
31 
57 {
58 public:
59  enum { kDefaultIID = IID_IANIMATIONATTRIBUTESUITE };
60 
61  //________________________________________________________________________________________
62  // Data Types
63  //________________________________________________________________________________________
64  enum PropertyType {
65  kAnimationOpacity = 0,
66  kAnimationRotation,
67  kAnimationScaleX,
68  kAnimationScaleY,
69  };
70 
71 public:
72 
75  virtual bool HasMultipleSelections () const = 0;
76 
81  virtual ErrorCode ApplyMotionPreset (const UIDRef& presetRef) = 0;
82 
86  virtual bool CanApplyMotionPreset (void) const = 0;
87 
91  virtual bool GetMotionPresetApplied (UID& presetUID) const = 0;
92 
96  virtual bool CanApplyAnimation (void) const = 0;
97 
103  virtual bool GetBaseMotionPresetNameApplied (PMString& presetName) const = 0;
104 
109  virtual bool HasMSOAsTimingParent (bool* pMixed = nil) const = 0;
110 
115  virtual bool HasAnimationApplied (bool* pMixed = nil) const = 0;
116 
121  virtual bool HasCustomAnimationSettings (bool* pMixed = nil) const = 0;
122 
127  virtual void SetShowAnimationProxy (bool turnOn) = 0;
128 
131  virtual bool GetShowAnimationProxy () const = 0;
132 
139  virtual bool GetName (PMString& name) const = 0;
140 
147  virtual bool SetName (const PMString& newName) = 0;
148 
153  virtual bool GetAnimationHideInitially (bool& hideInitially) const = 0;
154 
159  virtual bool SetAnimationHideInitially (bool hiddenUntilAnimated) = 0;
160 
165  virtual bool GetAnimationHideAfter (bool& hideAfter) const = 0;
166 
171  virtual bool SetAnimationHideAfter (bool hideAfter) = 0;
172 
177  virtual bool GetAnimationDuration (PMReal& duration) const = 0;
178 
182  virtual bool SetAnimationDuration (const PMReal& duration) = 0;
183 
187  virtual bool SetAnimationPlays (const uint32& numPlays) = 0;
188 
193  virtual bool GetAnimationPlays (uint32& numPlays) const = 0;
194 
199  virtual bool GetAnimationPlaysLoop (bool& playsLoop) const = 0;
200 
205  virtual bool SetAnimationPlaysLoop (bool setToLoop) = 0;
206 
212  virtual bool GetApplicableTriggerEvents (std::vector<EventTriggerType>& applicableList) const = 0;
213 
218  virtual bool GetNumAnimationTriggerEvents (uint32& numTriggers) const = 0;
219 
227  virtual bool GetNthAnimationTriggerEvent (uint32 which, EventTriggerType& trigger) const = 0;
228 
236  virtual bool AddAnimationTriggerEvent (const EventTriggerType& triggerEvent) = 0;
237 
245  virtual bool RemoveAnimationTriggerEvent (const EventTriggerType& triggerEvent) = 0;
246 
251  virtual bool CanReverseAnimationForEvent (const EventTriggerType& triggerEvent) const = 0;
252 
258  virtual bool GetReverseAnimationForEvent (const EventTriggerType& trigger, bool& canbeReversed) const = 0;
259 
265  virtual bool SetReverseAnimationForEvent (const EventTriggerType& triggerEvent, bool setToReverse) = 0;
266 
272  virtual bool GetAnimateOption (AnimationOptions& animateOption) const = 0;
273 
279  virtual bool SetAnimateOption (const AnimationOptions& animateOption) = 0;
280 
286  virtual bool GetSimpleEaseType (AnimationEaseType& easeType) const = 0;
287 
293  virtual bool SetSimpleEaseType (const AnimationEaseType& easeType) = 0;
294 
299  virtual bool GetAnimationTranformOffsetPoint (PMPoint& offsetPoint) const = 0;
300 
305  virtual bool SetAnimationTranformOffsetPoint (const PMPoint& offsetPoint) = 0;
306 
311  virtual bool GetAnimationMotionPath (AnimationPathDataList& path) const = 0;
312 
317  virtual bool SetAnimationMotionPath (const AnimationPathDataList& path) = 0;
318 
323  virtual bool GetAnimationMotionPath (PMPathPointList& path) const = 0;
324 
332  virtual bool SetAnimationMotionPath (const PMPathPointList& path) = 0;
333 
342  virtual bool CanSetAnimationMotionPathFromSelection () const = 0;
343 
352  virtual bool SetAnimationMotionPathFromSelection () = 0;
353 
357  virtual bool CanUpdateAnimationMotionPathFromSelection () const = 0;
358 
364  virtual bool UpdateAnimationMotionPathFromSelection () = 0;
365 
368  enum {
369  kFirstKeyFrame = 0,
370  kLastKeyFrame = 0xffffffff
371  };
372 
376  virtual bool GetTotalNumFrames (uint32& numFrames) const = 0;
377 
383  virtual bool GetNumKeyFrames (const PropertyType& propType, uint32& numKeyFrames) const = 0;
384 
392  virtual bool GetKeyFrame (const PropertyType& propType, int32 which, uint32& keyframe, PMReal& value) const = 0;
393 
400  virtual bool GetValueAtKeyFrame (const PropertyType& propType, uint32 keyframe, PMReal& value) const = 0;
401 
408  virtual bool SetKeyFrame (const PropertyType& propType, uint32 keyframe, const PMReal& value = 0) = 0;
409 
415  virtual bool RemoveKeyFrame (const PropertyType& propType, uint32 keyframe) = 0;
416 
421  virtual bool RemoveAllKeyFrames (const PropertyType& propType) = 0;
422 
428  virtual bool CanSaveAnimationSettings () const = 0;
429 
433  virtual bool SaveAnimationSettings (const PMString& newPresetName) = 0;
434 
440  virtual bool CanSaveACopyAnimationSettings () const = 0;
441 
445  virtual bool SaveACopyAnimationSettings (const IDFile& newPresetFile) = 0;
446 
450  virtual bool CanRemoveAnimationPreset () const = 0;
451 
457  virtual bool RemoveAnimationPreset () = 0;
458 };
459 
460 
461 
462 #endif // __IAnimationAttributeSuite__
463