InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IShape.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jeff Argast
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 // Restricted File
24 //
25 //========================================================================================
26 
27 #ifndef __ISHAPE__
28 #define __ISHAPE__
29 
30 #include "IPMUnknown.h"
31 #include "GenericID.h"
32 #include "GraphicsID.h"
33 #include "PMRect.h"
34 #include "UIDRef.h"
35 #include "UIDList.h"
36 #include "IGraphicsContext.h"
37 #include "GraphicsData.h"
38 #include "TransformTypes.h"
39 
40 class IViewPort;
41 class IGeometry;
42 class PMMatrix;
43 class ICallback;
44 
48 class IShape : public IPMUnknown
49 {
50  public:
54  enum { kDefaultIID = IID_ISHAPE };
55 
59  enum {
61  kNoFlags = 0,
65  kUseXOR = 2,
78  kPatientUser = 128,
82  kPrinting = 512,
84  kDoBroadcast = 1024,
88  kPreviewMode = 4096
89  };
90 
94  enum {
96  kSelect = 1,
106  kHitTest = 16,
110  kOnlyPath = 64,
117  };
118 
122  enum {
147 
159  };
160 
164  enum {
167  } ;
168 
176  virtual void ProcessDrawShape( GraphicsData* gd, int32 flags = kNoFlags) = 0;
177 
186  virtual void IterateShapeDrawOrder_(const PMMatrix *xform, ICallback *callbackInfo, int32 flags = 0) = 0;
187  void IterateShapeDrawOrder( ICallback *callbackInfo, int32 flags = 0)
188  {
189  PMMatrix identity;
190  IterateShapeDrawOrder_( &identity, callbackInfo, flags);
191  }
192 
201  virtual PMRect GetPaintedBBox(const PMMatrix& theMatrix, const Transform::CoordinateSpace& coordinateSpace /*= Transform::PasteboardCoordinates()*/) = 0;
202 
212  virtual PMRect GetPrintedBBox(const PMMatrix& theMatrix, const Transform::CoordinateSpace& coordinateSpace /*= Transform::PasteboardCoordinates()*/, bool32 includeAdornments = kTrue) = 0;
213 
222  virtual void Inval(GraphicsData *gd, ClassID reasonForInval = 0, int32 flags = 0) = 0;
223 
224 };
225 
226 
227 #endif