soffice: Report page-relative caret position when available (#14727)
When reporting the review cursor location in LibreOffice Writer, the announced position was not particularly useful to determine where in the document/page the cursor is currently located.
Description of user facing changes
Similar to how it is done for Microsoft Word, report the current cursor/caret location relative to the current page when that information is available for LibreOffice Writer.
Description of development approach
To retrieve the page-relative cursor/caret location, this introduces and makes use of a new SymphonyDocumentTextInfo class that retrieves the page-relative cursor position via accessible attributes from the document object.
These attributes are added to LibreOffice in this corresponding LibreOffice change:
https://gerrit.libreoffice.org/c/core/+/149051
The values returned by LibreOffice Writer are in twips, so convert that to inches or centimetres, depending on whether or not imperial measurement units are expected.
If the attributes are not available, fall back to the handling that was already used so far.