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

Public Types | |
| enum | { kDefaultIID = IID_IWAXCOLLECTION } |
| enum | WaxCollectionOrientation { kWCOAdjacent, kWCOStacked } |
Public Member Functions | |
| virtual int32 | Count () const =0 |
| virtual IWaxRun * | QueryRun (int32 index) const =0 |
| virtual int32 | GetRunIndex (const IWaxRun *run) const =0 |
| virtual TextIndex | TextOrigin () const =0 |
| virtual void | GetHeight (PMLineSeg *pHeight) const =0 |
| virtual IDataBase * | GetDataBase () const =0 |
| virtual const IWaxLine * | GetWaxLine () const =0 |
| virtual void | SetWaxLine (const IWaxLine *waxLine)=0 |
| virtual void | AddRun (IWaxRun *run)=0 |
| virtual void | AddRunAt (IWaxRun *run, int32 at)=0 |
| virtual void | RemoveAllRuns ()=0 |
| virtual IWaxRun * | QueryPreviousNeighbor (const IWaxRun *waxRun) const =0 |
| virtual IWaxRun * | QueryNextNeighbor (const IWaxRun *waxRun) const =0 |
| virtual enum WaxCollectionOrientation | GetOrientation () const =0 |
| virtual void | SetOrientation (enum IWaxCollection::WaxCollectionOrientation orientation)=0 |
| virtual IWaxGlyphIterator * | QueryWaxGlyphIterator (bool16 includeCollection=kFalse) const =0 |
| virtual IWaxRunIterator * | QueryWaxRunIterator (bool16 includeCollection=kFalse) const =0 |
| virtual PMMatrix | GetTransform () const =0 |
| virtual PMMatrix | GetToParcelMatrix () const =0 |
| virtual PMMatrix | GetToFrameMatrix () const =0 |
| virtual PMMatrix | GetToSpreadMatrix () const =0 |
| virtual PMMatrix | GetToPasteboardMatrix () const =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 |
Data repository for the various groups of runs (WaxLine, Warichu, TCY).
A collection is a set of wax objects.
A wax object is a waxRun or a waxCollection, both of which implement the IWaxRun interface.
Collections orientate their objects either horizontally (adjacent) or vertically (stacked).
Stacked objects typically have the same x origin, and adjacent objects typically start their x-offset at the end of the previous object.
The orientation specifies how neighbors are related. Currently neighbors are stacked on top of each other, or placed next to each other.
| pure virtual |
Add the given wax object to the collection.
| pure virtual |
Add the given wax object to the collection at the specified location (this object becomes that index).
| 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).
Call when the building of this collection is finished. Some collections would like to use a cache for heights and other things. This tells them when they can build it.
| pure virtual |
Return the number of wax objects in this collection.
| pure virtual |
Return the database associated with the objects in the collection.
| pure virtual |
Return the overall collection's height. - relative to the baseline
| pure virtual |
Return the orientation of this collection.
| pure virtual |
Return the index for the given object in the collection (object to index conversion)
| 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 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 Owner. 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 |
Return the (unreference-counted) IWaxLine in which this collection resides.
Return the (reference-counted) neighbor that resides (logically) after to this object. Return nil if at end of collection.
Return the (reference-counted) neighbor that resides (logically) prior to this object. Return nil if at beginning of collection.
| pure virtual |
Return the (reference-counted) IWaxRun representing the object at the given index (index to object conversion)
| pure virtual |
QueryWaxGlyphIterator provides iteration through all the glyphs in this collection. It may not visit every run, since not all runs contain glyphs. if includeCollection is true, then the Matrix will include the collection's transform (thereby converting to parcel coordinates if this collection was a WaxLine)
| pure virtual |
QueryWaxRunIterator only iterates the leaf waxRuns - basically it just hides the wax hierarchy, providing access to the glyphs (or other "drawn" data). if includeCollection is true, then the Matrix will include the collection's transform (thereby converting to parcel coordinates if this collection was a WaxLine)
| pure virtual |
Remove all wax objects from this collection.
| pure virtual |
Set the orientation of this collection.
| pure virtual |
Set the IWaxLine in which this collection resides.
The line is NOT reference counted.
| pure virtual |
Return the TextIndex for the start of this collection.