InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAnimationUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
20 // with the terms of the Adobe license agreement accompanying it. If you have received
21 // this file from a source other than Adobe, then your use, modification, or
22 // distribution of it requires the prior written permission of Adobe.
23 //
24 //========================================================================================
25 
26 #include "DynamicDocumentsID.h"
27 
28 #include "AnimationTypes.h"
29 #include "Utils.h"
30 #include "ISpreadDynamicContentMgr.h"
31 
33 {
34  public:
35  enum { kDefaultIID = IID_IANIMATIONUTILS };
36 
42  virtual PMString GetTargetName (const UIDRef& targetRef) const = 0;
43 
48  virtual void GetApplicableTriggerEvents (const UIDRef& ownerRef, std::vector<EventTriggerType>& triggerList) const = 0;
49 
55  virtual void GetApplicableTriggerEventsForTarget (const UIDRef& ownerRef, const UIDRef& targetRef, std::vector<EventTriggerType>& triggerList) const = 0;
56 
61  virtual EventTriggerType GetEventTriggerFromString (const PMString& triggerString) const = 0;
62 
70  virtual PMString GetStringFromEventTrigger (const EventTriggerType& trigger, const ISpreadDynamicContentMgr::DynamicContentType& type = ISpreadDynamicContentMgr::kAnimationItemType, bool consolidateButtonEvet = false ) const = 0;
71 
80  virtual bool GetPageItemAnimationFirstLastKeyframeValues (const UIDRef& pageItemRef, std::vector<PMPoint>& position, std::vector<PMPoint>& scale, std::vector<PMReal>& rotationAngle, std::vector<PMReal>& opacity) const = 0;
81 
86  virtual bool AnimationAllowedForPageItem (const UIDRef& targetRef) const = 0;
87 
92  virtual UID GetParentSpreadUID (const UIDRef& targetRef) const = 0;
93 
99  virtual UID GetTimingParentUID (const UIDRef& targetRef) const = 0;
100 
101 };