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

Public Member Functions

 PnlTrvDragDropSource (IPMUnknown *boss)
 
 ~PnlTrvDragDropSource ()
 
bool16 WillDrag (IEvent *event) const
 
bool16 DoAddDragContent (IDragDropController *controller)
 
- Public Member Functions inherited from CDragDropSource
 CDragDropSource (IPMUnknown *boss)
 
virtual CursorSpec GetDragCursor (DragDrop::eTargetResponse, bool16 isDragLocal) const
 
virtual SysWireframe DoMakeDragOutlineRegion () const
 
virtual ErrorCode ProcessDragDropCommand (IDragDropController *, DragDrop::eCommandType)
 
virtual IDataBaseGetSourceDataBase () const
 

Additional Inherited Members

- Public Types inherited from IDragDropSource
enum  { kDefaultIID = IID_IDRAGDROPSOURCE }
 

Detailed Description

Provides the node with drag source capability for the IDFile (kPMSysFileFlavor) associated with the widget. This allows the IDFile selected in a tree view node to be dragged from the panel onto a drop target that accepts a IDFile. For example a layout view on a document.

Constructor & Destructor Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application * PnlTrvDragDropSource::PnlTrvDragDropSource (IPMUnknownboss)

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.
PnlTrvDragDropSource::~PnlTrvDragDropSource ()

Destructor.

Member Function Documentation

bool16 PnlTrvDragDropSource::DoAddDragContent (IDragDropControllercontroller)
virtual

Adds the IDFile to the drag.

Parameters
controller[IN] in charge of this widget's DND capabilities.
Returns
kTrue if valid content has been added to the drag, kFalse otherwise.

Reimplemented from CDragDropSource.

bool16 PnlTrvDragDropSource::WillDrag (IEventevent) const
virtual

Returns kTrue if a IDFile is associated with the widget.

Parameters
event[IN] that signifies the drag.
Returns
kTrue if a drag can be initiated, otherwise kFalse.

Reimplemented from CDragDropSource.