Hello everybody,
I posted this question already at the extensions mailing list but I
haven't received an answer yet. May be someone here knows an answer.
I'm writing an extension that insert input fields and list fields into a
writer document:
Here is my code for creating a list field:
oDropDown = oDoc.createInstance("com.sun.star.text.TextField.DropDown")
dim items(1)
items(0) = "test"
items(1) = "foo"
oDropDown.items = items
oText = oDoc.getText()
oText.insertTextContent(oText.getEnd(), oDropDown, False)
This is the code for the input fields:
oFieldMaster = oDoc.createInstance("com.sun.star.text.FieldMaster.User")
oFieldMaster.Name = "fname"
oFieldMaster.Content = "foo"
oField = oDoc.createInstance("com.sun.star.text.TextField.InputUser")
oField.Content = "fname"
Here's my question: I want some of the inserted fields to be read-only
but I haven't found a property in the field API yet. Any ideas?
Best regards
--
Jakob Lechner
Research & Development
Fabalabs Software GmbH
Honauerstraße 4
A-4020 Linz
Tel.: [+43] (70) 60 61 62
Fax: [+43] (70) 60 61 62-609
E-Mail: [EMAIL PROTECTED]
Web: http://www.fabalabs.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]