InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPageTransition.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: DBerggren
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 __IPageTransition_h__
25 #define __IPageTransition_h__
26 
27 #include "IPMUnknown.h"
28 #include "DynamicDocumentsID.h"
29 
49 {
50 public:
51  enum { kDefaultIID = IID_IPAGETRANSITION };
52 
58  {
59  kNA = 0, // Not Applicable
60 
61  kDown, // Top to Bottom
62  kLeft, // Left to Right
63  kLeftDown, // Top Right to Bottom Left
64  kLeftUp, // Bottom Right to Top Left
65  kRight, // Right to Left
66  kRightDown, // Top Left to Bottom Right
67  kRightUp, // Bottom Left to Top Right
68  kUp, // Bottom to Top
69 
70  kIn, // Inward
71  kOut, // Outward
72 
73  kHorizontal, // Horizontal
74  kVertical, // Vertical
75 
76  kHorizontalIn, // Horizontal Inward
77  kHorizontalOut, // Horizontal Outward
78  kVerticalIn, // Vertical Inward
79  kVerticalOut, // Vertical Outward
80  };
81 
86  static const uint32 kPageTransitionsSlowSpeedTime = 60; // 1 second * 60 = 60 ticks
87  static const uint32 kPageTransitionsMediumSpeedTime = 40; // 0.6666 second * 60 = 40 ticks
88  static const uint32 kPageTransitionsFastSpeedTime = 20; // 0.3333 second * 60 = 20 ticks
89  static const uint32 kDefaultDurationTime = kPageTransitionsMediumSpeedTime; // Use the medium speed time
90 
97  virtual PMString GetName(bool bTranslateName = false) const = 0;
98 
104  virtual uint32 GetDefaultDuration() const = 0;
105 
111  virtual uint32 GetDefaultDirection() const = 0;
112 
118  virtual uint32 GetNumberOfDirections() const = 0;
119 
125  virtual uint32 GetNthDirection(uint32 index) const = 0;
126 
132  virtual IDFile GetSWFStaticRepresentation() const = 0;
133 
141  virtual void GetSWFDynamicRepresentation(uint32 const &direction, uint32 const &duration, IDFile &localFile) const = 0;
142 
143 };
144 
145 //=============================================================================
146 
147 
148 #endif // __IPageTransition_h__
149 
150 // IPageTransition.h.