InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IReferencePointData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Richard Rodseth
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 __IReferencePointData__
25 #define __IReferencePointData__
26 
27 #include "LayoutUIID.h"
28 #include "PMTypes.h"
29 #include "PMReal.h"
30 #include "PMPoint.h"
31 #include "PMRect.h"
32 #include "PMPolygon4.h"
33 
44 {
45 public:
46  friend class RefPointUIUtilsImpl;
47 
50  {
77  };
78 
81  {
85  kLine = 1,
87  kPoint = 2,
93  kCursor = 4,
95  kDisabled = 5,
97  kRow = 6,
99  kColumn = 7,
100  };
101 
102 public:
103  enum { kDefaultIID = IID_IREFERENCEPOINTDATA };
104 
105 private:
110  virtual void SetShown__(bool16 shown) = 0;
111 
115  virtual bool16 IsShown__() = 0;
116 
117 public:
126  virtual void SetReferencePointData( const ReferencePointPosition& position, const PBPMPoint& point) = 0;
127 
128 
132  virtual ReferencePointPosition GetPosition__() = 0; //hmm
133 
134 private:
139  virtual PBPMPoint GetPoint__() = 0;
140 
146  virtual void SetRefPointLocked__(bool16 locked) = 0;
147 
153  virtual bool16 IsRefPointLocked__() = 0;
154 
159  virtual void SetVisible__(bool16 visible) = 0;
160 
165  virtual bool16 IsVisible__() = 0;
166 
168  virtual PBPMPoint GetOffsetFromCenter__() = 0;
169 
171  virtual void SetOffsetFromCenter__(const PBPMPoint& newPoint) = 0;
172 
177  virtual PBPMRect GetReferenceFrame__() = 0;
178 
183  virtual void SetReferenceFrame__(const PBPMRect& referenceFrame) = 0;
184 };
185 
195 {
196 public:
197  PBPMPoint referencePoint;
199 };
200 
201 #endif
202