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 .
21 module com
{ module sun
{ module star
{ module datatransfer
{ module dnd
{
23 /** This interface is implemented by any drop target context object.
25 <p>A drop target context is created whenever the logical cursor associated
26 with a Drag and Drop operation moves within the visible geometry of a
27 window associated with a drop target. </p>
29 <p>The drop target context provides the mechanism for a potential receiver
30 of a drop operation to both provide the end user with the appropriate drag
31 under feedback and effect the subsequent data transfer, if appropriate. </p>
34 published
interface XDropTargetDragContext
: com
::sun
::star
::uno
::XInterface
38 <p>This method should be called from the methods of XDropTargetListener
40 <li>XDropTargetListener::dragEnter()</li>
41 <li>XDropTargetListener::dragOver()</li>
42 <li>XDropTargetListener::dragActionChanged()</li>
44 if the implementation wishes to accept the drag operation with the specified
48 The operation accepted by the target.
51 @see DropTargetDragEvent
54 void acceptDrag
( [in] byte dragOperation
);
56 /** Reject the drag as a result of examining the available
57 com::sun::star::datatransfer::DataFlavor types
58 received in the com::sun::star::datatransfer::dnd::XDropTargetListener::dragEnter() method.
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */