Reinhold Merk schrieb:

> 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..

So you are talking about the "Close" entry in the menu, sorry, I was
talking about the window elements. But in this case also the mentioned
configuration entry would help. Are you sure that your users will want
this? OOo 1.0 did exactly what you want: shut down OOo when the last
document is closed. We received a lot of complaints against that and so
we changed it to the current behavior. If you are interested I can look
up the configuration setting you have to set.

> 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..

If the document is closed the document (model) is nearly dead. I'm
astonished that you don't get an exception here:

> xCloseable = (XCloseable) UnoRuntime.queryInterface(XCloseable.class,         
> xModel.getCurrentController().getFrame().getContainerWindow());
>                               if (xCloseable != null) {
>                                       xCloseable.close(false);
>                               } else {
>                                       xComponent.dispose();
>                               }

I don't understand why the Desktop.terminate() doesn't work for you.
Usually this works fine. Perhaps you can a call stack of the crash? We
would surely get one if you sent a crash report and gave us the report
ID you will receive in return (may take some time if the server is busy).

Ciao,
Mathias


-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.

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

Reply via email to