![]() | InDesign SDK 20.5 |
#include <IDynamicEventTimingMgr.h>

Classes | |
| class | DynamicTarget |
Public Types | |
| enum | { kDefaultIID = IID_IDYNAMICEVENTTIMINGMGR } |
| enum | { kInvalidTimingPosition = 0xffffffff } |
| typedef ScriptData | TargetDataType |
| typedef boost::intrusive_ptr < DynamicTarget > | DynamicTargetPtr |
| typedef std::vector < DynamicTargetPtr > | DynamicTargetList |
Public Member Functions | |
| virtual DynamicTargetPtr | CreateDynamicTarget (UID targetUID, uint32 role=kTimingTargetRoleDefault, uint32 action=kTimingTargetVerbPlay)=0 |
| virtual DynamicTargetPtr | CreateDynamicTarget (const DynamicTargetPtr &target)=0 |
| virtual int32 | FindDynamicTarget (const DynamicTargetList &targetlist, DynamicTargetPtr &target) const =0 |
| virtual int32 | FindDynamicTarget (const DynamicTargetList &targetList, UID targetUID, DynamicTargetPtr &target) const =0 |
| virtual uint32 | GetNumDynamicEvents () const =0 |
| virtual bool | AddDynamicEvent (const EventTriggerType &newEventTrigger)=0 |
| virtual bool | RemoveDynamicEvent (const EventTriggerType &whichTrigger)=0 |
| virtual EventTriggerType | GetNthDynamicEvent (uint32 which) const =0 |
| virtual bool | RemoveNthGroup (const EventTriggerType &whichTrigger, uint32 which)=0 |
| virtual bool | MoveNthGroup (const EventTriggerType &whichTrigger, uint32 which, int32 newPosition)=0 |
| virtual bool | GetNthGroupNumPlays (const EventTriggerType &whichTrigger, uint32 which, uint32 &numPlays) const =0 |
| virtual bool | SetNthGroupNumPlays (const EventTriggerType &whichTrigger, uint32 which, uint32 newNumPlays)=0 |
| virtual bool | GetNthGroupPlaysLoop (const EventTriggerType &whichTrigger, uint32 which, bool &playsLoop) const =0 |
| virtual bool | SetNthGroupPlaysLoop (const EventTriggerType &whichTrigger, uint32 which, bool playsLoop)=0 |
| virtual uint32 | GetNumGroups (const EventTriggerType &whichTrigger) const =0 |
| virtual bool | GetNthGroupItems (const EventTriggerType &whichTrigger, uint32 whichGroup, DynamicTargetList &itemList) const =0 |
| virtual bool | AddTargetInNthGroup (const EventTriggerType &whichTrigger, const DynamicTargetPtr &targetItem, int32 atGroup=-1)=0 |
| virtual int32 | FindTargetInEvent (const EventTriggerType &whichTrigger, const DynamicTargetPtr &targetItem, DynamicTargetList &itemList, uint32 *pItemPosition=nil) const =0 |
| virtual bool | RemoveTargetInNthGroup (const EventTriggerType &whichTrigger, const DynamicTargetPtr &targetItem, uint32 which)=0 |
| virtual bool | ReplaceTargetInNthGroup (const EventTriggerType &whichTrigger, const DynamicTargetPtr &targetItemToReplace, const DynamicTargetPtr &newTargetItem, uint32 which)=0 |
| virtual bool | ReplaceNthTargetInNthGroup (const EventTriggerType &whichTrigger, uint32 which, uint32 whichTarget, const DynamicTargetPtr &newTargetItem)=0 |
| virtual bool | RemoveTargetInEvent (const EventTriggerType &trigger, const DynamicTargetPtr &targetItem)=0 |
| virtual bool | RemoveTargetForAllEvents (UID itemUID)=0 |
| virtual bool | MoveTargetBeforeNthGroup (const EventTriggerType &whichTrigger, const DynamicTargetPtr &targetItem, uint32 oldGroup, uint32 beforeGroup)=0 |
| virtual bool | MoveTargetAfterNthGroup (const EventTriggerType &whichTrigger, const DynamicTargetPtr &targetItem, uint32 oldPosition, uint32 afterGroup)=0 |
| virtual bool | MoveTargetIntoNthGroupAt (const EventTriggerType &whichTrigger, const DynamicTargetPtr &targetItem, uint32 oldGroup, uint32 atGroup, int32 atPosition=-1)=0 |
| virtual bool | MoveNthTargetIntoNthGroupAt (const EventTriggerType &whichTrigger, uint32 oldGroup, uint32 whichTarget, uint32 atGroup, int32 atPosition=-1)=0 |
| virtual bool | SetTargetDelayInNthGroup (const EventTriggerType &trigger, const DynamicTargetPtr &targetItem, uint32 whichGroup, const PMReal &delay)=0 |
| virtual bool | SetNthTargetDelayInNthGroup (const EventTriggerType &trigger, uint32 whichGroup, uint32 whichTarget, const PMReal &delay)=0 |
| virtual bool | GetTargetDelayInNthGroup (const EventTriggerType &trigger, const DynamicTargetPtr &targetItem, uint32 whichGroup, PMReal &delay) const =0 |
| virtual bool | SetTargetDataInNthGroup (const EventTriggerType &trigger, const DynamicTargetPtr &targetItem, uint32 whichGroup)=0 |
| virtual bool | SetNthTargetDataInNthGroup (const EventTriggerType &trigger, uint32 whichGroup, uint32 whichTarget, const DynamicTargetPtr &newTargetData)=0 |
| virtual IDynamicEventTimingMgr::DynamicTargetPtr | GetTargetDataInNthGroup (const EventTriggerType &trigger, const DynamicTargetPtr &targetItem, uint32 whichGroup) const =0 |
| virtual IDynamicEventTimingMgr::DynamicTargetPtr | GetNthTargetDataInNthGroup (const EventTriggerType &trigger, uint32 whichGroup, uint32 whichTarget) const =0 |
| virtual void | InvalidateTargets (const UIDList &targetList)=0 |
| virtual EventTriggerType | ValidateTriggerType (const EventTriggerType &whichTrigger) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This is a persistent data interface for the timing lists. Timing list is a list of targets (page items) triggered by an animation, page event, or button action event. Objects that can be targets of event triggers are media items (movies, sounds, SWFs), and page item with animation. Objects that can trigger other objects are spreads, page item with animation, and buttons. There can be one or more timing lists per triggering object. Spreads has both page load and page click events. Animation can be self clicked or self rollover only. They must be mutually exclusive, however. Buttons can have object click, release, object rollover, and rolloff.
Items in the timing list can be re-ordered. One or more items can be grouped to play at the same time. Each item in the group can have its own time delay. Time delay is cumulative. The first target delay within a group specified the time delay from the time the group starts to play. The next target within the same group is delayed by cumulative delay for the group so far plus its own. If there are no delay specified, then the items in the group played simultaneously.
On a high-level, the data in the timing manager has this relationship:
For each triggering event: Group 0, (target x, target x delay) Group 1, (target y, target y delay) ... Group n, (target 1, target 1 delay), (target 2, target 2 delay), ... (target n, target n delay) ... Group z ...
Additionally, there're group-level play attributes. Each group can be set to play in loop or play one or more times. Group level play attributes will trump individual animation's loop but will not affect individual multiple plays. For single target group, the group-level play attributes are ignored.
Data definition for timing target.
The target for the timing list is a simple ref-counted virtual c++ object, DynamicTarget. The attributes which represents a timing target are the item's UID, which role does this item represents, and what actions. In addition, it may also contain one or more pieces of data such as video navigation points, whether to play an animation in reverse, and others. These data are represented by an ID, and a data values.
To create a dynamic target, use one of the two CreateDynamicTarget method provided. To find a dynamic target in a list of dynamic targets, use FindDynamicTarget. It considers that two dynamic targets are equivalent if at least, its UID, role, and action are equal. They are completely equals if UID, role, action, and all data values are equal.type definition for dynamic target data values.
| pure virtual |
Add the specified event trigger
| newEventTrigger | is the event trigger to add. |
| pure virtual |
Add the target in the specified event triggered timing list. If atGroup = -1, add target at the end of the list; otherwise add target in the nth group.
| whichTrigger | is the event trigger. |
| targetItem | is the dynamic target item to add to this triggering event. |
| atGroup | is the group (position) to add the item into. Default is -1 which mean to add the item as a new group at the end. |
| pure virtual |
Construct a DynamicTargetPtr based on the specified UID, role, and action.
| targetUID | is the targetUID. For button targets, this UID is action UID. |
| role | is the target's role. |
| action | is the target's action. |
| pure virtual |
Construct a DynamicTargetPtr based on another DynamicTarget object.
| target | is the source DynamicTarget object. |
| pure virtual |
Find the specified dynamic target in the list. The target is considered equal if target's UID, role, and action are equal.
| targetlist | is the list of DynamicTarget objects to search. |
| target | is the DynamicTarget object to find. If found, the content of the dynamic target from the list is copied. |
| pure virtual |
Find the first specified dynamic target UID in the list. The target UID is the actual target's UID.
| targetlist | is the list of DynamicTarget objects to search. |
| targetUID | is the target UID to find. If found, the content of that dynamic target from the list is copied. |
| pure virtual |
Find the target in the specified event triggered timing list. This assumes targets are unique in the list.
| whichTrigger | is the event trigger. |
| targetItem | is the dynamic target item to find in this triggering event. |
| itemList | is the entire item list at this position. |
| pItemPosition,if | not nil, contains the position of the itemUID in the itemList. |
| pure virtual |
Returns the nth event trigger
| which | is the nth event trigger to get. |
| pure virtual |
Get the dynamic items for the specified timing position and trigger event.
| eventTrigger | is the event trigger interested. |
| whichGroup | is the timing position. |
| itemList | contains a list of items for this position and trigger event. |
| pure virtual |
Gets the specified event trigger's nth item's number of plays.
| whichTrigger | is the event trigger to remove. |
| which | is the group item. |
| numPlays | is the number of times this group plays. |
| pure virtual |
Gets whether or not the specified event trigger's nth item is looping.
| whichTrigger | is the event trigger to remove. |
| which | is the group item. |
| playsLoop | is true if group loops. |
| pure virtual |
Get target data for nth target item of nth group in the specified trigger.
| newEventTrigger | is the event trigger. |
| whichGroup | is the group position in the timing list for this target. |
| whichTarget | is the position in nth group for this target. |
| pure virtual |
Methods for events.Returns the number of event triggers.
| pure virtual |
Get the number of timing items for the specified trigger event.
| pure virtual |
Get target data for target item of the nth group in the specified trigger.
| newEventTrigger | is the event trigger. |
| targetItem | is the targe item to get. |
| whichGroup | is the position in the timing list for this target. |
| pure virtual |
Get the dynamic target data at nth group in the specified trigger.
| newEventTrigger | is the event trigger. |
| targetItem | is the targe item to get. |
| whichGroup | is the position in the timing list for this target. |
| delay | is the time delay to get for this target item in the timing list. |
| pure virtual |
Invalidate specified targets. This can occur if targets were deleted, moved, or converted, etc.
| targetList | is the target list to invalidate. |
| pure virtual |
move the specified event trigger's nth item to a new position
| whichTrigger | is the event trigger to remove. |
| which | is the position to move. |
| newPosition | is the new position to move to. If newPosition is -1, then move to the end of the list. |
| pure virtual |
Move item's timing position from old position to the new position for this trigger.
| whichTrigger | is the event trigger to operate on. |
| oldGroup | is the item's old group. |
| whichTarget | is the nth item to move. |
| atGroup | is the new group to move the item to. |
| atPosition | is the position within the new group to move the item to. If atPosition = -1, then move the item to the end of the gorup. |
| pure virtual |
Move item's timing position from old position to a position after the specified position for this trigger.
| targetItem | is the item to move. |
| whichTrigger | is the event trigger to operate on. |
| oldGroup | is the item's old group. |
| afterGroup | is the position to move the item after. |
| pure virtual |
Move item's timing position from old position to a position before the specified position for this trigger.
| whichTrigger | is the event trigger to operate on. |
| targetItem | is the item to move. |
| oldGroup | is the item's old group. |
| beforeGroup | is the position to move the item before. |
| pure virtual |
Move item's timing position from old position to the specified for this trigger.
| whichTrigger | is the event trigger to operate on. |
| targetItem | is the item to move. |
| oldGroup | is the item's old group. |
| atGroup | is the group to move the item to. |
| atPosition | is the position within the group to move the item to. If atPosition = -1, then move the item to the end of the gorup. |
| pure virtual |
Remove the specified event trigger
| whichTrigger | is the event trigger to remove. |
| pure virtual |
Methods for group items in a event-based timing list.Remove the specified event trigger's nth item
| whichTrigger | is the event trigger to remove. |
| which | is the position to remove. |
| pure virtual |
Remove the item from all event trigger timing lists. For the spread, we are only tracking items that are triggered by page load or page click. Targets will be removed Permanently from all timing lists.
| itemUID | is the item that may be the target for one or more triggering events. |
| pure virtual |
Remove all instances of item from the owner's dynamic event.
| trigger | is the trigger event to remove item from. |
| targetItem | is the item to remove. |
| pure virtual |
Remove target at this position from the specified event trigger.
| whichTrigger | is the event trigger to remove. |
| targetItem | is the item that is the target for this triggering event. |
| which | is the position from which to remove the item. |
| pure virtual |
Replace the target at the nth position in the specified event trigger with the new one.
| whichTrigger | is the event trigger to remove. |
| which | is the nth group in which to replace the item. |
| whichTarget | is the nth target in the nth group to replace the item. |
| newTargetItem | is the new dynamic target item to replace with. |
| pure virtual |
Replace the target at this position from the specified event trigger with the new one.
| whichTrigger | is the event trigger to remove. |
| targetItemToReplace | is the item that is to be replaced. |
| newTargetItem | is the new dynamic target item to replace with. |
| which | is the nth group in which to replace the item. |
| pure virtual |
Gets the specified event trigger's nth item's number of plays.
| whichTrigger | is the event trigger to remove. |
| which | is the group item. |
| newNumPlays | is the new number of times this group should play. |
| pure virtual |
Sets whether or not the specified event trigger's nth item should loop.
| whichTrigger | is the event trigger to remove. |
| which | is the group item. |
| playsLoop | is true if group loops. |
| pure virtual |
Set dynamic target data for target item at the nth item in the specified trigger.
| whichTrigger | is the event trigger. |
| whichGroup | is the nth group in the timing list for this trigger. |
| whichTarget | is the nth targe item to set. |
| newTargetData | is the new data to set. |
| pure virtual |
Set time delay in second for nth target item of the nth group in the specified trigger.
| whichTrigger | is the event trigger. |
| whichGroup | is the nth group in the timing list for this target. |
| whichTarget | is the nth targe item to get. |
| delay | is the time delay to set for this item in the timing list. |
| pure virtual |
Set dynamic target data for target item at nth item in the specified trigger.
| whichTrigger | is the event trigger. |
| targetItem | is the targe item to set. |
| whichGroup | is the position in the timing list for this trigger. |
| pure virtual |
Set time delay in second for target item at nth item in the specified trigger.
| whichTrigger | is the event trigger. |
| targetItem | is the targe item to get. |
| whichGroup | is the position in the timing list for this target. |
| delay | is the time delay to set for this item in the timing list. |
| pure virtual |
Validate event trigger.
| whichTrigger | is the trigger to validate |