summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-06-05 11:48:17 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-06-07 15:00:32 +0100
commitee1726bfdba483623d496a3bcc09089e8b55cd65 (patch)
treed53cb5317b9c311c3bd8c745f8cdcc82f3b851c8 /sd/source/ui/dlg
parentabdbb847fa135dd758ef3ef99db4c07a2671ca47 (diff)
sidebar: disable impress task pane if sidebar is enabled.
Change-Id: I64e601dfd6f4a3763188537f9507c536b86b70fe
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r--sd/source/ui/dlg/PaneChildWindows.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/dlg/PaneChildWindows.cxx b/sd/source/ui/dlg/PaneChildWindows.cxx
index df7997401228..30e5b2fac961 100644
--- a/sd/source/ui/dlg/PaneChildWindows.cxx
+++ b/sd/source/ui/dlg/PaneChildWindows.cxx
@@ -215,6 +215,14 @@ void ToolPanelChildWindow::ActivateToolPanel( const OUString& i_rPanelURL )
}
}
+void ToolPanelChildWindow::RegisterChildWindowIfEnabled (sal_Bool bVisible,
+ SfxModule *pMod,
+ sal_uInt16 nFlags)
+{
+ if ( ! SfxViewFrame::IsSidebarEnabled() )
+ RegisterChildWindow( bVisible, pMod, nFlags );
+}
+
} // end of namespace ::sd
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */