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_DropTargetDropEvent_idl__
29#define __com_sun_star_datatransfer_dnd_DropTargetDropEvent_idl__
30
31#ifndef __com_sun_star_datatransfer_dnd_DropTargetEvent_idl__
32#include <com/sun/star/datatransfer/dnd/DropTargetEvent.idl>
33#endif
34
35#ifndef __com_sun_star_datatransfer_XTransferable_idl__
36#include <com/sun/star/datatransfer/XTransferable.idl>
37#endif
38
39//=============================================================================
40
41module com { module sun { module star { module datatransfer { module dnd {
42
43 published interface XDropTargetDropContext;
44
45//=============================================================================
46/** The <type>DropTargetDropEvent</type> is delivered from the drop target to
47	its currently registered drop target listener.
48
49	<p>It contains sufficient information for the originator of the operation to
50	provide appropriate feedback to the end user when the operation completes.</p>
51*/
52
53published struct DropTargetDropEvent: com::sun::star::datatransfer::dnd::DropTargetEvent
54{
55	//-------------------------------------------------------------------------
56	/** The drop target context of the current drag operation.
57
58		@see com::sun::star::datatransfer::dnd::XDropTargetDropContext
59	 */
60
61	XDropTargetDropContext Context;
62
63	//-------------------------------------------------------------------------
64	/** This value represents the action or actions selected by the user at
65		the time of the drop.
66
67		<p>If more than one action is specified, the <type>XDropTargetListener</type>
68		 should raise a dialog to ask the user which action to use.</p>
69
70		 @see com::sun::star::datatransfer::dnd::DNDConstants
71	 */
72
73	byte DropAction;
74
75	//-------------------------------------------------------------------------
76	/** The cursor's current x location within the windows' coordinates.
77	 */
78
79	long LocationX;
80
81	//-------------------------------------------------------------------------
82	/** The cursor's current y location within the windows' coordinates.
83	 */
84
85	long LocationY;
86
87	//-------------------------------------------------------------------------
88	/** This value represents the action or actions supported by the source.
89	 */
90
91	byte SourceActions;
92
93	//-------------------------------------------------------------------------
94	/** The transferable object associated with the drop.
95
96		@see com::sun::star::datatransfer::XTransferable
97	 */
98
99	com::sun::star::datatransfer::XTransferable Transferable;
100};
101
102//=============================================================================
103
104}; }; }; }; };
105
106#endif
107