diff options
author | Oliver Bolte <obo@openoffice.org> | 2006-03-21 16:32:34 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2006-03-21 16:32:34 +0000 |
commit | 9a882a7370e500a716d5da57aeb54840ee0881ee (patch) | |
tree | 85399d4bfe0b82235ff5f9714cc4ecef03b0bcd2 /sd | |
parent | 2008961f6736270af2b68a717c79d22354ad6fd4 (diff) |
INTEGRATION: CWS viewswitch (1.13.26); FILE MERGED
2006/03/16 10:15:58 af 1.13.26.4: #132893# Adaption to changes in ViewShellManager.
2006/01/20 14:34:32 af 1.13.26.3: #i57551# Fixed resync problems.
2005/11/29 15:28:19 af 1.13.26.2: #i57552# Added CreateSubController().
2005/11/17 15:07:31 af 1.13.26.1: #i57551# TaskPaneShellManager supports ViewShell::ShellFactory interface.
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/toolpanel/TaskPaneViewShell.cxx | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/sd/source/ui/toolpanel/TaskPaneViewShell.cxx b/sd/source/ui/toolpanel/TaskPaneViewShell.cxx index f6646555876f..8e7002411e49 100644 --- a/sd/source/ui/toolpanel/TaskPaneViewShell.cxx +++ b/sd/source/ui/toolpanel/TaskPaneViewShell.cxx @@ -4,9 +4,9 @@ * * $RCSfile: TaskPaneViewShell.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: rt $ $Date: 2005-10-24 07:45:23 $ + * last change: $Author: obo $ $Date: 2006-03-21 17:32:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -54,10 +54,10 @@ #include "TitleToolBox.hxx" #include "taskpane/ControlContainer.hxx" #include "FrameView.hxx" -#include "ObjectBarManager.hxx" #include "Window.hxx" #include "PaneDockingWindow.hxx" #include "AccessibleTaskPane.hxx" +#include "DrawSubController.hxx" #include "sdmod.hxx" #include "app.hrc" #include "glob.hrc" @@ -294,7 +294,7 @@ TaskPaneViewShell::TaskPaneViewShell ( mpTaskPane(NULL), mpTitleToolBox(NULL), mbIsInitialized(false), - mpSubShellManager(NULL), + mpSubShellManager(), mnMenuId(0) { meShellType = ST_TASK_PANE; @@ -354,6 +354,12 @@ TaskPaneViewShell::TaskPaneViewShell ( mpContentWindow->Hide(); mpContentWindow->Show(); } + + // Register the shell manager as factory at the ViewShellManager. + mpSubShellManager.reset (new TaskPaneShellManager( + GetViewShellBase().GetViewShellManager(), + *this)); + GetViewShellBase().GetViewShellManager().AddSubShellFactory(this, mpSubShellManager); } @@ -361,6 +367,7 @@ TaskPaneViewShell::TaskPaneViewShell ( TaskPaneViewShell::~TaskPaneViewShell (void) { + GetViewShellBase().GetViewShellManager().RemoveSubShellFactory(this, mpSubShellManager); } @@ -578,31 +585,8 @@ void TaskPaneViewShell::GetState (SfxItemSet& rItemSet) -void TaskPaneViewShell::GetLowerShellList ( - ::std::vector<SfxShell*>& rShellList) const -{ - GetObjectBarManager().GetLowerShellList (rShellList); - GetSubShellManager().GetLowerShellList (rShellList); -} - - - - -void TaskPaneViewShell::GetUpperShellList ( - ::std::vector<SfxShell*>& rShellList) const -{ - GetObjectBarManager().GetUpperShellList (rShellList); - GetSubShellManager().GetUpperShellList (rShellList); -} - - - TaskPaneShellManager& TaskPaneViewShell::GetSubShellManager (void) const { - if (mpSubShellManager.get() == NULL) - mpSubShellManager.reset (new TaskPaneShellManager( - GetViewShellBase().GetViewShellManager(), - *this)); return *mpSubShellManager.get(); } @@ -668,6 +652,15 @@ void TaskPaneViewShell::ShowPanel (PanelId nPublicId) +::std::auto_ptr<DrawSubController> TaskPaneViewShell::CreateSubController (void) +{ + // This view shell is not designed to be the main view shell and thus + // does not support a UNO controller. + return ::std::auto_ptr<DrawSubController>(); +} + + + //===== TaskPaneViewShell::Implementation ===================================== |