InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPathCorner Class Referenceabstract

#include <IPathCorner.h>

Inheritance diagram for IPathCorner:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPATHCORNER }
 

Public Member Functions

virtual void CreateCornerPath (IGraphicStyleDescriptor *styleDescriptor, const PMPoint &ptA, const PMPoint &ptB, const PMPoint &ptC, IOutlineInfo *pathPort) const =0
 
virtual void GetPathCornerName (PMString *pathCornerName) const =0
 
virtual ScriptID GetScriptID (const ScriptInfo::RequestContext &context) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Defines the interface for installable corners

A, B, and C are the points determining the location of the corner


A----—C

        |

        |

        B
On input, A is the current point.

Member Function Documentation

virtual void IPathCorner::CreateCornerPath (IGraphicStyleDescriptorstyleDescriptor,
const PMPointptA,
const PMPointptB,
const PMPointptC,
IOutlineInfopathPort 
) const
pure virtual

Creates the corner path in pathPort. The styleDescriptor is an interface off the path pageitem. Don't call newpath on pathPort. CreateCornerPath appends the corner to current path in pathPort.

Parameters
styleDescriptorIN The pageitem's graphic style descriptor
ptAIN The first corner point
ptBIN The second corner point
ptCIN The third corner point
pathPortOUT The outline info to store the built path
See Also
IGraphicStyleDescriptor
IOutlineInfo
virtual void IPathCorner::GetPathCornerName (PMStringpathCornerName) const
pure virtual

Fills in the text string that describes this type of corner.

Parameters
pathCornerNameOUT The name of the corner stroker
virtual ScriptID IPathCorner::GetScriptID (const ScriptInfo::RequestContextcontext) const
pure virtual

Returns the ScriptID associated with this corner effect in the given scripting DOM