xref: /AOO41X/main/offapi/com/sun/star/datatransfer/dnd/DropTargetDragEvent.idl (revision d1766043198e81d0bcfc626e12893e7b4d7e31ca)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_datatransfer_dnd_DropTargetDragEvent_idl__
25#define __com_sun_star_datatransfer_dnd_DropTargetDragEvent_idl__
26
27#ifndef __com_sun_star_datatransfer_dnd_DropTargetEvent_idl__
28#include <com/sun/star/datatransfer/dnd/DropTargetEvent.idl>
29#endif
30
31//=============================================================================
32
33module com { module sun { module star { module datatransfer { module dnd {
34
35 published interface XDropTargetDragContext;
36
37//=============================================================================
38/** The <type>DropTargetDragEvent</type> is delivered from the drop target
39    to the currently registered drop target listener.
40
41    <p>It contains information regarding the current state of the operation to enable
42    the operations initiator to provide the end user with the appropriate drag
43    over feedback.</p>
44
45    @see com::sun::star::datatransfer::dnd::XDropTargetListener
46*/
47
48published struct DropTargetDragEvent: com::sun::star::datatransfer::dnd::DropTargetEvent
49{
50    //-------------------------------------------------------------------------
51    /** The drop target context of the current drag operation.
52
53        @see com::sun::star::datatransfer::dnd::XDropTargetDragContext
54     */
55
56    XDropTargetDragContext Context;
57
58    //-------------------------------------------------------------------------
59    /** This value represents the currently selected drop action.
60
61        @see com::sun::star::datatransfer::dnd::DNDConstants
62     */
63
64    byte DropAction;
65
66    //-------------------------------------------------------------------------
67    /** The cursor's current x location within the window's coordinates.
68     */
69
70    long LocationX;
71
72    //-------------------------------------------------------------------------
73    /** The cursor's current y location within the window's coordinates.
74     */
75
76    long LocationY;
77
78    //-------------------------------------------------------------------------
79    /** This value represents the action or actions supported by the source.
80        This may be a combination of arbitrary source actions except ACTION_DEFAULT.
81        <p>To combine different actions use a logical OR.</p>
82
83        @see com::sun::star::datatransfer::dnd::DNDConstants
84     */
85
86    byte SourceActions;
87};
88
89//=============================================================================
90
91}; }; }; }; };
92
93#endif
94