Andreas Schlüns wrote:

> By the way ... there is an example, why terminate shouldnt close any 
> document before asking all registered listener:
> 
> I know OOo programmer who wrote scripts/addon's, which open several 
> documents at the same time. And they whished to supress closing of this 
> set of documents. But instead of listen for close events on every 
> document/frame ... they decided to listen for terminate events only. So 
> these terminate listener uses the "shortest way" to hinder the office on 
> closing these frames .-)

Well, I was afraid that you would give this answer.

> Yes ... that's wrong - but it's public. An yes: there is no guarantee 
> that these frames wont be closed by other objects (other then the desktop).

As you said: it isn't a good solution anyway as it doesn't help in all
cases and it is not a documented behavior. And it looks painful. Why not
drop it? We can't always refrain from fixing bugs or API usability
issues just because somebody could rely on the wrong behavior.

> I dont like the idea that Desktop.terminate() is used for closing a 
> "visible office" only. Internal it does not differ between hidden and 
> visible documents. Terminate closes it all.

Right.

> Mathias: Do you realy like to open the "Büchse der Pandora" here .-)

I think Pandora's box is already open. :-)
But I'm still not sure what is the right behavior. Bug whatever will
come out of this discussion we should document it and we should have two
defined ways to terminate the desktop: one with trying to close all
tasks and one without. At the end it doesn't matter which choice the
current terminate() call will take.

Ciao,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

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

Reply via email to