diff options
author | Andre Fischer <af@openoffice.org> | 2010-02-25 16:51:49 +0100 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2010-02-25 16:51:49 +0100 |
commit | f1a49de1365676c852a766617c35614d14f899d8 (patch) | |
tree | 93a9f70a2521bbcc51452e570aee5032caab3c6a /sd/source/ui/dlg/PaneDockingWindow.cxx | |
parent | 530eea93535c9ca85349913dad05143441cc7bd7 (diff) |
renaissance1: #i107215# Improved focus and selection handling.
Diffstat (limited to 'sd/source/ui/dlg/PaneDockingWindow.cxx')
-rw-r--r-- | sd/source/ui/dlg/PaneDockingWindow.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/PaneDockingWindow.cxx b/sd/source/ui/dlg/PaneDockingWindow.cxx index 2aa6039cfb76..b2f17bc0ab2a 100644 --- a/sd/source/ui/dlg/PaneDockingWindow.cxx +++ b/sd/source/ui/dlg/PaneDockingWindow.cxx @@ -39,6 +39,7 @@ #include <sfx2/dispatch.hxx> #include <vcl/toolbox.hxx> #include <vcl/taskpanelist.hxx> +#include <tools/wintypes.hxx> #include "framework/FrameworkHelper.hxx" using namespace ::com::sun::star; @@ -58,8 +59,7 @@ PaneDockingWindow::PaneDockingWindow ( _pBindings, pChildWindow, pParent, - rResId - ), + rResId), msPaneURL(rsPaneURL), msTitle(rsTitle), mpTitleToolBox(), @@ -397,6 +397,18 @@ void PaneDockingWindow::DataChanged (const DataChangedEvent& rEvent) +void PaneDockingWindow::MouseButtonDown (const MouseEvent& rEvent) +{ + if (rEvent.GetButtons() == MOUSE_LEFT && mpContentWindow) + { + mpContentWindow->GrabFocus(); + } + SfxDockingWindow::MouseButtonDown(rEvent); +} + + + + ::Window* PaneDockingWindow::GetContentWindow (void) { return mpContentWindow.get(); @@ -411,4 +423,5 @@ void PaneDockingWindow::DataChanged (const DataChangedEvent& rEvent) } + } // end of namespace ::sd |