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

Public Types | |
| enum | { kDefaultIID = IID_IPREFLIGHTOBJECTMODELUTILS } |
Public Member Functions | |
| virtual PreflightObjectID | GetDocumentObject (const IDocument *iDoc) const =0 |
| virtual PreflightObjectID | GetSpreadObject (const ISpread *iSpread) const =0 |
| virtual PreflightObjectID | GetShapeObject (const IShape *iShape) const =0 |
| virtual PreflightObjectID | GetTextRangeObject (const UIDRef &textModelRef, TextIndex start, int32 span) const =0 |
| virtual PreflightObjectID | GetTextWaxRunObject (const UIDRef &textModelRef, TextIndex start) const =0 |
| virtual PreflightObjectID | GetTextWaxRunAdornmentObject (const UIDRef &textModelRef, TextIndex start, ClassID adornmentID) const =0 |
| virtual PreflightObjectID | GetTextCharacterObject (const UIDRef &textModelRef, TextIndex index) const =0 |
| virtual PreflightObjectID | GetTableAreaObject (const UIDRef &tableModelRef, const UIDRef &tableFrameRef, const GridArea &area) const =0 |
| virtual PreflightObjectID | GetSpellCheckStateObject (const IDocument *iDoc) const =0 |
| virtual PreflightObjectID | GetTrackedChangeStateObject (const IDocument *iDoc) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Preflight object model utilities. These utilities initialize and return PreflightObjectIDs corresponding to well-known entities in the InDesign object model.
This interface lives on the global utilities boss. Use it via
Utils<IPreflightObjectModelUtils>()->XX(); or Utils<IPreflightObjectModelUtils> iUtils; iUtils->XX();
| pure virtual |
Obtain a preflight ObjectID for a document.
| iDoc | IN The document you want an object ID for. |
| pure virtual |
Obtain a preflight ObjectID for a page item (IShape based). The result will will be a kPreflightOM_PageItem class preflight object; no attempt is made to specialize further.
| iDoc | IN The page item you want an object ID for. |
| pure virtual |
Obtain a preflight ObjectID for the document spell check state. This is a virtual object which is invalidated when the application-level spell check state changes or dynamic spelling indicates that the document has moved from a no-error to error state or vice-versa.
| pure virtual |
Obtain a preflight ObjectID for a spread.
| iDoc | IN The spread you want an object ID for. |
| pure virtual |
Obtain a preflight ObjectID for a table area or table frame area.
| tableModelRef | IN The UIDRef of the table model. |
| tableFrameRef | IN The UIDRef of the table frame model, or UIDRef() if this is table area and not a frame area. |
| area | IN The grid area for the cell range. Empty area = whole table. |
| pure virtual |
Obtain a preflight ObjectID for a single character. The class ID is kPreflightOM_TextCharacter and is reported differently from a single-character text range, ie its glyph data is shown.
| textModelRef | IN The UIDRef of the text model. |
| index | IN The index of the character in the model. |
| pure virtual |
Obtain a preflight ObjectID for a text range. The class ID is kPreflightOM_TextRange.
| textModelRef | IN The UIDRef of the text model. |
| start | IN The starting index in model. |
| span | IN The number of characters in the range (starting at 'start') |
| pure virtual |
Obtain a preflight ObjectID for a text wax run adornment. The class ID is kPreflightOM_WaxRunAdornment.
| textModelRef | IN The UIDRef of the text model. |
| start | IN The starting index in model of the wax run. |
| adornmentID | IN The class ID of the adornment on the run. If kInvalidClass, this is the same as calling GetTextWaxRunObject. |
| pure virtual |
Obtain a preflight ObjectID for a text wax run. The class ID is kPreflightOM_WaxRun.
| textModelRef | IN The UIDRef of the text model. |
| start | IN The starting index in model of the wax run. |
| pure virtual |
Obtain a preflight ObjectID for the tracked change state. This is a virtual object which is invalidated when the the document has moved from a no-error to error state or vice-versa.