InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDynamicTransformData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Shawn Sheridan
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
20 // with the terms of the Adobe license agreement accompanying it. If you have received
21 // this file from a source other than Adobe, then your use, modification, or
22 // distribution of it requires the prior written permission of Adobe.
23 //
24 //
25 // Note:
26 //
27 //========================================================================================
28 
29 #ifndef __IDynamicTransformData__
30 #define __IDynamicTransformData__
31 
32 #include "IPMUnknown.h"
33 #include "LayoutUIID.h"
34 
35 class PMMatrix;
36 class PMPolygon4;
37 class PMPoint;
38 
40 {
41 public:
42  enum { kDefaultIID = IID_IDYNAMICTRANSFORMDATA};
43 
44 
45  virtual void SetDynamicTransformMatrix( const PMMatrix& m) = 0;
46  virtual ErrorCode GetDynamicTransformMatrix( PMMatrix* m) const = 0; //returns kSuccess if matrix was set
47 
48  //note that b[0] is left top, b[1] is right top, b[2] is right bottom and b[3] is left bottom
49  virtual void SetDynamicTransformBounds( const PMPolygon4& b) = 0;
50  virtual ErrorCode GetDynamicTransformBounds( PMPolygon4* b) const = 0; //returns kSuccess if bounds were set
51 
52  virtual void SetDynamicTransformLocation( const PMPoint& p) = 0;
53  virtual ErrorCode GetDynamicTransformLocation( PMPoint* p) const = 0; //returns kSuccess if location was set
54 
55 };
56 
57 
58 
59 
60 #endif // __IDynamicTransformData__
61