diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 12:42:34 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-09-08 12:42:34 +0000 |
commit | da6a01d2049e7bb4f242421a5b9f4ff55521ca0c (patch) | |
tree | ead6a7d1789358994b0c0bc443441fef789ed74f /sd/source/ui/dlg/PaneDockingWindow.cxx | |
parent | 28b43fee26f9e5e3fce32c3f05d7d79c6545c96b (diff) |
INTEGRATION: CWS impress11 (1.2.30); FILE MERGED
2004/08/05 16:51:17 af 1.2.30.1: #i32098# Title is not passed anymore to constructor but taken from PaneManager. Added SetTitle() method.
Diffstat (limited to 'sd/source/ui/dlg/PaneDockingWindow.cxx')
-rw-r--r-- | sd/source/ui/dlg/PaneDockingWindow.cxx | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx index 59b433f1b382..1f2c09085c39 100644 --- a/sd/source/ui/dlg/PaneDockingWindow.cxx +++ b/sd/source/ui/dlg/PaneDockingWindow.cxx @@ -2,9 +2,9 @@ * * $RCSfile: PaneDockingWindow.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2004-08-04 08:53:51 $ + * last change: $Author: hr $ $Date: 2004-09-08 13:42:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -76,8 +76,7 @@ PaneDockingWindow::PaneDockingWindow ( SfxChildWindow *pChildWindow, ::Window* pParent, const ResId& rResId, - PaneManager::PaneType ePane, - const String& rsTitle) + PaneManager::PaneType ePane) : SfxDockingWindow ( pBindings, pChildWindow, @@ -85,7 +84,7 @@ PaneDockingWindow::PaneDockingWindow ( rResId ), mePane(ePane), - msTitle(rsTitle), + msTitle(), mpTitleToolBox(NULL), maBorder (3,1,3,3), mnChildWindowId(pChildWindow->GetType()) @@ -94,6 +93,7 @@ PaneDockingWindow::PaneDockingWindow ( ViewShellBase& rBase (*ViewShellBase::GetViewShellBase( pBindings->GetDispatcher()->GetFrame())); + msTitle = rBase.GetPaneManager().GetWindowTitle (mePane); rBase.GetPaneManager().SetWindow (mePane, this); // Initialize the title tool box. @@ -132,6 +132,15 @@ PaneDockingWindow::~PaneDockingWindow (void) +void PaneDockingWindow::SetTitle (const String& rsTitle) +{ + msTitle = rsTitle; + Invalidate(); +} + + + + void PaneDockingWindow::Resize (void) { SfxDockingWindow::Resize(); |