diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-08-10 15:21:39 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-08-11 08:46:19 +0200 |
commit | 38289a8abed7dc2a34035d579bf8f0dbbf058d67 (patch) | |
tree | a30348e21954d3cfc2e43764efe91d5e153171c7 /sd/source/ui/func/fuediglu.cxx | |
parent | 69ecff82d0e5a0592f9bf6aa4fee364ff1c9754c (diff) |
qt a11y: Implement QtAccessibleWidget::text{After,Before}Offset
In a quick test with a Writer paragraph having the text
"Abcd efgh ijkl" selected in Accerciser's treeview of the
LO a11y hierarchy, the results of running these
commands looked as expected:
In [28]: text = acc.queryText()
In [29]: text.getTextBeforeOffset(4, pyatspi.text.TEXT_BOUNDARY_CHAR)
Out[29]: ('d', 3, 4)
In [30]: text.getTextAfterOffset(4, pyatspi.text.TEXT_BOUNDARY_CHAR)
Out[30]: ('e', 5, 6)
In [31]: text.getTextBeforeOffset(4, pyatspi.text.TEXT_BOUNDARY_WORD_START)
Out[31]: ('Abcd', 0, 4)
In [32]: text.getTextAfterOffset(4, pyatspi.text.TEXT_BOUNDARY_WORD_START)
Out[32]: ('efgh', 5, 9)
Change-Id: Icc310c05634763e92c298e793d87a603b654ac4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138092
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'sd/source/ui/func/fuediglu.cxx')
0 files changed, 0 insertions, 0 deletions