typedef
struct
_t_PDActionHandler
*
PDActionHandler
;
typedef
void
*
PDActionHandlerData
;
true
if the copy operation is expected to succeed. It tests, for example, whether copying is allowed by document permissions. Note: The handler is not expected to test other actions (if any) in the action chain.
ASBool
PDActionHandlerCanCopyProc(
PDActionHandler
pdah
,
PDAction
action
);
pdah | The action handler.
|
action | The action object.
|
true
if the paste operation is expected to succeed. It tests, for example, whether pasting is allowed by document permissions. Note: The handler is not expect to test other actions (if any) in the action chain.
ASBool
PDActionHandlerCanPasteProc(
PDActionHandler
pdah
,
PDDoc
dest
,
PDActionHandlerData
data
);
pdah | The action handler.
|
dest | The destination document.
|
data | The action data to test.
|
PDActionHandlerData
PDActionHandlerCopyProc(
PDActionHandler
pdah
,
PDAction
action
);
pdah | The action handler.
|
action | The action object.
|
void
PDActionHandlerDestroyDataProc(
PDActionHandler
pdah
,
PDActionHandlerData
data
);
pdah | The action handler.
|
data | The action data to destroy.
|
userData
field. void
PDActionHandlerDestroyProc(
PDActionHandler
pdah
);
pdah | The action handler to destroy.
|
ASAtom
PDActionHandlerGetTypeProc(
PDActionHandler
pdah
);
pdah | The action handler whose type is returned.
|
PDAction
PDActionHandlerPasteProc(
PDActionHandler
pdah
,
PDDoc
dest
,
PDActionHandlerData
data
);
pdah | The action handler.
|
dest | The destination document.
|
data | The action data to paste.
|
| |
The size of the data structure. It must be set to
sizeof(PDAnnotHandlerRec) . | |
void * userData ; | A pointer to a block of user-supplied data.
|
|
void
PDRegisterActionHandler(
PDActionHandler
handler
);
handler | A pointer to a structure containing the action handler's callbacks. This structure must not be freed after this call, but must be retained.
|