Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


:: 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 cancelled by other reasons.

Methods' Summary
cancelTermination is called when the master environment (e.g., desktop) was cancelled 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 cancelled in it's terminate request.

Termination can be intercepted by throwing TerminationVetoException. But if a listener was queried for termination .. doesnt throwed a veto exception ... it doesnt 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 occure. But these listener doesnt know if its allowed to start new processes then. Using this optional(!) interface will make it possible to be informed about cancelled termination requests also.

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

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.