Overview | Module | Use | Devguide | Index

Methods' Summary | Methods' Details | Attributes' Summary | Attributes' Details

:: com :: sun :: star :: frame ::
interface XTerminateListener
  Base Hierarchy
      ::com::sun::star::uno::XInterface
       |
       +-::com::sun::star::lang::XEventListener
          |
          +-XTerminateListener
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() See also XDesktop::addTerminateListener() See also 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 raises( | Event ) 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

Copyright © 2003 Sun Microsystems, Inc.