InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpInspectPathInfo Class Reference

Public Member Functions

 SnpInspectPathInfo ()
 
virtual ~SnpInspectPathInfo ()
 
ErrorCode InspectTextOutline (ITextTarget *iTextTarget)
 
ErrorCode InspectClippingPath (UIDList itemList)
 
ErrorCode InspectTextWrapPath (UIDList itemList)
 
ErrorCode InspectFramePath (UIDList itemList)
 

Detailed Description

This code snippet provide samples for access information of various paths. Specifically, the following area are covered:

  • How to create and get paths from text outline,
  • How to get clipping path,
  • How to text wrap path,
  • How to path of the graphic frame.

Note: (1) To get path information of a text outline, a text selection is required, others all require layout selection (2) All the methods are hard-coded to only display path information of first item (or first child of group item when text outline is a group)

Constructor & Destructor Documentation

SnpInspectPathInfo::SnpInspectPathInfo ()
inline

Constructor.

virtual SnpInspectPathInfo::~SnpInspectPathInfo ()
inlinevirtual

Destructor

Member Function Documentation

ErrorCode SnpInspectPathInfo::InspectClippingPath (UIDList itemList)

Report clipping path of an graphic item

Parameters
itemListthe selected page items.
Returns
kSuccess on success, other ErrorCode otherwise.
ErrorCode SnpInspectPathInfo::InspectFramePath (UIDList itemList)

Report path of an graphic frame

Parameters
itemListthe selected page items.
Returns
kSuccess on success, other ErrorCode otherwise.
ErrorCode SnpInspectPathInfo::InspectTextOutline (ITextTargetiTextTarget)

Report outline of selected text

Parameters
iTextTargettext selection target.
Returns
kSuccess on success, other ErrorCode otherwise.
ErrorCode SnpInspectPathInfo::InspectTextWrapPath (UIDList itemList)

Report textwrap path of an graphic item

Parameters
itemListthe selected page items.
Returns
kSuccess on success, other ErrorCode otherwise.

Inspect text wrap path.