Hi Carsten,

> This is not a bug but how the OpenOffice.org framework works. The
> controller will be removed from the frame and another controller is
> attached. The layout manager which controls the user interface elements
> has to destroy all element when a controller is detached. Your transient
> changes are only stored within this user interface element (menu bar),
> which gets destroyed.
> Solution: You have to implement a
> com.sun.star.frame.XFrameActionListener which must be registered at the
> frame. Whenever you receive the event FrameAction_COMPONENT_ATTACHED you
> have to make the transient changes again. Please be aware that the frame
> can be recycled and another document (even from another application
> module) can be associated with the frame. So you should verify that you
> want to make changes to this frame.

thank you for your explanation. I have to think about it. May be we give
up the transient idea.

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to