summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-01-28 14:42:01 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-01-28 14:42:01 +0000
commitf6e6904b5d07d917e44f17c74d3c9261d0677b4d (patch)
tree8582854ab90267328ebde654ac23956d4ad52068 /sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
parentb7508c464cf60fc51ecd5e87547474d6e805f8b7 (diff)
INTEGRATION: CWS impress30 (1.12.2); FILE MERGED
2005/01/19 10:51:24 af 1.12.2.1: #i40949# Added new member mbProcessingMouseButtonDown.
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
index 008f22ae2c9e..6fb6c730c8cd 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: SlsSelectionFunction.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: obo $ $Date: 2005-01-25 15:17:50 $
+ * last change: $Author: rt $ $Date: 2005-01-28 15:42:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -176,7 +176,8 @@ SelectionFunction::SelectionFunction (
mbDragSelection(false),
maInsertionMarkerBox(),
mpSound(new Sound),
- mpShowingEffectInfo(new ShowingEffectInfo (false))
+ mpShowingEffectInfo(new ShowingEffectInfo (false)),
+ mbProcessingMouseButtonDown(false)
{
//af aDelayToScrollTimer.SetTimeout(50);
aDragTimer.SetTimeoutHdl( LINK( this, SelectionFunction, DragSlideHdl ) );
@@ -211,6 +212,7 @@ BOOL SelectionFunction::MouseButtonDown (const MouseEvent& rEvent)
{
// #95491# remember button state for creation of own MouseEvents
SetMouseButtonCode (rEvent.GetButtons());
+ mbProcessingMouseButtonDown = true;
pWindow->CaptureMouse();
@@ -257,8 +259,11 @@ BOOL SelectionFunction::MouseMove (const MouseEvent& rEvent)
{
// Call ProcessMouseEvent() only when one of the buttons is
// pressed. This prevents calling the method on every motion.
- if (rEvent.GetButtons() != 0)
+ if (rEvent.GetButtons() != 0
+ && mbProcessingMouseButtonDown)
+ {
ProcessMouseEvent (MOUSE_MOTION, rEvent);
+ }
}
return TRUE;
@@ -283,6 +288,7 @@ BOOL SelectionFunction::MouseButtonUp (const MouseEvent& rEvent)
// mrController.GetView().EndEncirclement();
mbPageHit = false; // ab jetzt keine Seite mehr "am Haken"
+ mbProcessingMouseButtonDown = false;
pWindow->ReleaseMouse();
return TRUE;