summaryrefslogtreecommitdiff
path: root/framework/inc/services/desktop.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/inc/services/desktop.hxx')
-rw-r--r--framework/inc/services/desktop.hxx70
1 files changed, 35 insertions, 35 deletions
diff --git a/framework/inc/services/desktop.hxx b/framework/inc/services/desktop.hxx
index 3e3fffaa7f..b8839a8c2f 100644
--- a/framework/inc/services/desktop.hxx
+++ b/framework/inc/services/desktop.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -80,7 +80,7 @@
//_________________________________________________________________________________________________________________
// other includes
//_________________________________________________________________________________________________________________
-#include <svtools/cmdoptions.hxx>
+#include <unotools/cmdoptions.hxx>
#include <cppuhelper/propshlp.hxx>
#include <cppuhelper/interfacecontainer.hxx>
#include <cppuhelper/weak.hxx>
@@ -181,80 +181,80 @@ class Desktop : // interfaces
//---------------------------------------------------------------------
/**
@interface XDesktop
-
+
@short try to shutdown these desktop environment.
-
+
@descr Will try to close all frames. If at least one frame could
not be closed successfully termination will be stopped.
-
+
Registered termination listener will be taken into account
also. As special feature some of our registered listener
are well known by it's UNO implementation name. They are handled
different to all other listener.
-
+
Btw: Desktop.terminate() was designed in the past to be used
within an UI based envrionment. So it's allowed e.g. to
call XController.suspend() here. If UI isnt an option ... please
use XCloseable.close() at these desktop implementation.
... if it will be supported in the future .-))
-
+
@seealso XTerminateListener
@seealso XTerminateListener2
-
+
@return true if all open frames could be closed and no listener throwed
a veto exception; false otherwise.
-
+
@onerror False will be returned.
@threadsafe yes
*/
virtual ::sal_Bool SAL_CALL terminate()
throw( css::uno::RuntimeException );
-
+
//---------------------------------------------------------------------
/**
@interface XDesktop
-
+
@short add a listener for termination events
-
+
@descr Additional to adding normal listener these method was implemented special.
Every listener will be asked for it's uno implementation name.
Some of them are well known ... and the corresponding listener wont be added
to the container of "normal listener". Those listener will be set as special
member.
see e.g. member m_xSfxTerminator
-
+
@seealso terminate()
-
+
@param xListener
the listener for registration.
-
+
@threadsafe yes
*/
virtual void SAL_CALL addTerminateListener( const css::uno::Reference< css::frame::XTerminateListener >& xListener )
throw( css::uno::RuntimeException );
-
+
//---------------------------------------------------------------------
/**
@interface XDesktop
-
+
@short remove a listener from this container.
-
+
@descr Additional to removing normal listener these method was implemented special.
Every listener will be asked for it's uno implementation name.
Some of them are well known ... and the corresponding listener was set as special member.
Now those special member will be reseted also.
see e.g. member m_xSfxTerminator
-
+
@seealso terminate()
-
+
@param xListener
the listener for deregistration.
-
+
@threadsafe yes
*/
virtual void SAL_CALL removeTerminateListener( const css::uno::Reference< css::frame::XTerminateListener >& xListener )
throw( css::uno::RuntimeException );
-
+
virtual css::uno::Reference< css::container::XEnumerationAccess > SAL_CALL getComponents ( ) throw( css::uno::RuntimeException );
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL getCurrentComponent ( ) throw( css::uno::RuntimeException );
virtual css::uno::Reference< css::frame::XFrame > SAL_CALL getCurrentFrame ( ) throw( css::uno::RuntimeException );
@@ -327,21 +327,21 @@ class Desktop : // interfaces
virtual ::sal_Int32 SAL_CALL leaseNumber( const css::uno::Reference< css::uno::XInterface >& xComponent )
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException );
-
+
// css.frame.XUntitledNumbers
virtual void SAL_CALL releaseNumber( ::sal_Int32 nNumber )
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException );
-
+
// css.frame.XUntitledNumbers
virtual void SAL_CALL releaseNumberForComponent( const css::uno::Reference< css::uno::XInterface >& xComponent )
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException );
-
+
// css.frame.XUntitledNumbers
virtual ::rtl::OUString SAL_CALL getUntitledPrefix()
throw (css::uno::RuntimeException);
-
+
//-------------------------------------------------------------------------------------------------------------
// protected methods
//-------------------------------------------------------------------------------------------------------------
@@ -367,7 +367,7 @@ class Desktop : // interfaces
css::uno::Reference< css::lang::XComponent > impl_getFrameComponent ( const css::uno::Reference< css::frame::XFrame >& xFrame ) const;
static const css::uno::Sequence< css::beans::Property > impl_getStaticPropertyDescriptor( );
-
+
//---------------------------------------------------------------------
/** calls queryTermination() on every registered termination listener.
*
@@ -388,9 +388,9 @@ class Desktop : // interfaces
*/
void impl_sendQueryTerminationEvent(TTerminateListenerList& lCalledListener,
::sal_Bool& bVeto );
-
+
//---------------------------------------------------------------------
- /** calls cancelTermination() on every termination listener
+ /** calls cancelTermination() on every termination listener
* where queryTermination() was called before.
*
* Note: Only normal termination listener (registered in list m_aListenerContainer
@@ -404,7 +404,7 @@ class Desktop : // interfaces
* @see impl_sendQueryTerminationEvent()
*/
void impl_sendCancelTerminationEvent(const TTerminateListenerList& lCalledListener);
-
+
//---------------------------------------------------------------------
/** calls notifyTermination() on every registered termination listener.
*
@@ -413,7 +413,7 @@ class Desktop : // interfaces
* has to be handled explicitly !
*/
void impl_sendNotifyTerminationEvent();
-
+
//---------------------------------------------------------------------
/** try to close all open frames.
*
@@ -467,13 +467,13 @@ class Desktop : // interfaces
::rtl::OUString m_sName ;
::rtl::OUString m_sTitle ;
css::uno::Reference< css::frame::XDispatchRecorderSupplier > m_xDispatchRecorderSupplier ;
-
+
//---------------------------------------------------------------------
/** special terminate listener to close pipe and block external requests
* during/after termination process is/was running
*/
css::uno::Reference< css::frame::XTerminateListener > m_xPipeTerminator;
-
+
//---------------------------------------------------------------------
/** special terminate listener shown inside system tray (quick starter)
* Will hinder the office on shutdown ... but wish to allow closing
@@ -481,7 +481,7 @@ class Desktop : // interfaces
* it has to be handled special .-)
*/
css::uno::Reference< css::frame::XTerminateListener > m_xQuickLauncher;
-
+
//---------------------------------------------------------------------
/** special terminate listener which loads images asynchronous for current open documents.
* Because internaly it uses blocking system APIs ... it cant be guaranteed that
@@ -491,7 +491,7 @@ class Desktop : // interfaces
* So these implementation must be a special terminate listener too .-(
*/
css::uno::Reference< css::frame::XTerminateListener > m_xSWThreadManager;
-
+
//---------------------------------------------------------------------
/** special terminate listener shuting down the SfxApplication.
* Because these desktop instance closes documents and informs listener