1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XDropTargetDragContext.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_datatransfer_dnd_XDropTargetDragContext_idl__
32 #define __com_sun_star_datatransfer_dnd_XDropTargetDragContext_idl__
34 #ifndef __com_sun_star_datatransfer_dnd_InvalidDNDOperationException_idl__
35 #include
<com
/sun
/star
/datatransfer
/dnd
/InvalidDNDOperationException.idl
>
38 #ifndef __com_sun_star_uno_XInterface_idl__
39 #include
<com
/sun
/star
/uno
/XInterface.idl
>
42 //=============================================================================
44 module com
{ module sun
{ module star
{ module datatransfer
{ module dnd
{
46 //=============================================================================
47 /** This interface is implemented by any drop target context object.
49 <p>A drop target context is created whenever the logical cursor associated
50 with a Drag and Drop operation moves within the visible geometry of a
51 window associated with a drop target. </p>
53 <p>The drop target context provides the mechanism for a potential receiver
54 of a drop operation to both provide the end user with the appropriate drag
55 under feedback and effect the subsequent data transfer, if appropriate. </p>
58 published
interface XDropTargetDragContext
: com
::sun
::star
::uno
::XInterface
60 //-------------------------------------------------------------------------
63 <p>This method should be called from the methods of <type>XDropTargetListener</type>
65 <li><member>XDropTargetListener::dragEnter()</member></li>
66 <li><member>XDropTargetListener::dragOver()</member></li>
67 <li><member>XDropTargetListener::dragActionChanged()</member></li>
69 if the implementation wishes to accept the drag operation with the specified
73 The operation accepted by the target.
76 @see DropTargetDragEvent
79 [oneway
] void acceptDrag
( [in] byte dragOperation
);
81 //-------------------------------------------------------------------------
82 /** Reject the drag as a result of examining the available
83 <type scope="com::sun::star::datatransfer">DataFlavor</type> types
84 received in the <member scope="com::sun::star::datatransfer::dnd">XDropTargetListener::dragEnter()</member> method.
87 [oneway
] void rejectDrag
();
90 //=============================================================================