Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / datatransfer / dnd / XDropTargetDropContext.idl
blob1f1f2dcdc9fd9ff7d843f93a8799d87e56daaf52
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_XDropTargetDropContext_idl__
21 #define __com_sun_star_datatransfer_dnd_XDropTargetDropContext_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 DropTargetContext 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 DropTarget. </p>
35 <p>The drop target context provides the mechanism for a potential receiver
36 of a drop operation to provide the end user with the appropriate drag
37 under feedback and to effect the subsequent data transfer, if appropriate. </p>
40 published interface XDropTargetDropContext : com::sun::star::uno::XInterface
42 /** Accept the Drop.
44 <p>This method should be called from the
45 com::sun::star::datatransfer::dnd::XDropTargetListener::drop()
46 method if the implementation wishes to accept the drop operation with the specified action.</p>
48 @param dragOperation
49 The operation accepted by the target.
51 @see DNDConstants
52 @see DropTargetDragEvent
55 void acceptDrop( [in] byte dragOperation );
57 /** Reject the drop as a result of examining the available
58 com::sun::star::datatransfer::DataFlavor types
59 received in the XDropTargetListener::dragEnter() method.
62 void rejectDrop();
64 /** Signals that the drop is completed and if it was successful or not.
66 @param success
67 A value of `TRUE` means the drop completed successfully
68 <p>A value of `FALSE` means the drop completed unsuccessfully.</p>
71 void dropComplete( [in] boolean success );
75 }; }; }; }; };
77 #endif
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */