Looking for TextPortion, TextField clarifications

Jens Tröger jens.troeger at light-speed.de
Fri Nov 17 23:49:22 UTC 2017


Some clarification:

> It seems that reference strings have somewhat different spaces: “_Ref498096146 “ and “ _Ref498096146” are the same reference (space after, space before) I assume?

The spacing seems to be inserted by calling getPresentation(). Using the SourceName and CurrentPresentation properties works ok.

> In MS Word, a field’s “code” can be something like { PAGEREF _Ref498098146\h} (or NOTEREF, or REF). How are these reference kinds represented in the OO object model?

I think a TextField’s GetReference service <https://www.openoffice.org/api/docs/common/ref/com/sun/star/text/textfield/GetReference.html>, if available, contains the appropriate reference field sources <https://www.openoffice.org/api/docs/common/ref/com/sun/star/text/ReferenceFieldSource.html>. Although I don’t quite understand the difference between “bookmark” and “reference mark”.

Still trying to find information on the other questions though…
Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20171118/4cda62c8/attachment.html>


More information about the LibreOffice mailing list