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

Public Types | |
| enum | { kDefaultIID = IID_ITEXTTARGET } |
Public Member Functions | |
| virtual void | SetTextFocus (const UIDRef &textModel, const RangeData &range, bool16 doNotify=kTrue)=0 |
| virtual void | SetTextUnmanaged (const UIDRef &textModel, const RangeData &range, bool16 doNotify=kTrue)=0 |
| virtual void | ClearTextFocus (bool16 doNotify=kTrue)=0 |
| virtual void | SetTextModel_Internal (const UIDRef &textModel, bool16 doNotify=kTrue)=0 |
| virtual void | SetRange_Internal (const RangeData &r, bool16 doNotify=kTrue)=0 |
| virtual ITextModel * | QueryTextModel () const =0 |
| virtual UIDRef | GetTextModel () const =0 |
| virtual RangeData | GetRange () const =0 |
| virtual ITextFocus * | QueryTextFocus () const =0 |
| virtual void | Clear_Internal (bool16 doNotify=kTrue)=0 |
| virtual UID | GetRangeThreadDictUID () const =0 |
| virtual uint32 | GetRangeThreadDictKey () const =0 |
| virtual bool16 | HasContent (void) const =0 |
| virtual void | Initialize (IDataBase *db)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
ITextTarget (analogous to ILayoutTarget and ICellFocus) represents a range of a text model for use by suites on the text suite boss (inherited by the text selection boss).
The resemblance to ITextFocus is striking and ITextTarget currently stores and exposes an ITextFocus. (formerly store in the IOldSelection implementation) Eventually the focus boss and concrete selection boss might become one, in which case one of these interfaces will be redundant. That is a larger refactoring than seemed prudent at this time. In the meantime this interface allows the kTextSuiteBoss to be self contained and lets us take another step towards getting rid of the IOldSelection on the text selection boss.
[rrodseth]
| pure virtual |
Release the text focus.
| pure virtual |
Clears the text focus
| pure virtual |
Return the range of text
| pure virtual |
Return the thread dict key of the range's start index
| pure virtual |
Return the thread UID of the range's start index
| pure virtual |
| pure virtual |
Return whether or not the Text Target references text.
| pure virtual |
Initialize
| db | Database the text target is associated with. |
| pure virtual |
Return the text focus, created when a range is first set.
| pure virtual |
Return the text model associated with this range
| pure virtual |
Set the range of text
| r | the range data to set it to |
| pure virtual |
Sets the text focus of the target
| textModel | The text model |
| range | the range data to set it to |
| pure virtual |
Initialize the text target with a text model. This must be done before a range can be set.
| textModel | The text model |
| pure virtual |
Sets the text focus of the target but leaves it unmanaged by the text model so it doesn't get notification when model changes occur hense it isn't modified by deletes, inserts, etc.
| textModel | The text model |
| range | the range data to set it to |