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

Public Types | |
| enum | { kDefaultIID = IID_ITABLEMODELLIST } |
Public Member Functions | |
| virtual int32 | GetModelCount () const =0 |
| virtual ITableModel * | QueryNthModel (int32 index) const =0 |
| virtual UID | GetNthModelUID (int32 index) const =0 |
| virtual void | CollectAnchorSpansInThread (TextIndex indexWithinThread, Text::StoryRangeList *resultList) const =0 |
| virtual int32 | GetAnchorDeltaInThread (TextIndex at) const =0 |
| virtual void | AddModel (UID modelUID, UID insertionThreadDictUID, uint32 insertionThreadDictKey)=0 |
| virtual void | RemoveModel (UID modelUID)=0 |
| virtual void | StoryThreadChanged (UID tableModelUID, UID dictUID, uint32 dictKey)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Protected Member Functions | |
| virtual void | Invariant () const =0 |
A class that maintains references to the ITableModel's present in a story. Currently tables are connected to the Story through two ways - the TableModelList and the TextStoryThreadDictHier. The latter represents the new scheme. This interface may therefore become reduced in significance as time wears on.
| pure virtual |
Method to add a table model into the list.
| modelUID | specifies the new table model to add to the list |
| insertionThreadDictUID | |
| insertionThreadDictKey |
| pure virtual |
Returns a sorted list of story ranges for the anchor characters of Tables in the specified thread. Only ranges that are longer than 1 are returned.
| indexWithinThread | location in the text model for the story-thread of interest |
| resultList | OUT parameter, where the sorted story ranges will be returned |
| pure virtual |
Returns the offset (negative or positive) to adjust the specified text index so it covers an intersecting table. If the text index is at the beginning of the table a positive value corresponding to the number of additional anchor characters (a table with two anchor characters would return '1'). If the text index is at the end of the table a negative value will be returned.
| at | specifies the text index of interest |
| pure virtual |
Determine the number of table models in the list.
| pure virtual |
Acquire the UID of a table model in the list by index position.
| index | specifies position in table model list to select |
| protectedpure virtual |
| pure virtual |
Query for a table model by position in the list, acquiring a reference-increment ptr.
| index | specifies position in table model list to select |
| pure virtual |
Remove a table model from the list by UID.
| UID | specifies the model to remove |