Apache OpenOffice (AOO) Bugzilla – Issue 105921
InputUser field hast 2 fieldmasters
Last modified: 2017-05-20 11:17:31 UTC
The attached document has an InputUser textfield (inserted manually via the GUI). The textfield's XDependentTextField.getTextFieldMaster() method returns a field master whose only connection to the text field seems to be that it lists it in its DependentTextfields property. Other than that it does not seem to be a real field master at all. It does not control the field's content nor does it show up in the document's XTextFieldSupplier.getTextFieldMasters() collection. The "real" fieldmaster can be obtained via getByName("com.sun.star.text.fieldmaster.User.FOO"). Interestingly this field master controls the actual content of the field but does not list it in its DependentTextFields property. To look at this yourself, open the attached test document, open the Basic IDE, single-step to "End Sub" and then use the Watch window to examine the "fakeFieldMaster" and "realFieldMaster" variables.
Created attachment 65382 [details] test macro
Reassigned to JSK
MRU->OS: please have a look. The getTextfieldmaster () does not return NAme or Value of the field. Is it desired?
Reset assigne to the default "issues@openoffice.apache.org".