![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_ITEXTWALKER } |
Public Member Functions | |
| virtual void | Initialize (ITextWalkerClient *pClient, ITextWalkerScope *pScope, IFindChangeOptions *pOptions, void *token=nil)=0 |
| virtual bool16 | Walk ()=0 |
| virtual int32 | MoveBy (int32 nDelta)=0 |
| virtual void | MoveTo (TextIndex nPosition)=0 |
| virtual void | Suspend ()=0 |
| virtual void | Halt ()=0 |
| virtual bool16 | IsSuspended () const =0 |
| virtual bool16 | IsWalking () const =0 |
| virtual TextIndex | GetWalkerPosition () const =0 |
| virtual ITextWalkerScope * | QueryScope ()=0 |
| virtual ITextWalkerClient * | QueryClient ()=0 |
| virtual void * | GetCursorToken ()=0 |
| virtual void | SetClientSelection (TextIndex nStart, int32 nLength)=0 |
| virtual ITextFocus * | GetClientSelection (TextIndex *pStart, int32 *pLength) const =0 |
| virtual bool16 | AdjustRangeToStoryStart (int32 delta)=0 |
| virtual bool16 | AdjustRangeToStoryEnd (int32 delta)=0 |
| virtual void | ExtendCurrentRangeToEndOfStory ()=0 |
| virtual void | ExtendCurrentRangeToStory ()=0 |
| virtual IFindChangeOptions * | QueryFindChangeOptions ()=0 |
| virtual void | SetStateForRangeLock (bool16 state)=0 |
| virtual bool16 | IsCompleted () 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 |
| pure virtual |
Resets cursor range to end of the story.
| delta | Distance to recede for the cursor range. |
| pure virtual |
Resets cursor range to start of the story.
| delta | Distance to advance for the cursor range. |
| 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.
| 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.
| pure virtual |
Gets the client focus for current cursor token.
| pStart | [OUT] start text index of retrieved focus. |
| pLength | [OUT] length of the text of retrieved focus. |
| pure virtual |
Returns current cursor token.
| pure virtual |
Returns the last index of the current selection.
| pure virtual |
Halts the walking.
| pure virtual |
Initializes text walker.
| pClient | Used to initialize text walker client . |
| pScope | Used to initialize text walker scope. |
| pOptions | Used to initialize find change options. |
| token | Used to initialize cursor token. |
| pure virtual |
Returns whether walking has been completed.
| pure virtual |
Returns the suspend state.
| pure virtual |
Returns whether walking has been started.
| pure virtual |
Moves the walker, returns the amount.
| nDelta | The distance to move the walker position. |
| pure virtual |
Moves the walker.
| nPosition | Text index to move the walker position to. |
| pure virtual |
Queries text walker client.
| pure virtual |
Returns find change options.
| pure virtual |
Queries text walker scope.
| pure virtual |
Sets the client focus for current cursor token.
| nStart | start text index to set focus to. |
| nLength | length of the text to set focus to. |
| pure virtual |
This method is called when moving backward and change of current range is undesirable. Via this function a lock can be enabled which will disable change in the current range. Note: For every call for a lock there should be a corresponding call for the unlock too.
| state | If value is kTrue, the lock is turned on and for the value kFalse, lock is turned off. |
| pure virtual |
Suspends the walking.
| pure virtual |
Walks the text scope.