diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-04-03 12:59:34 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-04-03 12:59:34 +0000 |
commit | 668493b8d95fc5b7ae6f7d7c97bba153bc928956 (patch) | |
tree | d5ff54ca96eff244c243fb59b87b461d435bc862 /sd/source/ui/inc/ViewShellBase.hxx | |
parent | 01444eb5b3caba3fda7d177176efec5365be143a (diff) |
INTEGRATION: CWS presenterview (1.18.20); FILE MERGED
2008/01/09 18:28:24 cl 1.18.20.3: #i15900# slideshow api consolidation
2007/07/24 11:58:12 af 1.18.20.2: RESYNC: (1.19-1.21); FILE MERGED
2007/07/10 14:27:44 af 1.18.20.1: #i18486# Converted several members of ViewShellBase to shared_ptrs.
Diffstat (limited to 'sd/source/ui/inc/ViewShellBase.hxx')
-rw-r--r-- | sd/source/ui/inc/ViewShellBase.hxx | 38 |
1 files changed, 7 insertions, 31 deletions
diff --git a/sd/source/ui/inc/ViewShellBase.hxx b/sd/source/ui/inc/ViewShellBase.hxx index f8b7f26edc2d..537fbe0c5df4 100644 --- a/sd/source/ui/inc/ViewShellBase.hxx +++ b/sd/source/ui/inc/ViewShellBase.hxx @@ -4,9 +4,9 @@ * * $RCSfile: ViewShellBase.hxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: obo $ $Date: 2007-07-17 13:01:29 $ + * last change: $Author: kz $ $Date: 2008-04-03 13:59:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -36,21 +36,14 @@ #ifndef SD_VIEW_SHELL_BASE_HXX #define SD_VIEW_SHELL_BASE_HXX -#ifndef SD_VIEW_SHELL_HXX #include "ViewShell.hxx" -#endif -#ifndef SD_GLOB_HXX #include "glob.hxx" -#endif -#ifndef _SFXVIEWSH_HXX #include <sfx2/viewsh.hxx> -#endif -#ifndef _VIEWFAC_HXX #include <sfx2/viewfac.hxx> -#endif #include <memory> #include <boost/shared_ptr.hpp> +#include <boost/scoped_ptr.hpp> #include <set> @@ -66,7 +59,6 @@ namespace sd { class DrawController; class DrawDocShell; class FormShellManager; -class PrintManager; class ToolBarManager; class UpdateLockManager; class ViewShell; @@ -107,7 +99,7 @@ public: */ virtual void LateInit (const ::rtl::OUString& rsDefaultView); - ViewShellManager& GetViewShellManager (void) const; + ::boost::shared_ptr<ViewShellManager> GetViewShellManager (void) const; /** Return the main view shell stacked on the called ViewShellBase object. This is usually the view shell displayed in the center @@ -243,15 +235,11 @@ public: executing the slot SID_PRESENTATION asynchronous */ void StartPresentation(); - /** this methods ends the presentation by - executing the slot SID_PRESENTATION_END asynchronous */ - void StopPresentation(); - /** Return an event multiplexer. It is a single class that forwards events from various sources. This method must not be called before LateInit() has terminated. */ - tools::EventMultiplexer& GetEventMultiplexer (void); + ::boost::shared_ptr<tools::EventMultiplexer> GetEventMultiplexer (void); /** returns the complete area of the current view relative to the frame window @@ -262,7 +250,7 @@ public: ::boost::shared_ptr<ToolBarManager> GetToolBarManager (void) const; - FormShellManager& GetFormShellManager (void) const; + ::boost::shared_ptr<FormShellManager> GetFormShellManager (void) const; DrawController& GetDrawController (void) const; @@ -288,22 +276,10 @@ protected: private: class Implementation; - ::std::auto_ptr<Implementation> mpImpl; - ::std::auto_ptr<ViewShellManager> mpViewShellManager; + ::boost::scoped_ptr<Implementation> mpImpl; DrawDocShell* mpDocShell; SdDrawDocument* mpDocument; - /// The print manager is responsible for printing documents. - ::std::auto_ptr<PrintManager> mpPrintManager; - - ::std::auto_ptr<FormShellManager> mpFormShellManager; - - ::std::auto_ptr<tools::EventMultiplexer> mpEventMultiplexer; - - ::boost::shared_ptr<UpdateLockManager> mpUpdateLockManager; - - ::std::auto_ptr<CustomHandleManager> mpCustomHandleManager; - /** Determine from the properties of the document shell the initial type of the view shell in the center pane. We use this method to avoid starting with the wrong type. When ReadUserDataSequence() is called |