Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: task ::

interface XRestartManager
Description
allows to try to restart the office.
Since
OOo 3.3

Methods' Summary
requestRestart let the office restart asynchronously  
isRestartRequested allows to get info whether the restart has been requested and provide the initialization status.  
Methods' Details
requestRestart
void
requestRestart( [in] XInteractionHandler  xInteractionHandler )
raises( ::com::sun::star::uno::Exception );

Description
let the office restart asynchronously
Parameter xInteractionHandler
the InteractionHandler service implementation, that is used in case a problem is detected during requesting the restart.
Throws
com::sun::star::uno::Exception to notify the caller about possible failures
isRestartRequested
boolean
isRestartRequested( [in] boolean  bInitialized )
raises( ::com::sun::star::uno::Exception );

Description
allows to get info whether the restart has been requested and provide the initialization status.

The office has to call this method just before the main loop has been started, with the true as argument, so that the implementation knows that the office is initialized. If the method returns true, the office should restart without starting the main loop.

Parameter bInitialized
specifies whether the office process is initialized already, if the caller does not have this information, he should provide false.
Returns
true if the office restart has been requested, false otherwise
Throws
com::sun::star::uno::Exception to notify the caller about possible failures
Top of Page

Apache Software Foundation

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

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