[Solved] XTextField.getPresentation() behaviour changed?

Java, C++, C#, Delphi, ??? - Using the UNO bridges

[Solved] XTextField.getPresentation() behaviour changed?

Postby orania » Fri Nov 25, 2011 4:36 pm

This issue has been raised elsewhere (https://bugs.freedesktop.org/show_bug.cgi?id=41512), but I think I now have a better idea of what is going on. According to available info (http://bibliographic.openoffice.org/implementation.html and http://api.openoffice.org/docs/common/ref/com/sun/star/text/FieldMaster/Bibliography.html), and by behaviour observed under LibreOffice 3.3, it was possible to extract sorted keys to Bibliographic references in one of two formats (based on the setting of the boolean TextFieldMaster::IsNumberEntries) and also to temporarily override those identifiers by setting the Identifier attribute on the com.sun.star.text.TextField.Bibliography object (for the case in point, see lines 329 - 355 at http://bibus-biblio.cvs.sourceforge.net/viewvc/bibus-biblio/bibus/bibOOo/bibOOoBase.py?revision=1.14&view=markup). Since 3.4, these calls to getPresentation(false) no longer return the numeric values temporarily assigned to the Identifier fields, sticking instead with the values assigned at creation time, though I can't make out where these values could still be coming from.

Question: Could anyone shed light on what might have happened between 3.3 and 3.4 (this seems to cut across both OO and LO), and perhaps comment on whether this is likely a bug, or by design? Thank you sincerely in anticipation.
Last edited by orania on Mon Nov 28, 2011 10:35 am, edited 3 times in total.
LibreOffice 3.4.4 on Ubuntu 11.10
orania
 
Posts: 2
Joined: Fri Nov 25, 2011 3:42 pm

Re: Bibus: XTextField.getPresentation(false) behaviour chang

Postby orania » Mon Nov 28, 2011 10:33 am

The developer has acknowledged the bug in Bibus here: https://sourceforge.net/projects/bibus- ... c/4779862/
Thank you, the problem is solved.
LibreOffice 3.4.4 on Ubuntu 11.10
orania
 
Posts: 2
Joined: Fri Nov 25, 2011 3:42 pm


Return to External Programs

Who is online

Users browsing this forum: No registered users and 1 guest