InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IBehaviorDragDropData Class Referenceabstract

#include <IBehaviorDragDropData.h>

Inheritance diagram for IBehaviorDragDropData:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IBEHAVIORDRAGDROPDATA }
 

Public Member Functions

virtual void Clear ()=0
 
virtual bool16 IsEmpty () const =0
 
virtual void Set (IDataBase *db, const std::vector< std::pair< ActionEvent, UID > > &behaviors)=0
 
virtual IDataBaseGetDataBase () const =0
 
virtual std::vector< std::pair
< ActionEvent, UID > > 
Get () const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Interface on kEventDragDropDEHandlerBoss, kPageItemDDTargetBehaviorHelperBoss to specify data of a behavior or event drag

Member Function Documentation

virtual void IBehaviorDragDropData::Clear ()
pure virtual

Remove all events/behaviors from the drag data

virtual std::vector< std::pair<ActionEvent, UID> > IBehaviorDragDropData::Get () const
pure virtual
Returns
A list of pairs of events and behavior UIDs in the drag
virtual IDataBase* IBehaviorDragDropData::GetDataBase () const
pure virtual
Returns
the database of the behaviors
virtual bool16 IBehaviorDragDropData::IsEmpty () const
pure virtual
Returns
if there are any events/behaviors in the drag data
virtual void IBehaviorDragDropData::Set (IDataBasedb,
const std::vector< std::pair< ActionEvent, UID > > & behaviors 
)
pure virtual

Populate the drag data with events and behaviors.

Parameters
dbsource database of the behaviors
behaviorsA list of pairs of events and behavior UIDs