#include <ITableTextSelection.h>
Abstract interface for accessing and manipulating text-selection in a table.
- See Also
- kTextSuiteBoss
- kTextSelectionBoss
Enumerated type defining how to perform selection of text within table cell
| Enumerator |
|---|
| kStart | sets selection to the beginning of the cell |
| kEnd | sets the selection to the end of the cell |
| kAll | sets the selection to all the text in the cell |
| kIndex | sets the selection to a given index + start index of the cell |
| kToIndex | sets the selection from start to the given index + start index of the cell |
| kFromIndex | sets the selection from the given index + start index of the cell to the end |
| virtual TextIndex ITableTextSelection::GetFirstSelectedTextIndex | ( | void | | ) | const |
| pure virtual |
Determine the text index of the character at the first position in the text selection
- Returns
- text index of the first character in the text selection
| virtual TextIndex ITableTextSelection::GetIndexOfFirstCharInCell | ( | | ) | const |
| pure virtual |
Determine the the text index of the first position in the cell
- Returns
- the the text index of the first character in cell
| virtual TextIndex ITableTextSelection::GetIndexOfLastCharInCell | ( | | ) | const |
| pure virtual |
Determine the the text index of the last position in the cell
- Returns
- the text index of last position in the cell
| virtual TextIndex ITableTextSelection::GetLastSelectedTextIndex | ( | void | | ) | const |
| pure virtual |
Determine the text index of the character in last position in the text selection
- Returns
- text index of the last character in the text selection
| virtual GridArea ITableTextSelection::GetSelection | ( | | ) | const |
| pure virtual |
Accessor for the GridArea where the text selection is located. Can be used to get the grid id of the cell the text selection is in by using e.g.ITableModel::GetGridID
- Returns
- the GridArea the text insertion point is in
| virtual bool16 ITableTextSelection::IsTableSelection | ( | | ) | const |
| pure virtual |
Checks and sees if the text selection is in a table
- Returns
- kTrue if the text selection is within a table, kFalse otherwise
Selects text in the cell passed in. Assumes an existing selection in a table Selection is based on the choices in WhatToSelect.
- Parameters
| tableModel | the table model the cell is in |
| cell | cell specifies the cell in which to select the text |
| whatToSelect | one of the enumerated type defined in WhatToSelect |
| index | the index used for kIndex, kToIndex, and kFromIndex; this parameter will be used in the manner indicated by the whatToSelect parameter |