LibreOffice
LibreOffice 24.2 SDK API Reference
|
This interface is implemented by a view or window that supports drop operations. More...
import"XDropTarget.idl";
Public Member Functions | |
void | addDropTargetListener ([in] XDropTargetListener dtl) |
Add a DropTargetListener. More... | |
void | removeDropTargetListener ([in] XDropTargetListener dtl) |
Remove a drop target listener. More... | |
boolean | isActive () |
Indicates either a drop target object is active or not. More... | |
void | setActive ([in] boolean active) |
Sets the drop target object active or inactive. More... | |
byte | getDefaultActions () |
Determine the actions supported by a drop target. More... | |
void | setDefaultActions ([in] byte actions) |
Sets the default acceptable actions for this drop target. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
This interface is implemented by a view or window that supports drop operations.
Differently to Java, the association between view and interface is fixed and cannot be changed. Otherwise, the AWT messaging would have to be implemented for any window supporting Drag and Drop operations, which would be a performance issue.
void addDropTargetListener | ( | [in] XDropTargetListener | dtl | ) |
Add a DropTargetListener.
The listener will be queried for the XAutoscroll interface to see if it supports autoscrolling.
dtl | The listener to add to the notification list. |
byte getDefaultActions | ( | ) |
Determine the actions supported by a drop target.
By default this will include all drag and drop actions.
boolean isActive | ( | ) |
Indicates either a drop target object is active or not.
void removeDropTargetListener | ( | [in] XDropTargetListener | dtl | ) |
Remove a drop target listener.
dtl | The listener to remove from notification list. |
void setActive | ( | [in] boolean | active | ) |
Sets the drop target object active or inactive.
active | A value of TRUE sets the drop target object active. |
A value of FALSE
sets the drop target object inactive.
void setDefaultActions | ( | [in] byte | actions | ) |
Sets the default acceptable actions for this drop target.
This method is a way to reduce the number of Drag and Drop events by blocking events for actions not supported by this target.
By default the listener will receive notifications for all actions.
actions | The actions. |