InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDynamicEventTimingSuite.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 __IDynamicEventTimingSuite__
25 #define __IDynamicEventTimingSuite__
26 
27 #include "ISelectionMessages.h"
28 #include "AnimationTypes.h"
29 
30 #include "DynamicDocumentsID.h"
31 #include "IDynamicEventTimingMgr.h"
32 
56 {
57 public:
58  enum { kDefaultIID = IID_IDYNAMICEVENTTIMINGSUITE};
59 
60 
61 public:
62 
63  //________________________________________________________________________________
64  //________________________________________________________________________________
65 
69  virtual bool HasMultipleSelections () const = 0;
70 
75  virtual bool CanApply () const = 0;
76 
80  virtual ClassID GetTimingParentClassID () const = 0;
81 
86  virtual void GetApplicableDynamicEvents(const EventTriggerType& trigger, std::vector<EventTriggerType>& eventTriggerTypeList) const = 0;
87 
93  virtual void GetApplicableDynamicEventsForTarget (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, std::vector<EventTriggerType>& eventTriggerTypeList) const = 0;
94 
98  virtual uint32 GetNumDynamicEvents () const = 0;
99 
104  virtual EventTriggerType GetNthDynamicEvent (uint32 which) const = 0;
105 
110  virtual uint32 GetNumGroupsInEvent (const EventTriggerType& trigger) const = 0;
111 
118  virtual bool GetNthGroupInEvent (const EventTriggerType& trigger, uint32 which, IDynamicEventTimingMgr::DynamicTargetList& itemList) const = 0;
119 
126  virtual uint32 GetNthGroupNumPlaysInEvent (const EventTriggerType& trigger, uint32 which) const = 0;
127 
134  virtual bool SetNthGroupNumPlaysInEvent (const EventTriggerType& trigger, uint32 which, uint32 newNumPlays) = 0;
135 
142  virtual bool GetNthGroupPlaysLoopInEvent (const EventTriggerType& trigger, uint32 which) const = 0;
143 
150  virtual bool SetNthGroupPlaysLoopInEvent (const EventTriggerType& trigger, uint32 which, bool playsLoop) = 0;
151 
159  virtual bool UnlinkNthGroupInEvent (const EventTriggerType& trigger, uint32 which) = 0;
160 
168  virtual bool MoveNthGroupInEvent (const EventTriggerType& trigger, uint32 which, int32 newGroup = -1) = 0;
169 
178  virtual bool MoveNthGroupToInEventAt (const EventTriggerType& trigger, uint32 which, uint32 newGroup, int32 atPosition = -1) = 0;
179 
186  virtual bool AddTargetInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget) = 0;
187 
194  virtual bool RemoveTargetInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, uint32 whichGroup) = 0;
195 
201  virtual bool RemoveTargetInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget) = 0;
202 
207  virtual bool CanMoveTargetInEvent (const EventTriggerType& trigger) const = 0;
208 
216  virtual bool MoveTargetBeforeInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, uint32 oldGroup, uint32 beforeGroup) = 0;
217 
225  virtual bool MoveTargetAfterInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, uint32 oldGroup, uint32 afterGroup) = 0;
226 
236  virtual bool MoveTargetToInEventAt (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, uint32 oldGroup, uint32 atGroup, int32 at) = 0;
237 
245  virtual bool SetTargetDelayInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, uint32 which, const PMReal& delay) = 0;
246 
253  virtual PMReal GetTargetDelayInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, uint32 which) const = 0;
254 
262  virtual int32 FindTargetInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, uint32& position) const = 0;
263 
271  virtual bool UnlinkTargetInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetPtr& dynamicTarget, uint32 which) = 0;
272 
279  virtual bool GroupTargetsInEvent (const EventTriggerType& trigger, const IDynamicEventTimingMgr::DynamicTargetList& targetList, uint32 newGroup) = 0;
280 
285  virtual bool GetUnassignedTargets (std::vector<UID>& unassignedTargetList) const = 0;
286 
294  virtual bool ReassignEventForTargets (const EventTriggerType& trigger, const EventTriggerType& newTrigger, const IDynamicEventTimingMgr::DynamicTargetList& targetList) const = 0;
295 
296 };
297 
298 
299 
300 #endif // __IDynamicEventTimingSuite__
301