InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CusDtLnkUIDDTargetFlavorHelper Class Reference
Inheritance diagram for CusDtLnkUIDDTargetFlavorHelper:
CDragDropTargetFlavorHelperIDragDropTargetFlavorHelperIPMUnknown

Public Member Functions

 CusDtLnkUIDDTargetFlavorHelper (IPMUnknown *boss)
 
virtual ~CusDtLnkUIDDTargetFlavorHelper ()
 
virtual DragDrop::TargetResponse CouldAcceptTypes (const IDragDropTarget *target, DataObjectIterator *dataIter, const IDragDropSource *fromSource, const IDragDropController *controller) const
 
virtual ErrorCode ProcessDragDropCommand (IDragDropTarget *, IDragDropController *, DragDrop::eCommandType)
 
- Public Member Functions inherited from CDragDropTargetFlavorHelper
 CDragDropTargetFlavorHelper (IPMUnknown *boss)
 
virtual DragDrop::eHelperType GetHelperType () const
 
virtual bool16 HelperWillDoDragTracking () const
 
virtual void PrepareHelperForDrag () const
 
bool16 CanHandleDragData () const
 
void SetCanHandleDragData (bool16 can)
 
virtual bool16 DoDragEnter_PreflightDragData (IDragDropTarget *, IDragDropController *)
 
virtual void DoDragEnter (IDragDropTarget *)
 
virtual void DoDragWithin (IDragDropTarget *, const PMPoint &localPt)
 
virtual void DoDragLeave (IDragDropTarget *)
 
DragDrop::TargetResponse HandleCouldAcceptTypes (const IDragDropTarget *, DataObjectIterator *, const IDragDropSource *, const IDragDropController *) const
 
virtual PMRect GetDragDataBounds () const
 

Additional Inherited Members

- Public Types inherited from IDragDropTargetFlavorHelper
enum  { kDefaultIID = IID_IDRAGDROPTARGETFLAVORHELPER }
 
- Protected Member Functions inherited from CDragDropTargetFlavorHelper
DragDrop::TargetResponse GetCachedResponse () const
 
- Protected Attributes inherited from CDragDropTargetFlavorHelper
DragDrop::TargetResponse fCachedResponse
 
bool16 fCanHandleDragData
 

Detailed Description

Implementation of IDragDropTargetFlavorHelper that extends the DND target capabilities of the layout widget to accept our custom flavor object.

Constructor & Destructor Documentation

CusDtLnkUIDDTargetFlavorHelper::CusDtLnkUIDDTargetFlavorHelper (IPMUnknownboss)

Constructor.

Parameters
bossIN the boss class the interface is aggregated onto.
CusDtLnkUIDDTargetFlavorHelper::~CusDtLnkUIDDTargetFlavorHelper ()
virtual

Destructor.

Member Function Documentation

DragDrop::TargetResponse CusDtLnkUIDDTargetFlavorHelper::CouldAcceptTypes (const IDragDropTargettarget,
DataObjectIteratordataIter,
const IDragDropSourcefromSource,
const IDragDropControllercontroller 
) const
virtual

Determines whether we can handle the flavors in the drag.

Parameters
targetIN the target the mouse is currently over.
dataIterIN iterator providing access to the data objects within the drag.
fromSourceIN the source of the drag.
controllerIN the drag drop controller mediating the drag.
Returns
a target response (either won't accept or drop will copy).
See Also
DragDrop::TargetResponse

Implements CDragDropTargetFlavorHelper.

ErrorCode CusDtLnkUIDDTargetFlavorHelper::ProcessDragDropCommand (IDragDropTargettarget,
IDragDropControllercontroller,
DragDrop::eCommandType action 
)
virtual
Parameters
targetIN the target for this drop.
controllerIN the drag drop controller that is mediating the drag.
actionIN what the drop means (i.e. copy, move etc)
Returns
kSuccess if the drop is executed without error, kFailure, otherwise.

Implements CDragDropTargetFlavorHelper.