1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28#ifndef __com_sun_star_datatransfer_dnd_DragGestureEvent_idl__ 29#define __com_sun_star_datatransfer_dnd_DragGestureEvent_idl__ 30 31#ifndef __com_sun_star_lang_EventObject_idl__ 32#include <com/sun/star/lang/EventObject.idl> 33#endif 34 35//============================================================================= 36 37module com { module sun { module star { module datatransfer { module dnd { 38 39 published interface XDragSource; 40 41//============================================================================= 42/** A DragGestureEvent is passed to the method <member>XDragGestureListener::dragGestureRecognized()</member> 43 when a particular <type>XDragGestureRecognizer</type> detects that a platform 44 dependent drag initiating gesture has occurred on the component that it is 45 tracking. 46*/ 47 48published struct DragGestureEvent: com::sun::star::lang::EventObject 49{ 50 //------------------------------------------------------------------------- 51 /** The action selected by the user. 52 <p>Different constants may be combined using a logical OR.</p> 53 It's further possible to combine the ACTION_DEFAULT with one of the other 54 actions defined in <type scope="com::sun::star::datatransfer::dnd">DNDConstants</type>. 55 This means the user did not press any key during the Drag and Drop operation 56 and the action that was combined with ACTION_DEFAULT is the system default action.</p> 57 58 @see com::sun::star::datatransfer::dnd::DNDConstants 59 */ 60 61 byte DragAction; 62 63 //------------------------------------------------------------------------- 64 /** The x coordinate where the drag originated in component coordinates. 65 */ 66 67 long DragOriginX; 68 69 //------------------------------------------------------------------------- 70 /** The y coordinate where the drag originated in component coordinates. 71 */ 72 73 long DragOriginY; 74 75 //------------------------------------------------------------------------- 76 /** The DragSource associated with this drag action. 77 */ 78 79 XDragSource DragSource; 80 81 //------------------------------------------------------------------------- 82 /** The last event comprising the gesture. 83 84 <p>The initial trigger event will presumably be a <type scope="com::sun::star::awt">MouseEvent</type> event. 85 If it is not, the implementation should either react accordingly or 86 presume that the left mouse button was clicked. </p> 87 */ 88 89 any Event; 90}; 91 92//============================================================================= 93 94}; }; }; }; }; 95 96#endif 97