![]() | InDesign SDK 20.5 |
#include <IDragDropTextSuite.h>

Public Types | |
| enum | { kDefaultIID = IID_IDRAGDROPTEXTSUITE } |
Public Member Functions | |
| virtual bool16 | CanDrag (IControlView *view, const SysPoint mousePt, const IPMUnknown *hitObj)=0 |
| virtual bool16 | TextRangeOverlapsSelection (UIDRef &sourceStoryUIDRef, UIDRef &destStoryUIDRef, RangeData &destRange, DragDrop::eCommandType type)=0 |
| virtual ErrorCode | PrepareDragDataSource (IDataExchangeHandler *handler, IDragDropSource *source)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface abstract interaction between DnD text and selection architecture
| pure virtual |
Description: Can start text drag based on current selection?
| view | pointer to the control view under the mouse |
| mousePt | location of current mouse position |
| hitObj | an IPMUnknown pointer from a frame from hittesting at the mousePt. May be nil. |
| pure virtual |
Description: Prepare text data source for drag and drop operation
| handler | pointer to IDataExchangeHandler |
| pure virtual |
Description: Does the indicated text range overlap the text selection (in the destination)?
| sourceStoryUIDRef | Reference to the source story (may be kInvalidUIDRef) |
| destStoryUIDRef | Reference to the story to drop into |
| destRange | text range at hit location (length of 1) |
| type | an enum of type DragDrop::eCommandType. kDragMove for moving text, otherwise use kDrop to copy. |