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

Public Types | |
| enum | { kDefaultIID = IID_IANIMATIONFACADE } |
Public Member Functions | |
| virtual bool | PageItemHasAnimation (const UIDRef &pageItemRef) const =0 |
| virtual bool | PageItemHasCustomAnimationSettings (const UIDRef &pageItemRef) const =0 |
| virtual bool | PageItemAndChildrenHaveAnimation (const UIDRef &pageItemRef, UIDList *pAnimationList=nil) const =0 |
| virtual ErrorCode | SetPageItemMotionPreset (const UIDRef &pageItemRef, const UIDRef &presetRef, bool skipTargeting=false, bool doForceCreateNew=false)=0 |
| virtual UIDRef | GetPageItemMotionPreset (const UIDRef &pageItemRef) const =0 |
| virtual PMReal | GetPageItemAnimationDuration (const UIDRef &pageItemRef) const =0 |
| virtual bool | SetPageItemAnimationDuration (const UIDRef &pageItemRef, const PMReal &duration)=0 |
| virtual PMPoint | GetPageItemAnimationTransformOffsetPoint (const UIDRef &pageItemRef) const =0 |
| virtual bool | SetPageItemAnimationTransformOffsetPoint (const UIDRef &pageItemRef, const PMPoint &offsetPoint)=0 |
| virtual AnimationOptions | GetPageItemAnimationOption (const UIDRef &pageItemRef) const =0 |
| virtual bool | SetPageItemAnimationOption (const UIDRef &pageItemRef, const AnimationOptions &animateOption)=0 |
| virtual bool | GetPageItemAnimationHideInitially (const UIDRef &pageItemRef) const =0 |
| virtual bool | SetPageItemAnimationHideInitially (const UIDRef &pageItemRef, bool setHiddenTillAnimated)=0 |
| virtual bool | GetPageItemAnimationHideAfter (const UIDRef &pageItemRef) const =0 |
| virtual bool | SetPageItemAnimationHideAfter (const UIDRef &pageItemRef, bool setHiddenAfterAnimated)=0 |
| virtual uint32 | GetPageItemAnimationPlays (const UIDRef &pageItemRef) const =0 |
| virtual bool | SetPageItemAnimationPlays (const UIDRef &pageItemRef, uint32 numPlays)=0 |
| virtual bool | GetPageItemAnimationPlaysLoop (const UIDRef &pageItemRef) const =0 |
| virtual bool | SetPageItemAnimationPlaysLoop (const UIDRef &pageItemRef, bool setToLoop)=0 |
| virtual AnimationEaseType | GetPageItemAnimationSimpleEaseType (const UIDRef &pageItemRef) const =0 |
| virtual bool | SetPageItemAnimationSimpleEaseType (const UIDRef &pageItemRef, const AnimationEaseType &easeType)=0 |
| virtual bool | GetPageItemAnimationMotionPath (const UIDRef &pageItemRef, AnimationPathDataList &path) const =0 |
| virtual bool | SetPageItemAnimationMotionPath (const UIDRef &pageItemRef, const AnimationPathDataList &path)=0 |
| virtual bool | GetPageItemAnimationMotionPath (const UIDRef &pageItemRef, PMPathPointList &path) const =0 |
| virtual bool | SetPageItemAnimationMotionPath (const UIDRef &pageItemRef, const PMPathPointList &path)=0 |
| virtual bool | SetPageItemAnimationMotionPath (const UIDRef &pageItemRef, const UIDRef &sourcePageItemRef, bool bDeleteItem)=0 |
| virtual UIDRef | CreateAnimationMotionPathPageItem (const UIDRef &pageItemRef)=0 |
| virtual ErrorCode | DeleteAnimationMotionPathPageItemData (IDocument *document, bool16 bDeleteItem)=0 |
| virtual bool | SyncPageItemWithMotionPath (const UIDRef &pageItemRef, const UIDRef &motionPathPageItemRef)=0 |
| virtual bool | IsPageItemMotionPathPageItem (const UIDRef &pageItemRef) const =0 |
| virtual uint32 | GetPageItemAnimationOpacityKeyFrameCount (const UIDRef &pageItemRef) const =0 |
| virtual bool | GetPageItemAnimationOpacityKeyFrame (const UIDRef &pageItemRef, int32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetPageItemAnimationOpacityValueAtKeyFrame (const UIDRef &pageItemRef, uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetPageItemAnimationOpacityKeyFrame (const UIDRef &pageItemRef, uint32 keyframe, const PMReal &value=0)=0 |
| virtual bool | RemovePageItemAnimationOpacityKeyFrame (const UIDRef &pageItemRef, uint32 keyframe)=0 |
| virtual bool | RemovePageItemAnimationOpacityAllKeyFrames (const UIDRef &pageItemRef)=0 |
| virtual uint32 | GetPageItemAnimationRotationKeyFrameCount (const UIDRef &pageItemRef) const =0 |
| virtual bool | GetPageItemAnimationRotationKeyFrame (const UIDRef &pageItemRef, int32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetPageItemAnimationRotationValueAtKeyFrame (const UIDRef &pageItemRef, uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetPageItemAnimationRotationKeyFrame (const UIDRef &pageItemRef, uint32 keyframe, const PMReal &value=0)=0 |
| virtual bool | RemovePageItemAnimationRotationKeyFrame (const UIDRef &pageItemRef, uint32 keyframe)=0 |
| virtual bool | RemovePageItemAnimationRotationAllKeyFrames (const UIDRef &pageItemRef)=0 |
| virtual uint32 | GetPageItemAnimationScaleXKeyFrameCount (const UIDRef &pageItemRef) const =0 |
| virtual bool | GetPageItemAnimationScaleXKeyFrame (const UIDRef &pageItemRef, int32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetPageItemAnimationScaleXValueAtKeyFrame (const UIDRef &pageItemRef, uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetPageItemAnimationScaleXKeyFrame (const UIDRef &pageItemRef, uint32 keyframe, const PMReal &value=0)=0 |
| virtual bool | RemovePageItemAnimationScaleXKeyFrame (const UIDRef &pageItemRef, uint32 keyframe)=0 |
| virtual bool | RemovePageItemAnimationScaleXAllKeyFrames (const UIDRef &pageItemRef)=0 |
| virtual uint32 | GetPageItemAnimationScaleYKeyFrameCount (const UIDRef &pageItemRef) const =0 |
| virtual bool | GetPageItemAnimationScaleYKeyFrame (const UIDRef &pageItemRef, int32 which, uint32 &keyframe, PMReal &value) const =0 |
| virtual bool | GetPageItemAnimationScaleYValueAtKeyFrame (const UIDRef &pageItemRef, uint32 keyframe, PMReal &value) const =0 |
| virtual bool | SetPageItemAnimationScaleYKeyFrame (const UIDRef &pageItemRef, uint32 keyframe, const PMReal &value=0)=0 |
| virtual bool | RemovePageItemAnimationScaleYKeyFrame (const UIDRef &pageItemRef, uint32 keyframe)=0 |
| virtual bool | RemovePageItemAnimationScaleYAllKeyFrames (const UIDRef &pageItemRef)=0 |
| virtual ErrorCode | UpdatePageItemAnimationData (const UIDRef &pageItemRef, const IAnimationData *iNewAnimaData, const uint32 &dataSetFlags, bool skipTargeting=false)=0 |
| virtual ErrorCode | AddPageItemAnimation (const UIDRef &pageItemRef, const IAnimationData *iNewAnimaData, const uint32 &dataSetFlags, bool skipTargeting=false)=0 |
| virtual ErrorCode | RemovePageItemAnimation (const UIDRef &pageItemRef)=0 |
| virtual ErrorCode | RemovePageItemAndChildrenAnimation (const UIDRef &pageItemRef)=0 |
| virtual ErrorCode | SavePageItemAnimation (const UIDRef &pageItemRef, const PMString &newPresetName, UIDRef &newCustomRef, bool doApply=true)=0 |
| virtual ErrorCode | SaveACopyPageItemAnimation (const UIDRef &pageItemRef, const IDFile &newPresetFile)=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 facade provides services for obtaining and modifying the animation setting for the page items. For CS5, only one animation per page item is supported. The main data interface is IAnimationAttributeData.
The animation settings include the followings:
This facade doesn't attempt to cover everything related to animation. For services related to motion preset, there's a IMotionFacade.
| pure virtual |
Add a new animation to the page item.
| pageItemRef | is the page item. |
| iNewAnimaData | is the new animation data to add. |
| flags | is the data flags indicating set to set. |
| skipTargeting | is true if not to add this object to its default triggering event. |
| pure virtual |
Given an interface for an item with a motion path, create a new page item from the motion path points and select it.
| pageItemRef | is the UIDRef of the page item to created a motion path item from. |
| pure virtual |
Given an interface for an item with a motion path (uses IID_ISPLINESTATEMOTIONPAGEITEMDATA), delete the page item (optionally) and remove data reference for it from the document.
| IDocument,the | document to delete the motion page item from. |
| bDeleteItem,kTrue | to delete the motion path item. kFalse will just remove the reference for it from the document (IID_ISPLINESTATEMOTIONPAGEITEMDATA) |
| pure virtual |
Gets animation duration from the page item.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Returns true if page item is hidden after animated.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Returns true if page item is hidden until animated.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Gets animation motion path from the page item.
| pageItemRef | is the UIDRef of the page item. |
| path | is the motion path. |
| pure virtual |
Gets animation motion path point list without the keyframes from the page item.
| pageItemRef | is the UIDRef of the page item. |
| path | is the motion path. |
| pure virtual |
Gets animation property nth keyframe and value from the page item.
| pageItemRef | is the UIDRef of the page item. |
| which | is the nth keyframe. |
| keyframe | is the keyframe returned. |
| value | is the value at keyframe. |
| pure virtual |
Gets number of keyframes for the animation's property.
| pageItemRef | is the UIDRef of the page item. |
| propType | is the property to get |
| pure virtual |
Gets animation property value at the specified keyframe from the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets the animation option from the page item.
| pure virtual |
Gets number of times animation plays from the page item.
| pure virtual |
| pure virtual |
Gets animation property nth keyframe and value from the page item.
| pageItemRef | is the UIDRef of the page item. |
| which | is the nth keyframe. |
| keyframe | is the keyframe returned. |
| value | is the value at keyframe. |
| pure virtual |
Gets number of keyframes for the animation's property.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Gets animation property value at the specified keyframe from the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets animation property nth keyframe and value from the page item.
| pageItemRef | is the UIDRef of the page item. |
| which | is the nth keyframe. |
| keyframe | is the keyframe returned. |
| value | is the value at keyframe. |
| pure virtual |
Gets number of keyframes for the animation's property.
| propType | is the property to get |
| pure virtual |
Gets animation property value at the specified keyframe from the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets animation property nth keyframe and value from the page item.
| pageItemRef | is the UIDRef of the page item. |
| which | is the nth keyframe. |
| keyframe | is the keyframe returned. |
| value | is the value at keyframe. |
| pure virtual |
Gets number of keyframes for the animation's property.
| pageItemRef | is the UIDRef of the page item to get. |
| pure virtual |
Gets animation property value at the specified keyframe from the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe. |
| value | is the value at keyframe. |
| pure virtual |
Gets the simple animation ease type from the page item.
| pure virtual |
Gets animation transform offset point.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Gets the motion preset applied to page item's animation.
| pageItemRef | is the page item. |
| pure virtual |
Return true if page item is a special animation motion path page item. This object is used to manimupate page item's motion path only and cannot be edited otherwise.
| pageItemRef | is the UIDRef of the animation motion path page item. |
| pure virtual |
Return true if this page item or one of its children has animation.
| pageItemRef | is the page item. |
| pAnimationList,a | list of animation items is returned in pAnimationList if it is not nil. |
| pure virtual |
Return true if this page item has animation.
| pageItemRef | is the page item. |
| pure virtual |
Return true if this page item has custom animation settings.
| pageItemRef | is the page item. |
| pure virtual |
Remove page item's and its children's animation.
| pageItemRef | is the page item. |
| pure virtual |
Remove page item's animation.
| pageItemRef | is the page item. |
| pure virtual |
Removes all animation property keyframes from the page item.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Removes animation property value at the specified keyframe from the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe to remove. |
| pure virtual |
Removes all animation property keyframes from the page item.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Removes animation property value at the specified keyframe ifrom the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe to remove. |
| pure virtual |
Removes all animation property keyframes from the page item.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Removes animation property value at the specified keyframe from the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe to remove. |
| pure virtual |
Removes all animation property keyframes from the page item.
| pageItemRef | is the UIDRef of the page item. |
| pure virtual |
Removes animation property value at the specified keyframe from the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe to remove. |
| pure virtual |
Save page item's animation as a copy of motion preset file.
| pageItemRef | is the page item. |
| newPresetFile | is the new preset file name. |
| pure virtual |
Save page item's animation as custom preset.
| pageItemRef | is the page item. |
| newPresetName | is the new custom preset name. |
| newCustomRef | contains the new custom preset UIDRef. |
| doApply | if true will apply the new custom preset to the page item. |
| pure virtual |
Sets animation duration for the page item..
| pageItemRef | is the UIDRef of the page item. |
| duration | is the new duration to apply to the selection. |
| pure virtual |
Sets the page item's run-time visibility to be hidden after animated.
| pageItemRef | is the UIDRef of the page item. |
| setHiddenAfterAnimated | is true if to set object to be hidden after animated. |
| pure virtual |
Sets the page item's run-time visibility to be hidden until animated.
| pageItemRef | is the UIDRef of the page item. |
| setHiddenTillAnimated | is true if to set object to be hidden till animated. |
| pure virtual |
Sets animation path for the page item.
| pageItemRef | is the UIDRef of the page item. |
| path | is the animation path to apply. |
| pure virtual |
Sets animation path for the page item.
| pageItemRef | is the UIDRef of the page item. |
| path | is the animation path to apply. Path is applied evenly over the duration. If the page item has an old path, it is removed first. |
| pure virtual |
Sets animation path for the page item from another page item.
| pageItemRef | is the UIDRef of the page item to apply to. |
| sourcePageItemRef | is the UIDRef of the source page item from which to extract the 0th path. Then sourcePageItemRef will be deleted if specified, see next parameter. |
| bDeleteItem | if kTrue the sourcePageItemRef is deleted, if kFalse it is not. |
| pure virtual |
Sets animation property value at the specified keyframe for the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe. |
| value | is the value at keyframe to set. |
| pure virtual |
Sets the animation option for the page item.
| pageItemRef | is the UIDRef of the page item. |
| animateOption | the animation option to set. |
| pure virtual |
Sets number of times animation plays for the page item.
| pageItemRef | is the UIDRef of the page item. |
| numPlays | the number to time the animation should play. |
| pure virtual |
Sets page item animation to loop.
| pageItemRef | is the UIDRef of the page item. |
| setToLooop | is true if animation is set to loop. |
| pure virtual |
Sets animation property value at the specified keyframe for the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe. |
| value | is the value at keyframe to set. |
| pure virtual |
Sets animation property value at the specified keyframe for the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe. |
| value | is the value at keyframe to set. |
| pure virtual |
Sets animation property value at the specified keyframe for the page item.
| pageItemRef | is the UIDRef of the page item. |
| keyframe | is the keyframe. |
| value | is the value at keyframe to set. |
| pure virtual |
Sets the simple animation ease type for the page item.
| pageItemRef | is the UIDRef of the page item. |
| easeType | the simple ease type to set. |
| pure virtual |
Sets the animation transform offset point.
| pageItemRef | is the UIDRef of the page item. |
| animation | transform offset point to apply to the selection. |
| pure virtual |
Apply a motion preset to page item's animation.
| pageItemRef | is the page item. |
| presetRef | is the motion preset to apply. |
| skipTargeting | is true if not to add this object to its default triggering event. |
| doForceCreateNew | is true if to create new preset in the document even if a preset with the same name one already exist. The default is false. |
| pure virtual |
Given a page item ref and a motion path page item ref, translate the page item (pageItemRef) to be aligned with the motion path page item. Used after the motion path item is edited (e.g. moved, resized, path points altered) so the page item is "synced" up to the upper left of the motion path page item (taking into account the offset point).
| pageItemRef | is the UIDRef of the page item with animation applied. |
| motionPathPageItemRef | is the UIDRef of the motion path. |
| pure virtual |
Update page item's which animation data from the which animation data of iNewAnimaData.
| pageItemRef | is the page item. |
| iNewAnimaData | is the new animation data. |
| flags | is the data flags indicating set to set. |
| skipTargeting | is true if not to add this object to its default triggering event. |