summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/viewshe3.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-25 06:05:19 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-25 06:05:19 +0000
commit270e66d6dca6bf7cd31acd2ff7018b8fb78fda45 (patch)
tree48330208c31760e2e18a8c06c6e1252aa1f62171 /sd/source/ui/view/viewshe3.cxx
parentadb4281d6c148334db12ada2b7d5490db65dcc26 (diff)
INTEGRATION: CWS impress148 (1.58.76); FILE MERGED
2008/07/08 10:52:44 af 1.58.76.1: #i91337# Keep task pane hidden for Draw and outline view.
Diffstat (limited to 'sd/source/ui/view/viewshe3.cxx')
-rw-r--r--sd/source/ui/view/viewshe3.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx
index a5b5a5884ec4..e92da034f4d8 100644
--- a/sd/source/ui/view/viewshe3.cxx
+++ b/sd/source/ui/view/viewshe3.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewshe3.cxx,v $
- * $Revision: 1.58 $
+ * $Revision: 1.59 $
*
* This file is part of OpenOffice.org.
*
@@ -252,8 +252,14 @@ SdPage* ViewShell::CreateOrDuplicatePage (
if (! pArgs)
{
// Make the layout menu visible in the tool pane.
- framework::FrameworkHelper::Instance(GetViewShellBase())->RequestTaskPanel(
+ const ViewShellBase& rBase (GetViewShellBase());
+ if (rBase.GetMainViewShell()!=NULL
+ && rBase.GetMainViewShell()->GetShellType()!=ViewShell::ST_OUTLINE
+ && rBase.GetMainViewShell()->GetShellType()!=ViewShell::ST_DRAW)
+ {
+ framework::FrameworkHelper::Instance(GetViewShellBase())->RequestTaskPanel(
framework::FrameworkHelper::msLayoutTaskPanelURL);
+ }
// AutoLayouts muessen fertig sein
pDocument->StopWorkStartupDelay();