InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DataExchangeResponse Class Reference

#include <PMFlavorTypes.h>

Inheritance diagram for DataExchangeResponse:
DragDrop::TargetResponse

Public Types

typedef base_type data_type
 

Public Member Functions

 DataExchangeResponse ()
 
 DataExchangeResponse (bool16 canDo, ExternalPMFlavor flavor, PMFlavorFlags flavorFlags=kNormalFlavorFlag, PMFlavorPriority priority=kUnknownFlavorPriority)
 
 DataExchangeResponse (const DataExchangeResponse &other)
 
bool operator== (const DataExchangeResponse &) const
 
bool16 CanDo () const
 
ExternalPMFlavor GetFlavor () const
 
PMFlavorFlags GetFlavorFlags () const
 
PMFlavorPriority GetFlavorPriority () const
 

Static Public Attributes

static const DataExchangeResponse kInvalidDataExchangeResponse
 

Protected Attributes

bool16 fCanDo
 
ExternalPMFlavor fFlavor
 
PMFlavorFlags fFlavorFlags
 
PMFlavorPriority fFlavorPriority
 

Detailed Description

Class used to represent the response from an IDataExchangeHandler when asked whether external data could be converted to an internal format.

See Also
IDataExchangeHandler::CanInternalizeData

Constructor & Destructor Documentation

DataExchangeResponse::DataExchangeResponse ()
inline

Default constructor - creates a negative response

DataExchangeResponse::DataExchangeResponse (bool16 canDo,
ExternalPMFlavor flavor,
PMFlavorFlags flavorFlags = kNormalFlavorFlag,
PMFlavorPriority priority = kUnknownFlavorPriority 
)
inline

Constructor

Parameters
canDoIN could the external data be converted to an internal format
flavorIN which external data flavor the handler would convert
flavorFlagsIN flags associated with the flavor
priorityIN the flavor priority of the flavor the target as decided to accept
DataExchangeResponse::DataExchangeResponse (const DataExchangeResponseother)
inline

Copy constructor

Member Function Documentation

bool16 DataExchangeResponse::CanDo () const
inline

Can the data be converted?

ExternalPMFlavor DataExchangeResponse::GetFlavor () const
inline

Which flavor will be converted?

PMFlavorFlags DataExchangeResponse::GetFlavorFlags () const
inline

Flavor flags for the flavor to be converted.

PMFlavorPriority DataExchangeResponse::GetFlavorPriority () const
inline

Priority of flavor to be converted.

Member Data Documentation

const DataExchangeResponse DataExchangeResponse::kInvalidDataExchangeResponse
static

Constant representing an invalid response.