:: com :: sun :: star :: frame ::

unpublished interface XTerminateListener2
Base Interfaces
XTerminateListener2XTerminateListener
   ┗ ::com::sun::star::lang::XEventListener

XTerminateListener
(referenced interface's summary:)
has to be provided if an object wants to receive an event when the master environment (e.g., desktop) is terminated.
Usage Restrictions
not published
Description
extend interface XTerminateListener so a listener will be informed in case termination process was canceled by other reasons.

Methods' Summary
cancelTermination is called when the master environment (e.g., desktop) was canceled in it's terminate request.  
Methods' Details
cancelTermination
void
cancelTermination( [in] ::com::sun::star::lang::EventObject  Event );

Description
is called when the master environment (e.g., desktop) was canceled in it's terminate request.

Termination can be intercepted by throwing TerminationVetoException. But if a listener was queried for termination .. doesn't throw a veto exception ... it doesn't know if termination will be real next time. Because any other listener can throw those exception too ... and so it can happen that after queryTermination() no notifyTermination() will occur. But these listener don't know if its allowed to start new processes then. Using this optional(!) interface will make it possible to be informed about canceled termination requests also.

Parameter Event
describe the source of the event (e.g., the desktop)
Top of Page