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

Public Types | |
| enum | { kDefaultIID = IID_IPAGETRANSITIONFACADE } |
Public Member Functions | |
| virtual bool | SpreadHasPageTransition (UIDRef const &spreadRef) const =0 |
| virtual bool | SpreadsHavePageTransition (UIDList const &spreadList) const =0 |
| virtual ErrorCode | GetSpreadPageTransitionDetails (UIDRef const &spreadRef, ClassID *classID=nil, uint32 *direction=nil, uint32 *duration=nil) const =0 |
| virtual ErrorCode | SetSpreadPageTransitionDetails (UIDList const &uidList, ClassID const &classID, uint32 direction, uint32 duration) const =0 |
| virtual bool | AllSpreadsHaveSamePageTransition (UIDList const &spreadList, ClassID &resultTransitionClass) const =0 |
| virtual ErrorCode | ApplyPageTransitionToAllSpreads (UIDList const &spreads, const ClassID &transitionClass, uint32 const &direction, uint32 const &speed) const =0 |
| virtual uint32 | GetPageTransitionCount () const =0 |
| virtual ClassID | GetNthPageTransitionClassID (int32 index) const =0 |
| virtual PMString | GetNthPageTransitionName (int32 index, bool translateName=false) const =0 |
| virtual IPageTransition * | QueryNthPageTransition (int32 index) const =0 |
| virtual IPageTransition * | QueryPageTransition (ClassID const &classID) const =0 |
| virtual int32 | FindPageTransitionIndex (ClassID const &classID) const =0 |
| virtual int32 | FindPageTransitionIndex (PMString const &name, bool useTranslatedNames=false) const =0 |
| virtual ClassID | GetPageTransitionClassID (PMString const &name, bool useTranslatedNames=false) const =0 |
| virtual PMString | GetPageTransitionName (ClassID const &classID, bool translateName=false) const =0 |
| virtual bool | ValidPageTransitionDirection (ClassID const &classID, const uint32 direction) 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 |
A high level API for dealing with page transitions. Each spread can have a page transition applied to it. The page transition is defined by a ClassID, direction and duration. Use this facade to determine which page transitions are available, and to Get and Set the page transition information on the spreads. Each page transition is its own boss (ClassID). The IPageTransition interface on the boss defines the type and name of the transition, allowable directions, and a default duration. The directions are enum based, defined in the IPageTransition header file. Allowable directions are specific for each transition. Duration is based on number of ticks, where there are 60 ticks per second. There are defines in IPageTransition.h for the default settings for fast, medium and slow duration times.
Please use the IPageTransitionFacade directly via the UtilsBoss if possible, see Utils.h: i.e. Utils<IPageTransitionFacade>()->GetPageTransitionCount( );
| pure virtual |
Check if all the given spreads have the same page transitions applied or not. If there is no spreads passed in, we will collect all the spreads in the document.
| spreadList | IN: The given spread list to be checked. |
| resultTransitionClass | OUT: the transition class that all spreads are applied. |
| pure virtual |
Apply the given page transition to all the spreads in the UIDList passed in. If the UIDList is empty, it will get the IDocument (based on the database used to create the UIDList), and apply the page transition to all the spreads in the document.
| spreads | IN: The given spreads to apply, if there is no spread, we will apply to all spreads in the document. |
| transitionClass | IN: The given ClassID of page transition tp apply |
| direction | IN: The given direction of the page transition to apply |
| speed | IN: The given speed of page transition to apply |
| pure virtual |
Retrieves index of page transition with given class ID in the list
| classId | IN: Class id of page transition |
| pure virtual |
Finds named page transition in list, returning its index if found
| name | IN: Name of page transition to find |
| useTranslatedNames | IN: Whether to translate page transition names before compare (default is false) |
| pure virtual |
Gets the ClassID of the nth page transition.
| index | IN: Index of the page transition to get |
| pure virtual |
Returns name for the nth page transition.
| index | IN: Index of the page transition to get |
| translateName | IN: Whether to translate the name returned (default is false) |
| pure virtual |
Finds the named page transition in list, returning its ClassID if found
| name | IN: Name of page transition to find |
| useTranslatedNames | IN: Whether to translate page transition names before compare (default is false) |
| pure virtual |
Get number of page transitions defined
| pure virtual |
Finds the named page transition in list, returning its ClassID if found
| classID | IN: ClassID of page transition to find |
| translateNames | IN: Whether to translate the page transition name before returning (default is false) |
| pure virtual |
Gets the page transition information for the spread referenced
| spreadRef | IN: The UIDRef of spread to get the page transition information |
| classID | OUT: The class ID of the transition, may be kInvalidClass if no transition applied |
| direction | OUT: The direction of the transition, as defined in IPageTransition |
| duration | OUT: The duration of the transition (in ticks - 60 ticks per second) |
| pure virtual |
Instantiates nth page transition
| index | IN: Index of the page transition to instantiate |
| pure virtual |
Instantiates page transition based on class ID
| classId | IN: class ID of the page transition to instantiate |
| pure virtual |
Sets the page transition information for the spreads included in the given UIDList
| uidList | IN: The UIDList of spreads to set the page transition |
| classID | IN: The class ID of the transition, may be kInvalidClass if no transition applied |
| direction | IN: The direction of the transition |
| duration | IN: The duration of the transition (in ticks - 60 ticks per second) |
| pure virtual |
Determine if the given spread has a page transition defined
| spreadRef | IN: The UIDRef of spread to look for the page transition |
| pure virtual |
Determine if the given spread list has a page transition defined or not. As long as there is one spread has page transition, we return true
| spreadList | IN: The given spread list to check the page transition |
| pure virtual |
Determine if the given direction is valid for the page transition with given class ID in the list
| classId | IN: Class id of page transition |
| uint32 | IN: Direction of the page transition to check, as defined in IPageTransition |