On Feb 6, 2008 8:01 PM, Robert Vojta <[EMAIL PROTECTED]> wrote:
> When UserDefinedAttributes property is set, everything works for me.
> But when this property is not set, I have no idea how to create new
> AttributeContainer. Any idea?
Again, found solution few minutes after this email. If there is an
UserDefinedAttributes property not set, you can instantiate new in
this way ...
Object xUDA = AnyConverter.toObject(
new Type( XNameContainer.class ), xPS.getPropertyValue(
"UserDefinedAttributes" ) );
... xPS contains com.sun.star.bean.XPropertySet, AnyConverter and Type
are from com.sun.star.uno. No exceptions handled in this example.
--
Robert Vojta
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]