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,
Hi Robert,
I've got an ugly solution: each second I try to get the storage location
of my XComponent. As soon as it failes (a disposed exception is thrown),
I know the document was closed. What do you think about this solution?
Or do you have any better ideas?
I'm not sure if I understood
Hi together,
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
On Fri, Jul 25, 2008 at 10:12 PM, Tobias Krais
[EMAIL PROTECTED] wrote:
Hi,
I've got an ugly solution: each second I try to get the storage location
of my XComponent. As soon as it failes (a disposed exception is thrown),
I know the document was closed. What do you think about this solution?
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