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

Public Types | |
| enum | { kDefaultIID = IID_ICTEXTNAVIGATIONSUITE } |
| enum | Units { kNone, kChar, kWord, kLine, kParagraph, kStory, kSentence } |
| enum | Direction { kNext, kPrev, kStart, kEnd, kAll } |
| enum | ScrollChoice { kDontScrollSelection, kScrollIntoView } |
| enum | LooseEnd { kLooseStart, kLooseEnd } |
Public Member Functions | |
| virtual bool16 | SetTextSelection (const RangeData &range, LooseEnd endUsedLast, ScrollChoice autoScroll, SelectionExtension *extendToUIDPair=nil)=0 |
| virtual bool16 | SelectAll ()=0 |
| virtual bool16 | SelectTextAt (TextSelectionIndex nTo, Units nUnits)=0 |
| virtual bool16 | MoveTextSelection (Units nUnits, Direction nDirection)=0 |
| virtual bool16 | ExpandTo (TextSelectionIndex nTo)=0 |
| virtual bool16 | ExpandTextSelection (Units nUnits, Direction nDirection)=0 |
| virtual void | ResetNavigationState ()=0 |
| virtual RangeData | GetAnchorData (bool16 *usedEndLast)=0 |
| virtual TextIndex | InterpretHitTest (int32 clickCount, TextIndex newPosition, TextSelectionIndex *pEnd)=0 |
| virtual void | MoveSelectionToVisiblePage ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Used to navigate through text in a story
| pure virtual |
Expands the selection by a specified unit
| nUnits | - Amount to expand the selection |
| nDirection | - Which way to expand the selection |
| pure virtual |
Expands the selection to the specified index
| nTo | - Location to expand the selection to |
| pure virtual |
Returns the location of the anchor point (The end of the selection that is not moving)
| *usedEndLast | - Is this point the end of the selection (kTrue) or the beginning (kFalse) |
| pure virtual |
Does what needs to be done when the user clicks, double-clicks, etc. in text.
| clickCount | - The number of clicks received |
| newPosition | - The position of the clicks |
| *pEnd | - Filled with the end of the new selection |
| pure virtual |
Scrolls the text selection into the window so that it can be viewed
| pure virtual |
Moves the selection by a specified unit
| nUnits | - Amount to move the selection |
| nDirection | - Which way to move the selection |
| pure virtual |
Resets the Up/Down data, anchor data, and end of line data.
| pure virtual |
Select everything
| pure virtual |
Moves the selection to the specified index
| nTo | - Location to move the selection to |
| nUnits | - If the index is invalid, then the units are used to figure things out. |
| pure virtual |
Method to set a text selection.
| range | Text range to set a text selection on |
| endUsedLast | used for extending selection |
| autoScroll | should it autoscroll to the newly set selection |
| extendToUIDPair | If want adjacent track changes to be included in the highlight must set the UID of the track change owned item. this is mainly an internal implementation detail. May pass in nil or nothing to ignore this value (this is the typical case). |