![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_ITEXTWALKERSCOPE } |
| enum | LockType { kLockForRead, kLockForWrite } |
Public Member Functions | |
| virtual bool16 | LockScope (LockType lockType) const =0 |
| virtual bool16 | UnlockScope () const =0 |
| virtual bool16 | IsLocked () const =0 |
| virtual bool16 | IsEmpty () const =0 |
| virtual void | SetNextDoc (const UIDRef &doc)=0 |
| virtual void | SetNextStory (UID story)=0 |
| virtual void | SetNextRange (const Text::StoryRangeList *list)=0 |
| virtual bool16 | RemoveDoc (const UIDRef &doc)=0 |
| virtual bool16 | RemoveStory (const UIDRef &doc, UID story)=0 |
| virtual int32 | GetCharTotal () const =0 |
| virtual const UIDRef & | GetCursorDoc (void *token) const =0 |
| virtual UID | GetCursorStory (void *token) const =0 |
| virtual ITextFocus * | GetCursorRange (void *token, bool16 *pAdjustable=nil, int32 *pCharOffset=nil, bool16 searchBackwards=kFalse) const =0 |
| virtual bool16 | AdjustRangeToStoryStart (void *token, int32 delta)=0 |
| virtual bool16 | AdjustRangeToStoryEnd (void *token, int32 delta)=0 |
| virtual bool16 | ExtendRangeToEndOfStory (void *token)=0 |
| virtual bool16 | ExtendRangeToStory (void *token)=0 |
| virtual bool16 | MoveToNextDoc (void *token) const =0 |
| virtual bool16 | MoveToNextStory (void *token) const =0 |
| virtual bool16 | MoveToNextRange (void *token) const =0 |
| virtual void * | GetNewCursor (void *basedOn=nil) const =0 |
| virtual bool16 | ReleaseCursor (void *token) const =0 |
| virtual void | SetPosition (void *token, TextIndex nPosition)=0 |
| virtual TextIndex | GetPosition (void *token) const =0 |
| virtual void | SetClientSelection (void *token, TextIndex nStart, int32 nLength)=0 |
| virtual ITextFocus * | GetClientSelection (void *token, TextIndex &start, int32 &length) const =0 |
| virtual void | AllowClientSelectionSetRange (void *token, bool16 bAllow)=0 |
| virtual void | ClearClientSelection (void *token)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
| pure virtual |
Resets cursor range to end of the story.
| token | Token for the cursor range. |
| delta | Distance to recede for the range. |
| pure virtual |
Resets cursor range to start of the story.
| token | Token for the cursor range. |
| delta | Distance to advance for the range. |
| pure virtual |
Specified whether to allow the client focus to set range.
| token | token for the client focus. |
| bAllow | kTrue if allows to set range, kFalse otherwise. |
| pure virtual |
Clears client focus for the specified token.
| token | token for the client focus. |
| pure virtual |
This method is called when we are a full story scope and we wish to limit the walk to the end of the story. In this regard we are really trying to interrupt the full walk and stop at the bottom. If we already have passed the end and are wrapping around then this does nothing.
| token | token for the cursor range. |
| pure virtual |
This method is called when we are a partial (end-of-story) scope and we wish to limit the walk to the end of the story. Although we expect to only be called with end-of-story scope, this algorithm will extend any scope to the full story.
| token | token for the cursor range. |
| pure virtual |
Gets the total character count in all the doc list documents .
| pure virtual |
Gets the client focus for the specified token.
| token | token for the cursor to get focus. |
| start | [OUT] start text index of retrieved focus. |
| length | [OUT] length of the text of retrieved focus. |
| pure virtual |
Gets document in doc list for the specified token.
| token | token used to retrieve document. |
| pure virtual |
Gets cursor range for the specified token.
| token | token used to retrieve cursor range. |
| pAdjustable | [OUT] returns whether the range is adjustable or not when it's not nil. one can only adjust when the cursor is the first of a multi-focus range. In addition, the start of the first range must equal the last of the last range. |
| pCharOffset | [OUT] when non-nil, contains total character count before the range. |
| searchBackwards | Direction for the current search. Value is kTrue if searching backwards. |
| pure virtual |
Gets story of a document in doc list for the specified token.
| token | token used to retrieve story. |
| pure virtual |
Gets a new cursor based on the token if provided.
| basedOn | token to be based on for getting the new cursor. |
| pure virtual |
Gets the focus position for the specified cursor.
| token | token for the cursor to get focus from. |
| pure virtual |
Checks if doc list is empty.
| pure virtual |
Checks if scope is lock.
| pure virtual |
Sets scope lock state to the specified lock type.
| lockType | lock type for scope lock state to set to. |
| pure virtual |
Moves doc cursor to next document in the doc list.
| token | token for current cursor. |
| pure virtual |
Moves range cursor to next range in the doc list.
| token | token for current cursor. |
| pure virtual |
Moves story cursor to next story in the doc list.
| token | token for current cursor. |
| pure virtual |
Releases the cursor for the specified token.
| token | token for the cursor to be released. |
| pure virtual |
Removes the specified document from the doc list.
| doc | Document to be removed. |
Removes the specified story from the specified document in the doc list.
| doc | Document from which the story to be removed. |
| story | Story to be removed. |
| pure virtual |
Sets the client focus for the specified token.
| token | token for the cursor to set focus. |
| nStart | start text index to set focus to. |
| nLength | length of the text to set focus to. |
| pure virtual |
Adds the specified document to the doc list.
| doc | Document to be added. |
| pure virtual |
Adds the specified story ranges to the document last added.
| list | list of story ranges to be added. |
| pure virtual |
Adds the specified story to the document last added.
| story | Story to be added. |
| pure virtual |
Sets the focus position for the specified cursor.
| token | token for the cursor to be set. |
| nPosition | text index to set focus to. |
| pure virtual |
Releases scope lock.