diff options
Diffstat (limited to 'desktop/source/app/app.cxx')
-rw-r--r-- | desktop/source/app/app.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 6d0fe6e0cb48..c00885433eac 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -76,6 +76,7 @@ #include <com/sun/star/office/Quickstart.hpp> #include <com/sun/star/system/XSystemShellExecute.hpp> #include <com/sun/star/system/SystemShellExecute.hpp> +#include <com/sun/star/frame/XDesktopInternal.hpp> #include <desktop/exithelper.h> #include <sal/log.hxx> @@ -606,6 +607,13 @@ bool Desktop::QueryExit() return bExit; } +void Desktop::Shutdown() +{ + Reference<XDesktop2> xDesktop = css::frame::Desktop::create(::comphelper::getProcessComponentContext()); + Reference<XDesktopInternal> xDesktopInternal(xDesktop, UNO_QUERY_THROW); + xDesktopInternal->shutdown(); +} + void Desktop::HandleBootstrapPathErrors( ::utl::Bootstrap::Status aBootstrapStatus, const OUString& aDiagnosticMessage ) { if ( aBootstrapStatus != ::utl::Bootstrap::DATA_OK ) |