Looking for TextPortion, TextField clarifications

The Application Programming Interface and the OASIS Open Document Format

Looking for TextPortion, TextField clarifications

Postby _savage » Fri Nov 10, 2017 10:59 am

While exploring the different TextPortion types I came across a few things that are unclear to me, and I was unable to find documentation for them. It would be great to have the community shed some light on this…

- It seems that reference strings have somewhat different spaces: "_Ref498096146 " and " _Ref498096146" are the same (space after, space before)?
- What about the types "TextFieldStart", "TextFieldEnd", "TextFieldStartEnd"? I’ve seen them in documents, but can’t find documentation.
- Calling getString() on a "TextFieldStart" returns a ^G and for "TextFieldEnd" a ^H. Their IsCollapsed property is False. What’s with that?
- Given the list of text field services, how can I find which “type” a TextField object is? Should I really iterate over all services and check if an object implements one (or more) of the services?
- 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?

Thanks!
Jens
Last edited by RoryOF on Fri Nov 10, 2017 9:18 pm, edited 1 time in total.
Reason: Fixed typo in subject [RoryOF, Moderator]
Mac 10.11 using LO 5.3.6.1, Gentoo Linux using LO 5.3.4.2 headless.
_savage
 
Posts: 139
Joined: Sun Apr 21, 2013 12:55 am

Re: Looking for TextPortion, TextField clarifications

Postby _savage » Mon Dec 11, 2017 11:22 pm

See also the Looking for TextPortion, TextField clarifications thread over at the LO Dev mailing list.
Mac 10.11 using LO 5.3.6.1, Gentoo Linux using LO 5.3.4.2 headless.
_savage
 
Posts: 139
Joined: Sun Apr 21, 2013 12:55 am


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 1 guest