Hi Mathias,
>> That seems for me a really good solution. In case I want a "OO
>> Quickstarter" to remain alive after finishing my conversion I don't have
>> to check for other tasks and don't call terminate() - I just have to
>> close my document. Is that correct?
>
> I'm not sure if I understand you correctly. OOo will always terminate if
> the last visible task window is closed except when the "Quickstarter" is
> running because the QS exactly does what I have recommended to you: it
> registers a terminate listener. If you have your own terminate listener
> and veto against termination OOo will stay in memory. If you just close
> your document and then go away it will stay there. The only way to
> remove OOo is to call terminate or to open a visible task and close it
> so that OOo itself will try to terminate.
One more question. But first my solution:
-----%<-----
xDesktop.addTerminateListener(new
com.sun.star.frame.XTerminateListener() {
public void queryTermination(EventObject arg0)
throws com.sun.star.frame.TerminationVetoException {
// Disallow termination
throw new com.sun.star.frame.TerminationVetoException();
}
public void notifyTermination(EventObject arg0) {
}
public void disposing(EventObject arg0) {
}
});
-----%<-----
This works perfectly. Nobody is able to kill my little cute programm
:-). But. Users can't close their OpenOffice until I don't remove my
terminate listener. How can I allow users to close their OO and disallow
to close mine?
Greetings, Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]