LibreOffice
LibreOffice 24.2 SDK API Reference
List of all members
TerminationVetoException Exception Referencepublished

can be thrown by a XTerminateListener to prevent the environment (e.g., desktop) from terminating More...

import"TerminationVetoException.idl";

Inheritance diagram for TerminationVetoException:
Exception

Additional Inherited Members

- Public Attributes inherited from Exception
string Message
 gives a detailed description of the reason, why the exception was thrown. More...
 
com::sun::star::uno::XInterface Context
 should contain a reference to the original, which raised the exception. More...
 

Detailed Description

can be thrown by a XTerminateListener to prevent the environment (e.g., desktop) from terminating

If a XTerminateListener use this exception for a veto against the termination of the office, he will be the new "owner" of it. After his own operation will be finished, he MUST try to terminate the office again. Any other veto listener can intercept that again or office will die really.

Since LibreOffice 5.3: Throwing this exception will only prevent termination. Exiting LibreOffice will close all the windows, but the process will keep running.

See also
XDesktop::terminate()
XTerminateListener

The documentation for this exception was generated from the following file: