Hi Tobis,
you can implement the XTerminateListener interface, register yourself at
the desktop with addTerminateListener and when the queryTermination
method is called, throw an TerminationVetoException. This will prevent
the office from shutting down.
I hope this short receipt helps you,
sincerely, Dirk
Tobias Krais wrote:
Hi together,
I need some help regarding the following issue. May be it is stupid, but
please help anyway...
I have a Java application bootstrapping OOo and opening a document.
After opening the document, some additional stuff is done. Now I want to
wait, until the user closes the document. When the user closes the
document, I want OOo to leave an initialized UNO and do some other stuff.
How to do this? I added a close listener and thus I can catch the close
event. But how to prevent OOo from closing completely?
Can anyone help me?
Greetings, Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sun Microsystems GmbH Dirk Voelzke
Nagelsweg 55 Software Engineer
20097 Hamburg
Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]