|
| AccessibleTextEditorWidget (TextEditorWidget *widget) |
|
virtual | ~AccessibleTextEditorWidget () |
|
void * | interface_cast (QAccessible::InterfaceType t) override |
|
QAccessible::State | state () const override |
|
virtual void | selection (int selectionIndex, int *startOffset, int *endOffset) const override |
| Returns a selection. The size of the selection is returned in startOffset and endOffset. If there is no selection both startOffset and endOffset are nullptr.
|
|
virtual int | selectionCount () const override |
| Returns the number of selections in this text.
|
|
virtual void | addSelection (int startOffset, int endOffset) override |
| Select the text from startOffset to endOffset. The startOffset is the first character that will be selected. The endOffset is the first character that will not be selected.
|
|
virtual void | removeSelection (int selectionIndex) override |
| Clears the selection with index selectionIndex.
|
|
virtual void | setSelection (int selectionIndex, int startOffset, int endOffset) override |
| Set the selection selectionIndex to the range from startOffset to endOffset.
|
|
virtual int | cursorPosition () const override |
| Returns the current cursor position.
|
|
virtual void | setCursorPosition (int position) override |
| Move the cursor position.
|
|
virtual QString | text (QAccessible::Text t) const override |
|
virtual QString | text (int startOffset, int endOffset) const override |
| Returns the text from startOffset to endOffset. The startOffset is the first character that will be returned. The endOffset is the first character that will not be returned.
|
|
virtual int | characterCount () const override |
| Returns the length of the text (total size including spaces).
|
|
virtual QRect | characterRect (int offset) const override |
| Returns the position and size of the character at position offset in screen coordinates.
|
|
virtual int | offsetAtPoint (const QPoint &point) const override |
| Returns the offset of the character at the point in screen coordinates.
|
|
virtual void | scrollToSubstring (int startIndex, int endIndex) override |
| Ensures that the text between startIndex and endIndex is visible.
|
|
virtual QString | attributes (int offset, int *startOffset, int *endOffset) const override |
| Returns the text attributes at the position offset. In addition the range of the attributes is returned in startOffset and endOffset.
|
|
virtual QString | textAfterOffset (int offset, QAccessible::TextBoundaryType boundaryType, int *startOffset, int *endOffset) const override |
| Returns the text item of type boundaryType that is right after offset offset and sets startOffset and endOffset values to the start and end positions of that item; returns an empty string if there is no such an item. Sets startOffset and endOffset values to -1 on error.
|
|
virtual QString | textAtOffset (int offset, QAccessible::TextBoundaryType boundaryType, int *startOffset, int *endOffset) const override |
| Returns the text item of type boundaryType at offset offset and sets startOffset and endOffset values to the start and end positions of that item; returns an empty string if there is no such an item. Sets startOffset and endOffset values to -1 on error.
|
|
virtual QString | textBeforeOffset (int offset, QAccessible::TextBoundaryType boundaryType, int *startOffset, int *endOffset) const override |
| Returns the text item of type boundaryType that is close to offset offset and sets startOffset and endOffset values to the start and end positions of that item; returns an empty string if there is no such an item. Sets startOffset and endOffset values to -1 on error.
|
|
virtual QAccessibleInterface * | focusChild () const override |
|
virtual QRect | rect () const override |
| Returns the rectangle for the editor widget It returns the location of the textWidget (even when the TextComponent has got focus)
|
|
QString edbee::AccessibleTextEditorWidget::textAfterOffset |
( |
int | vOffset, |
|
|
QAccessible::TextBoundaryType | boundaryType, |
|
|
int * | startOffset, |
|
|
int * | endOffset ) const |
|
overridevirtual |
Returns the text item of type boundaryType that is right after offset offset and sets startOffset and endOffset values to the start and end positions of that item; returns an empty string if there is no such an item. Sets startOffset and endOffset values to -1 on error.
This default implementation is provided for small text edits. A word processor or text editor should provide their own efficient implementations. This function makes no distinction between paragraphs and lines.
Note: this function can not take the cursor position into account. By convention an offset of -2 means that this function should use the cursor position as offset. Thus an offset of -2 must be converted to the cursor position before calling this function. An offset of -1 is used for the text length and custom implementations of this function have to return the result as if the length was passed in as offset.
QString edbee::AccessibleTextEditorWidget::textBeforeOffset |
( |
int | offset, |
|
|
QAccessible::TextBoundaryType | boundaryType, |
|
|
int * | startOffset, |
|
|
int * | endOffset ) const |
|
overridevirtual |
Returns the text item of type boundaryType that is close to offset offset and sets startOffset and endOffset values to the start and end positions of that item; returns an empty string if there is no such an item. Sets startOffset and endOffset values to -1 on error.
This default implementation is provided for small text edits. A word processor or text editor should provide their own efficient implementations. This function makes no distinction between paragraphs and lines.
Note: this function can not take the cursor position into account. By convention an offset of -2 means that this function should use the cursor position as offset. Thus an offset of -2 must be converted to the cursor position before calling this function. An offset of -1 is used for the text length and custom implementations of this function have to return the result as if the length was passed in as offset.