1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_datatransfer_dnd_XDropTargetDragContext_idl__
21 #define __com_sun_star_datatransfer_dnd_XDropTargetDragContext_idl__
23 #include
<com
/sun
/star
/datatransfer
/dnd
/InvalidDNDOperationException.idl
>
24 #include
<com
/sun
/star
/uno
/XInterface.idl
>
27 module com
{ module sun
{ module star
{ module datatransfer
{ module dnd
{
29 /** This interface is implemented by any drop target context object.
31 <p>A drop target context is created whenever the logical cursor associated
32 with a Drag and Drop operation moves within the visible geometry of a
33 window associated with a drop target. </p>
35 <p>The drop target context provides the mechanism for a potential receiver
36 of a drop operation to both provide the end user with the appropriate drag
37 under feedback and effect the subsequent data transfer, if appropriate. </p>
40 published
interface XDropTargetDragContext
: com
::sun
::star
::uno
::XInterface
44 <p>This method should be called from the methods of XDropTargetListener
46 <li>XDropTargetListener::dragEnter()</li>
47 <li>XDropTargetListener::dragOver()</li>
48 <li>XDropTargetListener::dragActionChanged()</li>
50 if the implementation wishes to accept the drag operation with the specified
54 The operation accepted by the target.
57 @see DropTargetDragEvent
60 void acceptDrag
( [in] byte dragOperation
);
62 /** Reject the drag as a result of examining the available
63 com::sun::star::datatransfer::DataFlavor types
64 received in the com::sun::star::datatransfer::dnd::XDropTargetListener::dragEnter() method.
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */