Kaydet (Commit) 37c3cf70 authored tarafından Matúš Kukan's avatar Matúš Kukan

Related cp#1000084: Make this work for other apps too and set proper default

Extend d98c817c and fix default.

Change-Id: I79ad35bd5ad6fbd6e7d260864d4bf40fafb6b604
üst cc9e4953
......@@ -21,6 +21,7 @@
#include <editeng/eeitem.hxx>
#include <editeng/flditem.hxx>
#include <svx/svddrgmt.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdotext.hxx>
#include <sfx2/dispatch.hxx>
......@@ -142,7 +143,8 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
if ( bDrag )
{
aDragTimer.Start();
pView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl);
if (pView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl))
pView->GetDragMethod()->SetShiftPressed( rMEvt.IsShift() );
bReturn = true;
}
}
......
......@@ -19,6 +19,7 @@
#include "fusel.hxx"
#include <basic/sbstar.hxx>
#include <svx/svddrgmt.hxx>
#include <svx/svdpagv.hxx>
#include <svx/svdogrp.hxx>
#include <svx/polysc3d.hxx>
......@@ -223,7 +224,8 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
}
if ( ! rMEvt.IsRight())
mpView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl, nDrgLog);
if (mpView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl, nDrgLog))
mpView->GetDragMethod()->SetShiftPressed( rMEvt.IsShift() );
bReturn = true;
}
else
......@@ -485,6 +487,7 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
mpView->MarkPoint(*pHdl);
if ( ! rMEvt.IsRight())
mpView->BegDragObj(aMDPos, (OutputDevice*) NULL, pHdl, nDrgLog);
}
}
else
......
......@@ -640,7 +640,8 @@ SdrDragMethod::SdrDragMethod(SdrDragView& rNewView)
maOverlayObjectList(),
mrSdrDragView(rNewView),
mbMoveOnly(false),
mbSolidDraggingActive(getSdrDragView().IsSolidDragging())
mbSolidDraggingActive(getSdrDragView().IsSolidDragging()),
mbShiftPressed(false)
{
if(mbSolidDraggingActive && Application::GetSettings().GetStyleSettings().GetHighContrastMode())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment