diff options
author | Andreas Schlüns <as@openoffice.org> | 2000-10-16 10:52:06 +0000 |
---|---|---|
committer | Andreas Schlüns <as@openoffice.org> | 2000-10-16 10:52:06 +0000 |
commit | b9e4d925df9bbc8a4b91187b55b0cc2c3d79fb1b (patch) | |
tree | 092167a43451d64f50514015321b93ad91a4ea2d /framework/inc | |
parent | 8fc48af7b5dad8f10e1db984b0bfc2779bc0fa58 (diff) |
add quit timer for desktop termination after closing last document
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/classes/framecontainer.hxx | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/framework/inc/classes/framecontainer.hxx b/framework/inc/classes/framecontainer.hxx index 1f6c6c01b024..6edda95385ed 100644 --- a/framework/inc/classes/framecontainer.hxx +++ b/framework/inc/classes/framecontainer.hxx @@ -2,9 +2,9 @@ * * $RCSfile: framecontainer.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:29:22 $ + * last change: $Author: as $ $Date: 2000-10-16 11:51:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,6 +66,10 @@ // my own includes //_________________________________________________________________________________________________________________ +#ifndef __FRAMEWORK_CLASSES_ASYNCQUIT_HXX_ +#include <classes/asyncquit.hxx> +#endif + #ifndef __FRAMEWORK_MACROS_DEBUG_HXX_ #include <macros/debug.hxx> #endif @@ -356,6 +360,23 @@ class FrameContainer REFERENCE< XFRAME > getActive() const; + /*-****************************************************************************************************//** + @short Enable or disable automatic termination of desktop if last frame was removed from container + @descr Only the desktop should use this functions! + + @seealso class Desktop + @seealso class AsyncQuit + + @param "aMode", with these mode you can set default time values for different shutdown scenes at timer + @return - + + @onerror - + *//*-*****************************************************************************************************/ + + void enableQuitTimer( const REFERENCE< XDESKTOP >& xDesktop , + const TAsyncQuitMode& aMode ); + void disableQuitTimer(); + //------------------------------------------------------------------------------------------------------------- // protected methods //------------------------------------------------------------------------------------------------------------- @@ -409,6 +430,7 @@ class FrameContainer sal_Bool m_bLock ; /// lock to block append()-, remove()- or clear()-calls STLVECTOR< REFERENCE< XFRAME > > m_aContainer ; /// list to hold all frames REFERENCE< XFRAME > m_xActiveFrame ; /// one container item can be the current active frame. Its neccessary for Desktop or Frame implementation. + AsyncQuit* m_pQuitTimer ; /// if an instance of these class used by desktop and last frame will be removed we must terminate the desktop }; // class FrameContainer |