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

interface XRestartManager
Description
allows to try to restart the office.
Since
OOo3.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 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.