![]() | InDesign SDK 20.5 |
#include <IConvertShapeSuite.h>

Public Types | |
| enum | { kDefaultIID = IID_ICONVERTSHAPESUITE } |
| enum | ShapeType { kRectangle, kTriangle, kPolygonX, kOval, kEllipse = kOval, kClosedPath, kOpenPath, kLine, kOrthogonalLine } |
| enum | PointType { kLineEnd, kCorner, kSmooth, kSymmetrical } |
| typedef K2Vector< PointType > | PointTypeList |
Public Member Functions | |
| virtual bool16 | CanConvertShape (void) const =0 |
| virtual bool16 | CanConvertPointType () const =0 |
| virtual void | GetPointType (PointTypeList &pointTypeList, bool16 sortedAndUnique) const =0 |
| virtual bool16 | CanJoinPoints (void) const =0 |
| virtual bool16 | CanConnectPoints (void) const =0 |
| virtual ErrorCode | ConvertPageItemShape (ShapeType convertTo, const ClassID cornerEffect=kInvalidClass, const PMReal &cornerRadius=12.0, const int32 numSides=6, const int32 starInset=0)=0 |
| virtual ErrorCode | ConvertPointType (PointType convertTo)=0 |
| virtual ErrorCode | JoinPoints (void)=0 |
| virtual ErrorCode | ConnectPoints (void)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Convert page item shape suite interface
| pure virtual |
Can connect selected points? Path(s) must be open.
| none |
| pure virtual |
Can convert selected points to another type?
| pure virtual |
Can convert any selected page items' shape?
| none |
| pure virtual |
Can join selected points? Path(s) must be open. Differs from Connect in that path points must be very close (kMinimalDistance).
| none |
| pure virtual |
Connect two selected end points with a segment.
| pure virtual |
Convert selected page item shape
| convertTo | ShapeType the selected pageitem want convert to |
| cornerEffect | ClassID of stroke corner effects for the converted page item |
| cornerRadius | PMReal radius value in points for stroke corner effects for the converted page item |
| numSides | number of sides of polygon for the selected pageitem to convert to, No effect if ShapeType is not kPolygonX |
| starInset | amount of star inset for the selected pageitem to convert to, No effect if ShapeType is not kPolygonX |
| pure virtual |
Convert selected point type
| convertTo | new PointType the selected point want convert to |
| pure virtual |
GetPointType is used to determine the PointType for the current selection. pointTypeList will be empty if not in path selection mode or if no points are in the path selection.
| pointTypeList | OUT The list for adding point type values to. |
| sortedAndUnique | IN If kTrue the list will be sorted and duplicates will be removed. |
| pure virtual |
Join selected two end points (and replace with a single point)