![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_ITEXTWALKERCLIENT } |
Public Member Functions | |
| virtual bool16 | OnStart (ITextWalker *pWalker)=0 |
| virtual bool16 | OnEnd (ITextWalker *pWalker)=0 |
| virtual bool16 | OnResume (ITextWalker *pWalker)=0 |
| virtual bool16 | OnSuspend (ITextWalker *pWalker)=0 |
| virtual bool16 | OnNextPosition (ITextWalker *pWalker, ITextModel *pModel, TextIndex nPosition, TextIndex nStartRange, TextIndex nEndRange, int32 startRangePrcnt, int32 endRangePrcnt, bool16 rangeAdjustable)=0 |
| virtual bool16 | OnStoryStart (ITextWalker *pWalker, UID storyUID)=0 |
| virtual void | OnStoryEnd (ITextWalker *pWalker)=0 |
| virtual bool16 | OnDocumentStart (ITextWalker *pWalker, const UIDRef &newDoc)=0 |
| virtual void | OnDocumentEnd (ITextWalker *pWalker)=0 |
| virtual void | SetReplacementCount (int32 count)=0 |
| virtual int32 | GetReplacementCount ()=0 |
| virtual bool16 | UpdateTextRange ()=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 |
Gets replacement count.
| pure virtual |
Client operation for end of a document.
| pWalker | Text walker where the document ends. |
| pure virtual |
Client operation for start of a document.
| pWalker | Text walker where the document starts. |
| newDoc | document which started. |
| pure virtual |
Client operation when text walker is ending.
| pWalker | text walker which is ending. |
| pure virtual |
Client operation when text walker moves to next position.
| pWalker | Text walker which moves to next position. |
| pModel | Text model where moves happens. |
| nPosition | Previous walker position. |
| nStartRange | New start position of text walker. |
| nEndRange | New end position of text walker. |
| startRangePrcnt | Percentage of the distance where start position moved. |
| endRangePrcnt | Percentage of the distance where end posistion moved. |
| rangeAdjustable | To deal with problem of starting the search in the middle of a word we adjust the starting point to the first position we have found something. This allows the search to wrap around (if that's the scope) and find the word we started on. |
| pure virtual |
Client operation when text walker is resuming.
| pWalker | text walker which is resuming. |
| pure virtual |
Client operation when text walker is starting.
| pWalker | text walker which is starting. |
| pure virtual |
Client operation for end of a story.
| pWalker | Text walker where the story ends. |
| pure virtual |
Client operation for start of a story.
| pWalker | Text walker where the story starts. |
| storyUID | story UID. |
| pure virtual |
Client operation when text walker is suspending.
| pWalker | text walker which is suspending. |
| pure virtual |
Sets replacement count.
| count | Replacement count to set to. |
| pure virtual |
Does client want to update text range and wants to move text walker. If client will return kFalse, on next walk client will get same startIndex and endIndex. It's usefull for cases where client wants to check many attribute in same range. If you are not sure what to return, return kTrue.