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

Public Types | |
| enum | { kDefaultIID = IID_IWAXRUN } |
| enum | RunCharacteristics { kRunKinsoku_PushIn = 0x01, kRunKinsoku_PushOut = 0x02, kRunKinsoku_Any = 0x03, kTOPRun = 0x20, kEndsInHyphen = 0x40, kVerticalWritingMode = 0x80 } |
Public Member Functions | |
| virtual int32 | GetCharCount () const =0 |
| virtual int32 | GetWaxSpan () const =0 |
| virtual TextIndex | TextOrigin () const =0 |
| virtual PMReal | GetWidth (bool16 ignoreAllTrailing=kFalse) const =0 |
| virtual PMReal | GetHeight () const =0 |
| virtual PMReal | GetXPosition () const =0 |
| virtual void | SetXPosition (const PMReal &xPos)=0 |
| virtual PMReal | GetYPosition () const =0 |
| virtual void | SetYPosition (const PMReal &yPos)=0 |
| virtual PMMatrix | GetTransform () const =0 |
| virtual void | SetTransform (const PMMatrix &xForm)=0 |
| virtual PMMatrix | GetToParcelContentMatrix () const =0 |
| virtual PMMatrix | GetToParcelMatrix () const =0 |
| virtual PMMatrix | GetToFrameMatrix () const =0 |
| virtual PMMatrix | GetToSpreadMatrix () const =0 |
| virtual PMMatrix | GetToPasteboardMatrix () const =0 |
| virtual IWaxCollection * | GetOwner () const =0 |
| virtual void | SetOwner (IWaxCollection *owner)=0 |
| virtual const IWaxLine * | GetWaxLine () const =0 |
| virtual IDataBase * | GetDataBase () const =0 |
| virtual bool16 | IsVerticalWritingMode () const =0 |
| virtual void | SetVerticalWritingMode (bool16 mode)=0 |
| virtual bool16 | IsTOPRun () const =0 |
| virtual void | SetTOPRun (bool16 is)=0 |
| virtual RunCharacteristics | GetRunCharacteristics () const =0 |
| virtual void | SetRunCharacteristics (RunCharacteristics bits)=0 |
| virtual bool16 | SplitAt (int32 offsetInRun)=0 |
| virtual void | GetAdornments (int32 *num, const ClassID **iDs, const Text::DrawPriority **priority, const ITextAdornmentData ***data) const =0 |
| virtual void | SetAdornments (int32 num, ClassID *iDs, Text::DrawPriority *priority, ITextAdornmentData **data)=0 |
| virtual bool16 | FindAdornment (ClassID id, Text::DrawPriority *priority, ITextAdornmentData **data) const =0 |
| virtual void | AddAdornment (ClassID id, Text::DrawPriority priority, ITextAdornmentData *data)=0 |
| virtual void | RemoveAdornment (ClassID id)=0 |
| virtual void | ConstructionComplete ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface manages the wax that makes up a wax line. The attributes of the run are relative to the position of the parent wax line.
The waxRun is really a generic wax object. It can either be another collection (the waxLine has a collection, as do some J features) or be actual wax. Most roman text will not have collections of wax, just simple wax runs.
The run can hold glyphs or not, it can have rendering data or not. It all depends on the type of run and the type of glyphs within the run. See the Programming Guide for more information on the wax.
The characteristics of a run. These provide easy access to some common attributes of the run.
| pure virtual |
Add the given adornment and associated information to this run.
| id | The classID of the adorment itself. |
| priority | The drawing priority of the adornment (when it will draw). |
| data | The private data associated with the adornment. |
| pure virtual |
Automatically called when the building of this collection is finished. This is an internal API for the wax code - DO NOT USE!
| pure virtual |
Find the adornment, if any, matching the given id.
| id | IN The adorment to look for |
| priority | OUT The priority of the adornment |
| data | OUT The data associated with the adornment. |
| pure virtual |
Get the list of adornments attached to this run.
| pure virtual |
Return the number of chars represented by this wax.
| pure virtual |
Returns the database containing this wax.
| pure virtual |
Return the (EmBox) height of the entire run. The returned height is relative to the waxRun (i.e. GetYPosition() is the origin)
| pure virtual |
GetOwner returns an IWaxCollection relating this run to its position in the wax, or nil for such "runs" as ruby and kenten, which are not part of the formal hierarchy. (Those "runs" look like wax objects, because they are compatible with the drawing code, but they are not within the wax hierarchy - they are adornments).
| pure virtual |
Get the set of characteristics for this run.
| pure virtual |
Convenience methods for transforming outside the wax. Namely, to the position-of-the-frame coordinate space (e.g. where on the page it is).
| pure virtual |
Convenience methods for transforming outside the wax. Namely, to the contents-of-the-parcel coordinate space (e.g. where in the parcel (column/cell) it is).
| pure virtual |
Convenience methods for transforming outside the wax. Namely, to the position-of-the-parcel (column/cell) coordinate space (e.g. where in the table it is).
| pure virtual |
Convenience methods for transforming outside the wax. Namely, to the pasteboard coordinate space (the global namespace).
| pure virtual |
Convenience methods for transforming outside the wax. Namely, to the spread coordinate space.
| pure virtual |
Return the transform matrix for this run. Each run in the collection is relative to its owner. This matrix can be used to translate the run (contents) out of its owner.
| pure virtual |
Returns the containing waxline for this run.
| pure virtual |
Return either the number of chars or glyph represented by this wax. If using World Ready composer the span is number of glyphs. Otherwise it is the number of characters.
| pure virtual |
Return the width of the entire run. The returned width is relative to the waxRun (i.e. GetXPosition() is the origin)
| pure virtual |
Return the XPosition of the run. The glyphs will be drawn starting at this position. The returned position is relative to the waxLine
| pure virtual |
Return the YPosition of the run. The glyphs will be drawn starting at this position. The returned position is relative to the waxLine
| pure virtual |
Return whether or not this run is on a path
| pure virtual |
Return whether or not this run will be drawn using vertical writing mode (CJK upright glyphs, vertical rotated Roman)
| pure virtual |
Remove the adornment, if any, matching the given id.
| id | IN The adorment to look for |
| pure virtual |
Set the list of adornments attached to this run.
| pure virtual |
Specify the owner of this run.
| pure virtual |
Set (overwrite) the characteristics for this run.
| pure virtual |
Specify whether or not this run is on a path.
| pure virtual |
Specify the transform matrix for this run. It should only contain translations for the overall X and Y run offsets.
| pure virtual |
Specify vertical writing for this run.
| pure virtual |
Specify the XPosition of the run. It must be relative to the waxLine.
| pure virtual |
Specify the YPosition of the run. It must be relative to the waxLine
| pure virtual |
Split this run at the specified offset.
| pure virtual |
Return the text index of this run.