InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IConvertShapeSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Shengliu Dai
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 // Note:
24 //
25 //========================================================================================
26 
27 #ifndef __IConvertShapeSuite__
28 #define __IConvertShapeSuite__
29 
30 #include "IPMUnknown.h"
31 #include "K2Vector.h"
32 
35 const PMReal kMinimalDistance = 6.00;
36 
42  {
43  public:
44  enum { kDefaultIID = IID_ICONVERTSHAPESUITE };
45 
46  typedef enum
47  {
59  kTriangle,
60  kPolygonX,
61  kOval,
62  kEllipse = kOval,
63  kClosedPath,
64  kOpenPath,
65  kLine,
66  kOrthogonalLine
67  } ShapeType;
68 
69  typedef enum
70  {
78  } PointType;
79 
81 
82  public:
83 
88  virtual bool16 CanConvertShape (void) const = 0;
89 
93  virtual bool16 CanConvertPointType() const = 0;
94 
101  virtual void GetPointType(PointTypeList& pointTypeList, bool16 sortedAndUnique ) const = 0;
102 
107  virtual bool16 CanJoinPoints(void) const = 0;
108 
113  virtual bool16 CanConnectPoints(void) const = 0;
114 
125  virtual ErrorCode ConvertPageItemShape(ShapeType convertTo, const ClassID cornerEffect = kInvalidClass, const PMReal& cornerRadius = 12.0, const int32 numSides = 6, const int32 starInset = 0) = 0;
126 
131  virtual ErrorCode ConvertPointType(PointType convertTo) = 0;
132 
136  virtual ErrorCode JoinPoints(void) = 0;
137 
141  virtual ErrorCode ConnectPoints(void) = 0;
142 
143  };
144 
145 DECLARE_BASE_TYPE(IConvertShapeSuite::PointType);
146 
147 #endif // __IConvertShapeSuite__