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

Public Member Functions

 BscDNDDragSource (IPMUnknown *boss)
 
bool16 WillDrag (IEvent *e) const
 
bool16 DoAddDragContent (IDragDropController *DNDController)
 
- 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 drag capability. Most of the functionality is implemented in the parent (helper) implementation class.

Constructor & Destructor Documentation

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

Constructor.

Parameters
bossinterface ptr from boss object on which this interface is aggregated.

Member Function Documentation

bool16 BscDNDDragSource::DoAddDragContent (IDragDropControllerDNDController)
virtual

we override this method to add the content we want to drag from this widget.

Parameters
DNDControllerIN the controller in charge of this widget's DND capabilities.
Returns
kTrue if valid content has been added to the drag

Reimplemented from CDragDropSource.

bool16 BscDNDDragSource::WillDrag (IEvente) const
virtual

we will only allow the drag if there is an existing document. We faux the creation of a page item, this simplifies the database requirements.

Parameters
eIN the event signifying the start of the drag.
Returns
kTrue if we will drag from this location, otherwise kFalse.

Reimplemented from CDragDropSource.