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

interface XTerminateListener
Base Interfaces
XTerminateListener
┗ ::com::sun::star::lang::XEventListener

::com::sun::star::lang::XEventListener
(referenced interface's summary:)
base interface for all event listeners interfaces.
Description
has to be provided if an object wants to receive an event when the master environment (e.g., desktop) is terminated.
See also
XDesktop::terminate(), XDesktop::addTerminateListener(), XDesktop::removeTerminateListener()

Methods' Summary
queryTermination is called when the master environment (e.g., desktop) is about to terminate.  
notifyTermination is called when the master environment is finally terminated. Not veto will be accepted then.  
Methods' Details
queryTermination
void
queryTermination( [in] ::com::sun::star::lang::EventObject  Event )
raises( TerminationVetoException );

Description
is called when the master environment (e.g., desktop) is about to terminate.

Termination can be intercepted by throwing TerminationVetoException. Interceptor will be the new owner of desktop and should call XDesktop::terminate() after finishing his own operations.

Parameter Event
describe the source of the event (e.g., the desktop)
Throws
TerminationVetoException listener can disagree with this query by throwing this veto exception
notifyTermination
void
notifyTermination( [in] ::com::sun::star::lang::EventObject  Event );

Description
is called when the master environment is finally terminated. Not veto will be accepted then.
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.