(incubating) | The Free and Open Productivity Suite
Announcing Apache OpenOffice 3.4

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: datatransfer :: dnd ::

interface XDropTargetDragContext
Description
This interface is implemented by any drop target context object.

A drop target context is created whenever the logical cursor associated with a Drag and Drop operation moves within the visible geometry of a window associated with a drop target.

The drop target context provides the mechanism for a potential receiver of a drop operation to both provide the end user with the appropriate drag under feedback and effect the subsequent data transfer, if appropriate.


Methods' Summary
acceptDrag Accept the Drag.  
rejectDrag Reject the drag as a result of examining the available ::com::sun::star::datatransfer::DataFlavor types received in the XDropTargetListener::dragEnter() method.  
Methods' Details
acceptDrag
[oneway] void
acceptDrag( [in] byte  dragOperation );

Description
Accept the Drag.

This method should be called from the methods of XDropTargetListener

if the implementation wishes to accept the drag operation with the specified action.

Parameter dragOperation
The operation accepted by the target.
See also
DNDConstants, DropTargetDragEvent
rejectDrag
[oneway] void
rejectDrag();

Description
Reject the drag as a result of examining the available ::com::sun::star::datatransfer::DataFlavor types received in the XDropTargetListener::dragEnter() method.
Top of Page

Apache Feather

Copyright & License | Privacy | Contact Us

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.