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

#include <IPathPointScriptUtils.h>

Inheritance diagram for IPathPointScriptUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IPATHPOINTSCRIPTUTILS }
 

Public Member Functions

virtual IScriptQueryNthPath (const IScriptRequestData *data, IScript *pageitem, int32 n) const =0
 
virtual IScriptQueryNthPoint (const IScriptRequestData *data, IScript *path, int32 n) const =0
 
virtual IPMUnknownQueryParentForInterface (IScript *script, PMIID iid, const RequestContext &context) const =0
 
virtual int32 GetPathIndex (IScript *pathOrPoint) const =0
 
virtual int32 GetPointIndex (IScript *point) const =0
 
virtual ErrorCode AccessPoint_Get (IScriptRequestData *data, IPathGeometry *pathGeom, int32 pathIndex, int32 pointIndex, PathPointIndex ptIndex, const PMPoint &offsetPoint, ScriptData &scriptData) const =0
 
virtual ErrorCode AccessPoint_Set (IScriptRequestData *data, IPathGeometry *pathGeom, int32 pathIndex, int32 pointIndex, PathPointIndex ptIndex, const PMPoint &offsetPoint, const ScriptData &scriptData) const =0
 
virtual ICommandCreateModifyTypeCmd (IPathGeometry *pathGeom, int32 pathIndex, int32 pointIndex, PMPathPointType type, bool16 symmetrical=kFalse) const =0
 
virtual ICommandCreateModifyPointCmd (IPathGeometry *pathGeom, int32 pathIndex, int32 pointIndex, PathPointIndex ptIndex, const PBPMPoint &pt) const =0
 
virtual ICommandCreateSetPathAnchorsCmd (IScriptRequestData *data, IPathGeometry *pathGeom, int32 pathIndex, const PMPoint &offsetPoint, ScriptListData &listData) 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

Utility methods related to path and path point proxy objects in scripting.


Utils<IPathPointScriptUtils>()->QueryNthPath(...) ;

Member Function Documentation

virtual ErrorCode IPathPointScriptUtils::AccessPoint_Get (IScriptRequestDatadata,
IPathGeometrypathGeom,
int32 pathIndex,
int32 pointIndex,
PathPointIndex ptIndex,
const PMPointoffsetPoint,
ScriptDatascriptData 
) const
pure virtual

Get the coordinates of a path point

Parameters
datais the script event data
pathGeomis the page item IN
pathIndexis the path index IN
pointIndexis the point index IN
ptIndexis the handle within the point IN
offsetPointis the spread offset IN
scriptDatais the coordinates of the path point OUT
Returns
kSuccess if the coordinates were found, kFailure otherwise
virtual ErrorCode IPathPointScriptUtils::AccessPoint_Set (IScriptRequestDatadata,
IPathGeometrypathGeom,
int32 pathIndex,
int32 pointIndex,
PathPointIndex ptIndex,
const PMPointoffsetPoint,
const ScriptDatascriptData 
) const
pure virtual

Set the coordinates of a path point

Parameters
datais the script event data
pathGeomis the page item IN
pathIndexis the path index IN
pointIndexis the point index IN
ptIndexis the handle within the point IN
offsetPointis the spread offset IN
scriptDatais the coordinates of the path point IN
Returns
the return code of the command to set the coordinates
virtual ICommand* IPathPointScriptUtils::CreateModifyPointCmd (IPathGeometrypathGeom,
int32 pathIndex,
int32 pointIndex,
PathPointIndex ptIndex,
const PBPMPointpt 
) const
pure virtual

Create a command to modify the coordinates of a path point

Parameters
pathGeomis the page item IN
pathIndexis the path index IN
pointIndexis the point index IN
ptIndexis the handle within the point IN
ptis the new coordinates IN
Returns
the unexecuted command
virtual ICommand* IPathPointScriptUtils::CreateModifyTypeCmd (IPathGeometrypathGeom,
int32 pathIndex,
int32 pointIndex,
PMPathPointType type,
bool16 symmetrical = kFalse 
) const
pure virtual

Create a command to modify a path point's type

Parameters
pathGeomis the page item IN
pathIndexis the path index IN
pointIndexis the point index IN
typeis the new type IN
symmetricalif kTrue and type is kCS, the make the two direction lines the same length IN
Returns
the unexecuted command
virtual ICommand* IPathPointScriptUtils::CreateSetPathAnchorsCmd (IScriptRequestDatadata,
IPathGeometrypathGeom,
int32 pathIndex,
const PMPointoffsetPoint,
ScriptListData & listData 
) const
pure virtual

Create a command to modify all the points on a path

Parameters
datais the script event data
pathGeomis the page item IN
pathIndexis the path index IN
offsetPointis the spread offset IN
listDatais the new coordinates for the path's points IN
Returns
the unexecuted command
virtual int32 IPathPointScriptUtils::GetPathIndex (IScriptpathOrPoint) const
pure virtual

Determine the 0-based index of the path that is represented by a proxy script object

Parameters
pathOrPointis the proxy script object
Returns
the index
virtual int32 IPathPointScriptUtils::GetPointIndex (IScriptpoint) const
pure virtual

Determine the 0-based index of the path point that is represented by a proxy script object

Parameters
pointis the proxy script object
Returns
the index
virtual IScript* IPathPointScriptUtils::QueryNthPath (const IScriptRequestDatadata,
IScriptpageitem,
int32 n 
) const
pure virtual

Create a new path proxy object

Parameters
datais the script event data
pageitemis the parent page item
nis the 0-based index of the path
Returns
the new proxy path object
virtual IScript* IPathPointScriptUtils::QueryNthPoint (const IScriptRequestDatadata,
IScriptpath,
int32 n 
) const
pure virtual

Create a new path point proxy object

Parameters
datais the script event data
pathis the parent path
nis the 0-based index of the path point
Returns
the new proxy path point object
virtual IPMUnknown* IPathPointScriptUtils::QueryParentForInterface (IScriptscript,
PMIID iid,
const RequestContextcontext 
) const
pure virtual

Query parents up the hierarchy until a specified interface is found

See Also
IHierarchy
Parameters
scriptis the child object of which to query the parents
iidis the desired interface
contextprovides the scripting context for this request IN
Returns
the desired interface on a parent, or nil if no parent with the specified interface is found