<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hello</div><div class=""><br class=""></div><div class="">While exploring the different <a href="https://www.openoffice.org/api/docs/common/ref/com/sun/star/text/TextPortion.html#TextPortionType" class="">TextPortion</a> 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…</div><div class=""><br class=""></div><div class=""><ul class="MailOutline"><li class="">It seems that reference strings have somewhat different spaces: “_Ref498096146 “ and “ _Ref498096146” are the same reference (space after, space before) I assume?</li><li class="">What about the TextPortion types “TextFieldStart”, “TextFieldEnd", "TextFieldStartEnd"? I’ve seen them in documents, but can’t find documentation on them.</li><li class="">Calling getString() on a “TextFieldStart” returns a ^G and for “TextFieldEnd” a ^H. Their IsCollapsed property is False. What’s with that?</li><li class="">Given the <a href="https://wiki.openoffice.org/wiki/Documentation/DevGuide/Text/Text_Fields" class="">list of text field services</a>, how can I find of which “type” a <a href="http://www.openoffice.org/api/docs/common/ref/com/sun/star/text/XTextField.html" class="">TextField</a> object is? Should I really iterate over all services and check if an object implements one (or more) of the services?</li><li class="">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?</li></ul></div><div class=""><br class=""></div><div class="">Thanks!</div><div class="">Jens</div><div class=""><br class=""></div><div class="">
<div class="">--</div><div class="">Jens Tröger</div><div class=""><a href="http://savage.light-speed.de/" class="">http://savage.light-speed.de/</a></div>
</div>
<br class=""></body></html>