diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 08:19:27 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 08:19:27 +0000 |
commit | e9f431656eb8d67d9fffbe1a272f70025f002064 (patch) | |
tree | 1049b859928cf0efe8de6c7c7ee5cf45fd05f6b1 /vcl/source/window/dockmgr.cxx | |
parent | 22f2a9b5688382dea5b3b6b1aacbc8056a14481e (diff) |
INTEGRATION: CWS vcl34 (1.7.16); FILE MERGED
2005/01/06 14:27:00 ssa 1.7.16.1: #i37461# notify listeners only after changing the floating mode
Diffstat (limited to 'vcl/source/window/dockmgr.cxx')
-rw-r--r-- | vcl/source/window/dockmgr.cxx | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx index 8c44e811c13b..bc01d9f4815d 100644 --- a/vcl/source/window/dockmgr.cxx +++ b/vcl/source/window/dockmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dockmgr.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: kz $ $Date: 2005-01-13 18:03:21 $ + * last change: $Author: rt $ $Date: 2005-01-31 09:19:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1228,21 +1228,14 @@ BOOL ImplDockingWindowWrapper::Close() void ImplDockingWindowWrapper::ToggleFloatingMode() { - // notify listeners - GetWindow()->ImplCallEventListeners( VCLEVENT_WINDOW_TOGGLEFLOATING ); - // notify dockingwindow/toolbox - // note: this should (was: must) be done before notifying the + // note: this must be done *before* notifying the // listeners to have the toolbox in the proper state - - // !!! putting this before the notification somehow leads to formatting errors - // when undocking horizontal toolbars by double click, so better keep it here until - // fully understood - // as a result undocking vertical toolbars via double click changes the layout of - // the toolbar buttons, which is a minor problem... if( GetWindow()->ImplIsDockingWindow() ) ((DockingWindow*) GetWindow())->ToggleFloatingMode(); + // now notify listeners + GetWindow()->ImplCallEventListeners( VCLEVENT_WINDOW_TOGGLEFLOATING ); // must be enabled in Window::Notify to prevent permanent docking during mouse move mbStartDockingEnabled = FALSE; |