Hi Carsten,
your posting in the other thread solved my problem.
> I have one more questions understanding UNO. I tried to make transient
> changes to the menubar as you might have read on this list. And it works
> (due to your help).
>
> My question now is: if I open a OOo with transient changes and the user
> changes the menu configuration, the changes are no more transient. They
> are saved together with my "transient" changes. Why is this?
I have to add the lines:
-----%<-----
// Make changes only transient (temporary).
com.sun.star.beans.XPropertySet xPropSet = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, myMenubar);
xPropSet.setPropertyValue("Persistent", new Boolean(false));
-----%<-----
Here is the thread with the full code:
http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=14540
Thanks for your help!
Greetings, Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]