summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/PaneDockingWindow.cxx
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2010-02-25 16:51:49 +0100
committerAndre Fischer <af@openoffice.org>2010-02-25 16:51:49 +0100
commitf1a49de1365676c852a766617c35614d14f899d8 (patch)
tree93a9f70a2521bbcc51452e570aee5032caab3c6a /sd/source/ui/dlg/PaneDockingWindow.cxx
parent530eea93535c9ca85349913dad05143441cc7bd7 (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.cxx17
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