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

Public Types | |
| enum | { kDefaultIID = IID_IQUICKCOMPOSER } |
Public Member Functions | |
| virtual void | Compose (const UIDRef &textModelRef, int32 startLineIndex, TextIndex textStartPosition, int32 numCharsAdded, bool16 clearLines, bool16 isGalleyDisplayStartPosition=kFalse, bool16 startNewStory=kFalse, RunDescription::RunType startRunTypeClue=RunDescription::regularText)=0 |
| virtual bool16 | InitializeRange (const UIDRef &textModelRef, TextIndex textStartPosition, TextIndex textEndPosition)=0 |
| virtual void | CreatePsuedoRange (const UIDRef &textModelRef, TextIndex startIndex, int32 length)=0 |
| virtual bool16 | UnPsuedoLine (const UIDRef &textModelRef, int32 startLineIndex, IdleTimer *timeCheck)=0 |
| virtual TextIndex | ComposeRange (const UIDRef &textModelRef, int32 startLineIndex, TextIndex textStartPosition, TextIndex textEndPosition, int32 numCharsAdded, bool16 ownedItemDamage=kFalse)=0 |
| virtual bool16 | ComposeLine (const UIDRef &textModelRef, int32 at, TextIndex textStartPosition, int32 numCharsAdded, bool16 isGalleyDisplayStartPosition=kFalse, bool16 startNewStory=kFalse, bool16 ownedItemDamage=kFalse)=0 |
| virtual void | ComposeOversetAle (const UIDRef &textModelRef, int32 startLineIndex, TextIndex textStartPosition, int32 numCharsAdded, int32 startLineNumber)=0 |
| virtual int32 | ComposeAleLine (const UIDRef &textModelRef, int32 at, LineDescription &description, bool16 layoutLineIsHyphenated=kFalse)=0 |
| virtual void | SetInstantDraw (bool16 instantDraw)=0 |
| virtual bool16 | CompositionEnabled ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Methods to compose text in story and galley views.
| pure virtual |
Compose a range of text for a story view.
| textModelRef | reference of the text model to use. |
| startLineIndex | line where composition should start. |
| textStartPosition | text index where composition should start can be display index or text model index value of isGalleyDisplayStartPosition tells which. |
| numCharsAdded | number of characters added or deleted from the model (negative if deleted). |
| clearLines | used when initializing the view, tells the composer to remove all existing text lines before starting. |
| isGalleyDisplayStartPosition | tell composer whether the textStartPosition is a text model index or a galley display index. |
| startNewStory | used internally pass false |
| startRunTypeClue | can be used the help the composer figure out what type of run the textStartPosition starts in. |
| pure virtual |
Used to compose ale lines to window after layout composition creates the line ends for us.
| textModelRef | reference of the text model to use. |
| at | startLineIndex of line to compose |
| description | initial line description created from data in the waxline |
| layoutLineIsHyphenated | true if the associated waxline is ends in a hyphen |
| pure virtual |
Compose a specific textline for Story View normally called from Compose().
| textModelRef | reference of the text model to use. |
| at | index of line to compose |
| textStartPosition | text model index to start composing at |
| numCharsAdded | number of characters that the change that caused this compose added or deleted |
| isGalleyDisplayStartPosition | if the textStartPosition is a galleyDisplayIndex pass kTrue for this |
| startNewStory | internal use pass kFalse or let auto initialization take care of it |
| ownedItemDamage | internal use |
| pure virtual |
Compose a Galley View overset line (ALE = accurate line endings). This routine is really a failsafe normally overset lines are composed by normal means because a extra frame is added so to the layout composer there is no difference between overset and normal text while in InCopy. However, some text cannot be composed into a overset frame because it is too big etc. That's where this routine will get called to compose something reasonable for the overset text so that it can be displayed in the galley view. (INCOPY ONLY)
| textModelRef | reference of the text model to use. |
| startLineIndex | of line to compose |
| textStartPosition | text model index to start composing at |
| numCharsAdded | number of characters that the change that caused this compose added or deleted |
| startLineNumber | line number to display in info column |
| pure virtual |
When you know you need to compose through a range of text call this. Useful, when composing attribute changes or similar type things. Returns the last character it composed through
| textModelRef | reference of the text model to use. |
| startLineIndex | index of line to start composing at |
| textStartPosition | text model index to start composing at |
| textEndPosition | text model index to stop composing at (or that it may stop composing at the routine may decide to compose further) |
| numCharsAdded | how many characters have been added or deleted from the model. |
| ownedItemDamage | true if the notes or other owned item type things caused the compose |
| pure virtual |
If composition is temporarily suppressed this will return false.
| pure virtual |
Used to create a range of lines to compose in the background to speed up opening a new story editor window. Psuedo lines are lines that are not composed but are a placeholder for later replacement with actual true composed TextLines. The ranges to create psuedo lines for are more of a guide the actual psuedo lines will begin and end only at paragraph boundaries.
| textModelRef | reference of the text model to use. |
| startIndex | text model index to start creating psuedo lines for. |
| length | how many characters to create psuedolines for. |
| pure virtual |
When a story is first created or you want to destroy all lines and recreate all or part of them again call this. Will trigger background composition if only some of the story is composed
| textModelRef | reference of the text model to use. |
| textStartPosition | text model index to start composing at. |
| textEndPosition | text model index to start composing at. |
| pure virtual |
Internal use only
| pure virtual |
Given the location of a psuedoline created by CreatePsuedoRange convert the psuedo line to a truly composed line.
| textModelRef | reference of the text model to use. |
| startLineIndex | text model index of the start of the psuedo line. |
| timeCheck | can pass a time limit (used when called from idle task) to limit the amount of time this routine is allowed to perform its task. |