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

Classes | |
| class | InViewCacheFreezer |
Public Types | |
| enum | { kDefaultIID = IID_IFRAMELIST } |
| enum | { kAtTheEnd = -1 } |
Public Member Functions | |
| virtual void | SetTextModelUID (UID modelUID)=0 |
| virtual UID | GetTextModelUID () const =0 |
| virtual ITextModel * | QueryTextModel () const =0 |
| virtual int32 | GetFrameIndex (UID frameUID) const =0 |
| virtual int32 | GetFrameIndex (const ITextFrameColumn *frame) const =0 |
| virtual int32 | GetFrameCount () const =0 |
| virtual UID | GetNthFrameUID (int32 n) const =0 |
| virtual ITextFrameColumn * | QueryNthFrame (int32 n) const =0 |
| virtual TextIndex | GetFrameStart (UID frameUID) const =0 |
| virtual int32 | GetFrameSpan (UID frameUID) const =0 |
| virtual ITextFrameColumn * | QueryFrameContaining (TextIndex textIndex, int32 *frameIndex) const =0 |
| virtual int32 | GetFrameIndexContaining (TextIndex at) const =0 |
| virtual void | GetFramesContaining (const RangeData &range, int32 *firstIndex, int32 *lastIndex) const =0 |
| virtual bool16 | GetWasOversetValid () const =0 |
| virtual bool16 | GetWasOverset () const =0 |
| virtual void | SetWasOverset (bool16 ov)=0 |
| virtual void | AddFrame (UID frameUID)=0 |
| virtual void | AddFrameAt (UID frameUID, int32 at)=0 |
| virtual void | ProcessAddFrameAt (UID frameUID, int32 at)=0 |
| virtual void | RemoveFrame (UID frameUID)=0 |
| virtual void | ClearFrameList ()=0 |
| virtual int32 | GetFirstDamagedFrameIndex () const =0 |
| virtual void | ClearInViewCache ()=0 |
| virtual bool16 | IsInView (UID frameUID) const =0 |
| virtual void | AddToInViewCache (UID frameUID)=0 |
| virtual void | FreezeInViewCache (bool16 freezeIt)=0 |
| virtual uint32 | GetChangeCounter () const =0 |
| virtual void | SetNotInViewList (const UIDList &frameList)=0 |
| virtual void | RemoveNotInViewList (const UIDList &frameList)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
The IFrameList contains a list of the frames of a ITextModel, it maintains information about what text index ranges are contained in what frames, and it maintains information about which frames are, and are not, fully composed. The order of the frames in the IFrameList is the order in which text flows through the frames. IFrameList interface is aggregated on the Frame List boss.
| pure virtual |
Adds an ITextFrameColumn to the IFrameList at the end.
| frameUID | UID of new ITextFrameColumn to add to the IFrameList. |
| pure virtual |
Adds an ITextFrameColumn to the IFrameList at a specified index.
| frameUID | UID of new ITextFrameColumn to add to the IFrameList. |
| at | index within the IFrameList to add the new ITextFrameColumn |
| pure virtual |
Internal Use Only, do not use. Adds an ITextFrameColumn to the in view cache.
| frameUID | UID of ITextFrameColumn that is to be added to the cache. |
| pure virtual |
Clears all ITextFrames from the IFrameList.
| pure virtual |
The "In View" cache is used to eliminate unnecessary recording of pending invals during damage recording and recomposition. (If a ITextFrameColumn is not in any view, pending invals are unnecessary.) These calls are designed for use only during damage recording and recomposition. If you need to determine if an ITextFrameColumn is in view, you can call ClearInViewCache() followed by IsInView().
| pure virtual |
The change counter is persisted value which is incremented (and eventually rollover) each time any ITextFrameColumn in the IFrameList goes from undamaged to damaged. It is thus a useful indication of when some Text in the IFrameList has been damaged and will be re-composed.
| pure virtual |
This method is used by the composition engine to determine where to start composing from. This method can also be used to determine whether the entire IFrameList is fully composed.
| pure virtual |
Returns the count of ITextFrames known to the IFrameList.
| pure virtual |
Gets the index within the known set of ITextFrames known to the IFrameList of a ITextFrameColumn specified by its UID.
| frameUID | UID of ITextFrameColumn within the IFrameList. |
| pure virtual |
Gets the index within the known set of ITextFrames known to the IFrameList of a specific ITextFrameColumn.
| frame | Pointer to ITextFrameColumn within the IFrameList. |
| pure virtual |
Accesses the index of the ITextFrameColumn specified by the TextIndex of a character composed in it. NOTE: This call will NOT cause the text to compose.
| at | TextIndex within any ITextStoryThread, not just the primary story thread, in the ITextModel. |
| pure virtual |
Accesses the indexes of the ITextFrames specified by a text range of characters that are composed in them. NOTE: This call will NOT cause the text to compose.
| range | RangeData within any single ITextStoryThread, not just the primary story thread, in the ITextModel. Lean is ignored. |
| firstIndex | Set to the index of the ITextFrameColumn containing the first character of the specified range, or -1 if the text specified is not in any ITextFrameColumn. |
| lastIndex | Set to the index of the ITextFrameColumn containing the last character (or the last composed character) of the specified range, or -1 if the text specified is not in any ITextFrameColumn. |
| pure virtual |
Provides information about what ranges of text are held in what ITextFrames.
| frameUID | UID of the ITextFrameColumn within the IFrameList. |
| pure virtual |
Provides information about what ranges of text are held in what ITextFrames.
| frameUID | UID of the ITextFrameColumn within the IFrameList. |
| pure virtual |
Accesses a specific ITextFrameColumn within the list held by the IFrameList.
| n | Index within the IFrameList of the ITextFrameColumn to be returned. |
| pure virtual |
Gets the UID of the ITextModel that we are associated with.
| pure virtual |
Returns the last overset state set by the last composition.
| pure virtual |
The IFrameList is considered overset when, the last time it was composed, some of the composable content did not fit in any of the ITextFrames. This state is persisted by the IFrameList and is updated every time it is recomposed.
| pure virtual |
Determines if an ITextFrameColumn within the IFrameList is in view.
| frameUID | UID of ITextFrameColumn within the IFrameList |
| pure virtual |
AddFrameAt using ProcessCommand.
| frameUID | UID of new ITextFrameColumn to add to the IFrameList. |
| at | index within the IFrameList to add the new ITextFrameColumn |
| pure virtual |
Accesses an ITextFrameColumn specified by the TextIndex of a character composed in it. NOTE: This call will cause the text to compose up to at least the specified TextIndex, if it wasn't already composed.
| textIndex | TextIndex within any ITextStoryThread, not just the primary story thread, in the ITextModel. |
| frameIndex | If non-nil, set to the index of the retunred ITextFrameColumn, or -1 if nil is returned. |
| pure virtual |
Accesses a specific ITextFrameColumn within the list held by the IFrameList.
| n | Index within the IFrameList of the ITextFrameColumn to be returned. |
| pure virtual |
Get the ITextModel that we are associated with.
| pure virtual |
Removes an ITextFrameColumn from the IFrameList.
| frameUID | UID of the ITextFrameColumn to remove from the IFrameList. |
| pure virtual |
Internal Use Only, do not use. Removes the specified list of ITextFrames from the in view list.
| frameList | UIDList of ITextFrames within the IFrameList that should be removed. |
| pure virtual |
Internal Use Only, do not use. Adds the specified list of ITextFrames to the in view list as not in view.
| frameList | UIDList of ITextFrames within the IFrameList that should be marked as no in view. |
| pure virtual |
This method is used to associate a IFrameList with a specific ITextModel. Generally, this is only called when creating a new ITextModel and IFrameList. The CreateMultiColumnItemCmd handles all the nuiances of creating a new frame (and optionally a new IFrameList and/or new ITextModel).
| modelUID | UID of ITextModel. |
| pure virtual |
Sets the new overset state and marks it valid.
| ov | The new overset state. |