Re: [api-dev] Closing problem

2008-07-28 Thread Dirk Voelzke
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,

Re: [api-dev] Closing problem

2008-07-26 Thread Tobias Krais
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

Re: [api-dev] Closing problem

2008-07-25 Thread Tobias Krais
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

Re: [api-dev] Closing problem

2008-07-25 Thread Robert Vojta
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?

[api-dev] Closing problem

2008-07-10 Thread Tobias Krais
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