On Friday 20 April 2007 18:36, Mathias Bauer wrote:
Hi Mathias,
thanks for your reply!
> You should use the upper closer, the big one above the smaller one. If
> you dislike the small closer: IIRC there was a configuration setting to
> remove it so that closing the last window automatically shuts down OOo.
Sorry , but what do you mean with 'the upper closer'? I've also tried to use
the containerWindow, but the problem is, that the currentController isn't
available anymore..
xCloseable = (XCloseable) UnoRuntime.queryInterface(XCloseable.class,
xModel.getCurrentController().getFrame().getContainerWindow());
if (xCloseable != null) {
xCloseable.close(false);
} else {
xComponent.dispose();
}
Greets
Reinhold
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]