(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: 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 Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. 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.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.