diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-04-16 15:14:15 +0200 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-04-16 15:14:15 +0200 |
commit | b9650eb842f8050cb43f6374008d9ac1c9058de4 (patch) | |
tree | 7057a7a18c68b6f3e8536c323f8def7e545770c8 /sd/source/ui/toolpanel/ToolPanelViewShell.cxx | |
parent | 240aa1eda8e6750fc100e8353e1a7d0f94ac9f73 (diff) |
slidecopy: now using SID_TASK_PANE in all applications, also in Impress.
Implies registering the respective child window in the apps, not in SFX. Also implies getting rid of SID_RIGHT_PANE
in Impress.
Also, renamed SID_TASK_PANE in Impress to SID_SHOW_TOOL_PANEL, which better fits its purpose, and avoids confusion
with SID_TASKPANE.
Diffstat (limited to 'sd/source/ui/toolpanel/ToolPanelViewShell.cxx')
-rwxr-xr-x | sd/source/ui/toolpanel/ToolPanelViewShell.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sd/source/ui/toolpanel/ToolPanelViewShell.cxx b/sd/source/ui/toolpanel/ToolPanelViewShell.cxx index 26cb270950f3..0d7eeea99190 100755 --- a/sd/source/ui/toolpanel/ToolPanelViewShell.cxx +++ b/sd/source/ui/toolpanel/ToolPanelViewShell.cxx @@ -34,6 +34,7 @@ #include "taskpane/TaskPaneControlFactory.hxx" #include "controls/MasterPagesPanel.hxx" #include "LayoutMenu.hxx" +#include "DrawDocShell.hxx" #include "controls/TableDesignPanel.hxx" #include "controls/CustomAnimationPanel.hxx" #include "controls/SlideTransitionPanel.hxx" @@ -366,9 +367,13 @@ TYPEINIT1(ToolPanelViewShell, ViewShell); // --------------------------------------------------------------------------------------------------------------------- ToolPanelViewShell_Impl::InitialPanel ToolPanelViewShell_Impl::impl_determineInitialPanel() { + InitialPanel aPanelToActivate; + if ( GetAntiImpl().GetViewShellBase().GetDocShell()->GetDocumentType() == DOCUMENT_TYPE_DRAW ) + // for Draw, rely on SFX's default handling, which is to activate the previously active panel + return aPanelToActivate; + // Default to Layout panel, but check whether the requested configuration already contains a tool panel, in this case, // use that one. - InitialPanel aPanelToActivate; aPanelToActivate.sPanelResourceURL = FrameworkHelper::msLayoutTaskPanelURL; aPanelToActivate.bActivateDirectly = false; try |