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

Public Types | |
| enum | { kDefaultIID = IID_ITEXTRANGEITEM } |
Public Member Functions | |
| virtual ICommand * | QueryRemoveFromDocumentCmd () const =0 |
| virtual ITextModelMemento * | QueryMemento () const =0 |
| virtual void | SetRangeReference (TextRangeReference reference)=0 |
| virtual bool16 | CanReturnIScript () const =0 |
| virtual IScript * | QueryIScript () const =0 |
| virtual void | Rebuilt (ITextModel *textModel, IParcelList *pl, const IWaxLine *waxLine, IWaxRun *waxRun, const RangeData &textRangeItemRange, TextIndex waxLineTextIndex)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
ITextRangeItem needs to be implemented by any object tracked by text range strand.
This interface is used by the text range strand to communicate information between the small boss range object with the real text object occupying the range during text operations, such as copy/paste.
| pure virtual |
| pure virtual |
| pure virtual |
The ITextModelMomento provides a mechanism for the ITextModel to notify the associated object about changes to the model that affect the object.
| pure virtual |
When the ITextModel which the ITextRangeItem is anchored in is being deleted it will query the ITextRangeItems via this method for Command to remove it from the document. At the time the returned command is executed the ITextModel will be in an indeterminate state and so it must not access it in any way. Further, this command should NOT remove any Text (ITextStoryThreads, etc) in the same ITextModel as a result of this operation - the entire ITextModel is processed at this time and anything in those ITextStoryThreads will be found. In addition, callees are NOT required to return a command.
| pure virtual |
This method is called when WaxRuns are rebuilt for the specied WaxLine and the ITextRangeItem span intersects the text range of the WaxRun. Implementations may find this useful to attach TextAdornments at this time. Note that more than one ITextRangeItem may intersect the same WaxRun text range is implementations must give some thought to how they avoid collisions for the same type of ITextRangeItem.
| textModel | The ITextModel containing the IOwnedItem |
| pl | IParcelList of the TextStoryThread containing the IWaxLine |
| waxLine | The IWaxLine containing the IOwnedItem |
| waxRun | The IWaxRun containing the IOwnedItem |
| textRangeItemRange | RangeData of the TextRangeItem. May be beyond the start/end of the WaxRun or WaxLine |
| waxLineTextIndex | The TextIndex of the IWaxLine |