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

#include <IPreflightObjectModelUtils.h>

Inheritance diagram for IPreflightObjectModelUtils:
IPMUnknown

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 IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

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();

Member Function Documentation

virtual PreflightObjectID IPreflightObjectModelUtils::GetDocumentObject (const IDocumentiDoc) const
pure virtual

Obtain a preflight ObjectID for a document.

Parameters
iDocIN The document you want an object ID for.
Returns
The object ID corresponding to the document. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetShapeObject (const IShapeiShape) const
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.

Parameters
iDocIN The page item you want an object ID for.
Returns
The object ID corresponding to the spread. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetSpellCheckStateObject (const IDocumentiDoc) const
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.

Returns
The object ID corresponding to the spell check state. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetSpreadObject (const ISpreadiSpread) const
pure virtual

Obtain a preflight ObjectID for a spread.

Parameters
iDocIN The spread you want an object ID for.
Returns
The object ID corresponding to the spread. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetTableAreaObject (const UIDReftableModelRef,
const UIDReftableFrameRef,
const GridAreaarea 
) const
pure virtual

Obtain a preflight ObjectID for a table area or table frame area.

Parameters
tableModelRefIN The UIDRef of the table model.
tableFrameRefIN The UIDRef of the table frame model, or UIDRef() if this is table area and not a frame area.
areaIN The grid area for the cell range. Empty area = whole table.
Returns
The object ID corresponding to the table or frame area. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetTextCharacterObject (const UIDReftextModelRef,
TextIndex index 
) const
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.

Parameters
textModelRefIN The UIDRef of the text model.
indexIN The index of the character in the model.
Returns
The object ID corresponding to the character. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetTextRangeObject (const UIDReftextModelRef,
TextIndex start,
int32 span 
) const
pure virtual

Obtain a preflight ObjectID for a text range. The class ID is kPreflightOM_TextRange.

Parameters
textModelRefIN The UIDRef of the text model.
startIN The starting index in model.
spanIN The number of characters in the range (starting at 'start')
Returns
The object ID corresponding to the text range. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetTextWaxRunAdornmentObject (const UIDReftextModelRef,
TextIndex start,
ClassID adornmentID 
) const
pure virtual

Obtain a preflight ObjectID for a text wax run adornment. The class ID is kPreflightOM_WaxRunAdornment.

Parameters
textModelRefIN The UIDRef of the text model.
startIN The starting index in model of the wax run.
adornmentIDIN The class ID of the adornment on the run. If kInvalidClass, this is the same as calling GetTextWaxRunObject.
Returns
The object ID corresponding to the text run. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetTextWaxRunObject (const UIDReftextModelRef,
TextIndex start 
) const
pure virtual

Obtain a preflight ObjectID for a text wax run. The class ID is kPreflightOM_WaxRun.

Parameters
textModelRefIN The UIDRef of the text model.
startIN The starting index in model of the wax run.
Returns
The object ID corresponding to the text range. Note that this is NOT a UID; this ID makes sense only within the preflight model.
virtual PreflightObjectID IPreflightObjectModelUtils::GetTrackedChangeStateObject (const IDocumentiDoc) const
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.

Returns
The object ID corresponding to the spell check state. Note that this is NOT a UID; this ID makes sense only within the preflight model.