The method metioned below is part of the beansXPropertyContainer
interface and should
be available under DocumentInfo ....
Marten
Robert Vojta schrieb:
On 10/15/07, Mathias Bauer <[EMAIL PROTECTED]> wrote:
Hallo,
You have to add the property before you can assign it a value:
So, when I call setPropertyValue in Java and property wasn't added
previously, it should raise UnknownPropertyException exception. If
yes, this exception isn't raised here on my computer and I assume it's
a bug.
ThisComponent.DocumentInfo.AddProperty("aCustomProperty",
com.sun.star.beans.PropertyAttribute_REMOVABLE, "defaultval")
ThisComponent.DocumentInfo.SetPropertyValue("aCustomProperty", "a Custom Value")
It's important to use the "REMOVABLE" attribute so that it is
immediately discernible that this property is not a "built-in" one.
It works in StarBasic, thanks. But where I can found addProperty in
Java? I can't find similiar method in XDocumentInfo, XPropertySet, ...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]