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

Public Types | |
| enum | { kDefaultIID = IID_IDRAGDROPTEXTHELPER } |
Public Member Functions | |
| virtual IParcel * | QueryParcelFromHitObject (IControlView *view, const PMPoint &where, const IPMUnknown *hitObj, const IParcel *previousParcel)=0 |
| virtual ITextStoryThread * | QueryStoryThreadFromHitObject (IControlView *view, const PMPoint &where, const IPMUnknown *hitObj, const IParcel *previousParcel)=0 |
| virtual void | AdjustRangeFromHitTest (IControlView *view, const UIDRef &storyUIDRef, const PMReal &hitIndex, const PMReal &nextLine, RangeData &adjustedRange)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Helper interface used for text dragging and dropping. Installed on same boss as text drag drop source and target.
| pure virtual |
Description: Adjust a range data (with correct lean) as computed by AdjustHitTestTextIndex for the story and text indices. Should have length of zero. Gives helper a chance to examine the display text index and range and alter if necessary (e.g. convert to model range, etc.).
| view | IN pointer to the control view under the mouse |
| storyUIDRef | IN Reference to the story to drop into (the destination) |
| hitIndex | IN the display text index to construct the range with |
| nextLine | IN the nextLine text index of the first character in the next line after the line hit (useful for computing the lean) |
| storyUIDRef | IN Reference to the story to drop into (the destination) |
| RangeData | OUT the altered text range with correct lean representing the hit location. |
| pure virtual |
Description: Query for an IParcel interface from an object.
| view | IN pointer to the control view under the mouse |
| where | IN the point in pasteboard coordinates to use |
| hitObj | IN an IPMUnknown* from the object to test. |
| previousParcel | IN an IParcel interface from a possible previous hit. May be nil, and will be nil initially. |
| pure virtual |
Description: Query for an ITextStoryThread interface from an object.
| view | IN pointer to the control view under the mouse |
| where | IN the point in pasteboard coordinates to use |
| hitObj | IN an IPMUnknown* from the object to test. |
| previousParcel | IN an IParcel interface from a possible previous hit. May be nil, and will be nil initially. |