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

Public Types | |
| enum | { kDefaultIID = IID_IMOTIONPRESETMANAGER } |
Public Member Functions | |
| virtual int32 | GetNumPresets () const =0 |
| virtual ErrorCode | GetNthPresetName (int32 index, PMString &pName) const =0 |
| virtual ErrorCode | GetNthPresetDescription (int32 index, PMString *pDesc) const =0 |
| virtual UID | GetNthPresetUID (int32 index) const =0 |
| virtual bool | IsDefaultPreset (int32 index) const =0 |
| virtual bool | CanEditNthPreset (int32 index) const =0 |
| virtual bool | CanDeleteNthPreset (int32 index) const =0 |
| virtual IMotionPresetData * | QueryNthPreset (int32 index) const =0 |
| virtual int32 | FindPreset (const PMString &pName, bool casesensitive=true) const =0 |
| virtual int32 | FindPreset (UID presetUID) const =0 |
| virtual ErrorCode | InsertPreset (IPMUnknown *iMotionPreset, int32 atPosition=-1)=0 |
| virtual ErrorCode | RemoveNthPreset (int32 index, bool deleteUID=true)=0 |
| virtual PMString | GetUniquePresetName (PMString &baseName, const PMString &appendString=PMString(), bool casesensitive=true) const =0 |
| virtual ErrorCode | SyncMotionPresetFileList ()=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 the main interface for InDesign animation presets. This interface sits on the application or document workspace boss.
| pure virtual |
Returns true if the nth preset can be deleted.
| index | the nth preset |
| pure virtual |
Returns true if the nth preset can be edited.
| index | the nth preset |
| pure virtual |
Searches the list for a preset with the specified name.
| name | IN The name of the style to look for. |
| casesensitive | is true if doing case sensitive preset name comparison. The default is to do case sensitive comparison. |
| pure virtual |
Searches the list for a preset with the specified UID.
| presetUID | IN The UID of the preset to look for. |
| pure virtual |
Get the description of the Nth preset.
| index | IN The index of the preset you're interested in. |
| pDesc | OUT Receives the description of the preset. |
| pure virtual |
Obtains the name of the Nth preset.
| index | IN The index of the preset you're interested in. |
| pName | OUT Receives the name of the preset. |
| pure virtual |
| pure virtual |
Returns the number of motion presets in the list.
| pure virtual |
Generate a unique preset name. If the base string is empty, the the new will look something like: Motion Preset 1, Motion Preset 2. If the base string contains an exisiting style name, then the new name will look something like: <original name>=""> copy 1, <original name>=""> copy 2.
| baseName | IN The base name for which you want a unique name. |
| appendString | IN the string to append before the name. If not specified, the default is " ". Translate the appendstring first. |
| casesensitive | is true if doing case sensitive preset name comparison. The default is to do case sensitive comparison. |
| pure virtual |
Adds a new preset with specified initial name. If the name is already in the list, the function fails.
| iMotionPreset | IN The new preset to insert |
| atPosition | IN The position to insert at. If atPosition is -1, the new preset is added at the end. |
| pure virtual |
Returns true if the nth preset is an InDesign default preset.
| index | the nth preset |
| pure virtual |
Returns IMotionPresetData for the nth preset.
| index | the nth preset |
| pure virtual |
Deletes a preset.
| index | IN The index of the preset to delete. |
| deleteUID | IN true if the UID representing the motion preset is to be deleted from the DB. |
| pure virtual |
Internal use only.