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

Public Types | |
| enum | { kDefaultIID = IID_IDRAGDROPTEXTSIGNALDATA } |
Public Member Functions | |
| virtual void | Set (IControlView *sourceView, IControlView *destinationView, const UIDRef &sourceStoryRef, RangeData &sourceRange, const UIDRef &destinationStoryRef, RangeData &destinationRange, RangeData &droppedRange, DragDrop::eCommandType type, IDataExchangeHandler *handler)=0 |
| virtual IControlView * | GetSourceView ()=0 |
| virtual IControlView * | GetDestinationView ()=0 |
| virtual const UIDRef & | GetSourceStoryRef ()=0 |
| virtual RangeData & | GetSourceRange ()=0 |
| virtual void | SetSourceRange (RangeData &range)=0 |
| virtual const UIDRef & | GetDestinationStoryRef ()=0 |
| virtual RangeData & | GetDestinationRange ()=0 |
| virtual void | SetDestinationRange (RangeData &range)=0 |
| virtual RangeData & | GetDroppedRange ()=0 |
| virtual void | SetDroppedRange (RangeData &range)=0 |
| virtual DragDrop::eCommandType | GetDragType ()=0 |
| virtual IDataExchangeHandler * | GetDataExchangeHandler ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Signal data used during kBeforeDragTextSignalResponderService, kBeforeDropTextSignalResponderService, and kAfterDropTextSignalResponderService.
| pure virtual |
Description: Get data exchange handler used for the text drag drop operation.
| pure virtual |
Description: Return the destination range within the destination story ref for the drop/drop operation.
| pure virtual |
Description: Return the detination story reference for the drop/drop operation.
| pure virtual |
Description: Return the destination control view for the drop/drop operation.
| pure virtual |
Description: Return what kind of drag we are doing.
| pure virtual |
Description: Return the dropped range within the destination story ref for the drop/drop operation.
| pure virtual |
Description: Return the source range within the source story ref for the drop/drop operation.
| pure virtual |
Description: Return the source story reference for the drop/drop operation.
| pure virtual |
Description: Return the source control view for the drop/drop operation.
| pure virtual |
Description: Set method that must be called before one of these signals: kBeforeDragTextSignalResponderService - Just before we add text drag content to drag controller. Responder may want to adjust source range (e.g. a partially selected hyperlink). Responder may set global error code to display an alert. kBeforeDropTextSignalResponderService - Just before we create a command to do the drag/drop operation. Responder may set global error code (e.g. some kind of illegal drop that will display an error alert). kAfterDropTextSignalResponderService - Just after the drag/drop command has executed. Responder may want to do extra adjustment (e.g. smart cut/paste to insert/delete extra spaces)
| sourceView | IN pointer to the control view for the source for drag/drop operation. |
| destinationView | IN pointer to the control view for the destination for drag/drop operation. May be same as source. May be nil for kBeforeDropTextSignalResponderService signal. |
| sourceStoryRef | IN the source story that is being dragged. |
| sourceRange | IN/OUT the source text range that is being dragged. May be modified by responder. |
| destinationStoryRef | IN the destination story that is being dropped. Will be kInvalidUIDRef for kBeforeDragTextSignalResponderService signal. |
| destinationRange | IN/OUT the destination range for the caret drop location (length of zero) that is being dropped. Will be RangeData(0,0,RangeData::kLeanForward)) for kBeforeDragTextSignalResponderService signal. May be modified by responder. |
| droppedRange | IN/OUT the dropped range for the drag and drop operation. Will be the length of the sourceRange. This range is used to select the text after the drop. May be modified by responder. |
| type | IN what kind of drag we are doing. kDragMove for moving text, otherwise use kDrop to copy. |
| handler | IN the data exchange handler used for the text drag drop operation. Gives responders a place to access stored data. |
| pure virtual |
Description: Sets the destination range for the drop/drop operation.
| the | new destination range data. |
| pure virtual |
Description: Sets the dropped range for the drop/drop operation.
| the | new dropped range data. |
| pure virtual |
Description: Sets the source range for the drop/drop operation.
| the | new source range data. |