interface XDropTargetDropContext in module com::sun::star::datatransfer::dnd::

(Global Index)

Syntax

interface XDropTargetDropContext : com::sun::star::uno::XInterface ;

Description

This interface is implemented by any drop target context object.

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

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

Method Summary

acceptDrop Accept the Drop.

rejectDrop Reject the drop as a result of examining the available DataFlavor types received in the XDropTargetListener::dragEnter() method.

dropComplete Signals that the drop is completed and if it was successful or not.

Method Details



acceptDrop

Syntax

oneway void acceptDrop (
byte dragOperation );

Description

Accept the Drop.

This method should be called from the XDropTargetListener::drop() method if the implementation wishes to accept the drop operation with the specified action.

Parameter dragOperation

The operation accepted by the target.

See also

DNDConstants

See also

DropTargetDragEvent

rejectDrop

Syntax

oneway void rejectDrop ();

Description

Reject the drop as a result of examining the available DataFlavor types received in the XDropTargetListener::dragEnter() method.


dropComplete

Syntax

oneway void dropComplete (
boolean success );

Description

Signals that the drop is completed and if it was successful or not.

Parameter success

A value of true means the drop completed successfully

A value of false means the drop completed unsuccessfully.

Top of Page