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

Public Types | |
| enum | { kDefaultIID = IID_ITABLETEXTCONTAINER } |
Public Member Functions | |
| virtual const UIDRef & | GetTextModelRef () const =0 |
| virtual ITextModel * | QueryTextModel () const =0 |
| virtual void | AttachToTextModel (UID textModelUID)=0 |
| virtual void | DetachFromTextModel ()=0 |
| virtual void | SetTextModelUID (UID textModelUID)=0 |
| virtual UID | GetFirstTableFrameUID () const =0 |
| virtual void | SetFirstTableFrameUID (UID uid)=0 |
| virtual TextIndex | GetAnchorTextIndex () const =0 |
| virtual int32 | GetAnchorSpan () const =0 |
| virtual Text::StoryRange | GetThreadBlockTextRange () const =0 |
| virtual ITextParcelList * | QueryTextParcelList () 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 |
Interface to query and manipulate the relation between the table model and text model. Provides means to get at the text model underlying a table model, and vary the association. Can also find out where in the text model the table is anchored, e.g. find the index of the first table frame character in the text model for the table.
The container in this case refers to the containing Text flow, or TextStoryThread, and the TextParcelList that it is flowing through.
The Table is anchored to the Text flow via the Text Model in two ways:
Because the anchoring is done on a TextStoryThread basic, Tables can be inserted anywhere in the Text Model, even within other Table Text Cells.
| pure virtual |
Attaches the Table to the specified TextModel and related Text interfaces (such as ITableModelList).
| textModelUID | specifies text model to associate with this table model |
| pure virtual |
Detaches the Table from the specified TextModel and related Text interfaces (such as ITableModelList).
| pure virtual |
Information about how the Table is anchored.
| pure virtual |
Information about where the Table is anchored in the TextModel Should return the TextIndex of the first TableFrame.
| pure virtual |
Deprecated. Get the UID of the first TableFrame used by the TableModel.
| pure virtual |
Acquire a persistent reference to the underlying text model. The UIDRef returned can be used to acquire an ITextModel interface.
| pure virtual |
Returns the TextIndex of the ThreadBlock for this Table. The value returned will be valid even if the Table has not created any StoryThreads.
Note that the TextIndex values will change over time Text is inserted or deleted before them so you cannot cache them.
| pure virtual |
Acquire a reference-incremented interface ptr to text model.
| pure virtual |
Acquire a reference to the text parcel list associated with the table.
| pure virtual |
Deprecated. Set the UID of the first TableFrame used by the table model.
| uid | specifies UID of the table frame to use as first in table model |
| pure virtual |
Associates a particular text model by UID with the table model.
| textModelUID | gives text model to associate with the table model |