InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMovieAttributes.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: wtislar
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 __IMovieAttributes__
25 #define __IMovieAttributes__
26 
27 #include "IMediaAttributes.h"
28 #include "IPMUnknown.h"
29 #include "MovieID.h"
30 #include "PMRect.h"
31 #include "PMPoint.h"
32 #include "PMString.h"
33 
34 
35 // Predefined floating window positions:
36 
37 static const PMPoint kMovieWindowUpperLeft = PMPoint(0.05,0.05);
38 static const PMPoint kMovieWindowUpperMiddle = PMPoint(0.5,0.05);
39 static const PMPoint kMovieWindowUpperRight = PMPoint(0.95,0.05);
40 static const PMPoint kMovieWindowCenterLeft = PMPoint(0.05,0.5);
41 static const PMPoint kMovieWindowCenter = PMPoint(0.5,0.5);
42 static const PMPoint kMovieWindowCenterRight = PMPoint(0.95,0.5);
43 static const PMPoint kMovieWindowLowerLeft = PMPoint(0.05,0.95);
44 static const PMPoint kMovieWindowLowerMiddle = PMPoint(0.5,0.95);
45 static const PMPoint kMovieWindowLowerRight = PMPoint(0.95,0.95);
46 
47 
53 {
54 public:
55 
56  enum { kDefaultIID = IID_IMOVIEATTRIBUTES };
57 
58 
60  enum PlayMode
61  {
63  eOnce = 0,
65  eOpen = 1,
67  eRepeat = 2
68  };
69 
72  {
73  eOneFifth = 9,
74  eOneForth = 10,
75  eOneHalf = 11,
76  eFull = 12,
77  e2X = 13,
78  e3X = 14,
79  e4X = 15,
80  eMax = 16
81  };
82 
83  enum // constants
84  {
85  kNumberOfPlayModes = 3,
86  kNumberOfFWScaleOptions = 8
87  };
88 
89 
95  virtual const PMRect GetBoundingBox() = 0;
96 
100  virtual bool16 ShowControls() const = 0;
101 
105  virtual PlayMode GetPlayMode() const = 0;
106 
110  virtual FloatingWindowScale GetFloatingWindowScale() const = 0;
111 
115  virtual bool16 HasFloatingWindow() const = 0;
116 
120  virtual const PMPoint GetFloatingWindowPosition() = 0;
121 
125  virtual void SetFloatingWindowPosition( const PMPoint & p ) = 0;
126 
130  virtual void SetFloatingWindowScale( FloatingWindowScale s ) = 0;
131 
136  virtual void SetShowControls( bool16 b ) = 0;
137 
142  virtual void SetHasFloatingWindow( bool16 b ) = 0;
143 
147  virtual void SetPlayMode( PlayMode m ) = 0;
148 
149 public:
150 
155  {
157  enShowControls = kMoviePrefix + 0, // flag
159  enPlayMode = kMoviePrefix + 1, // int16
161  enFloatingWindowScale = kMoviePrefix + 2, // int16
163  enHasFloatingWindow = kMoviePrefix + 3, // flag
165  enFloatingWindowPosition = kMoviePrefix + 4 // PMPoint
166  };
167 
168 }; // end IMovieAttributes interface
169 
170 
171 #endif // __IMovieAttributes__