Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / datatransfer / dnd / XDropTargetDragContext.idl
blob3fb006f9a9e835e76e3a1a3ba0dd419194d42704
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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
42 /** Accept the Drag.
44 <p>This method should be called from the methods of XDropTargetListener
45 <ul>
46 <li>XDropTargetListener::dragEnter()</li>
47 <li>XDropTargetListener::dragOver()</li>
48 <li>XDropTargetListener::dragActionChanged()</li>
49 </ul>
50 if the implementation wishes to accept the drag operation with the specified
51 action.</p>
53 @param dragOperation
54 The operation accepted by the target.
56 @see DNDConstants
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.
67 void rejectDrag();
71 }; }; }; }; };
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */