PDFix SDK  7.2.0
Loading...
Searching...
No Matches
PdfActionHandler Struct Referenceabstract

PdfActionHandler class. More...

#include <pdfix.h>

Public Member Functions

virtual int GetType (wchar_t *buffer, int len) const =0
 
virtual void Destroy ()=0
 Destroys action handler's resources. More...
 
virtual void SetCanCopyProc (PdfActionHandlerCanCopyProc proc)=0
 Sets a user-supplied procedure to call when the PdfAction::CanCopy is called. More...
 
virtual void SetCopyProc (PdfActionHandlerCopyProc proc)=0
 Sets a user-supplied procedure to call when the PdfAction::Copy is called. More...
 
virtual void SetCanPasteProc (PdfActionHandlerCanPasteProc proc)=0
 Sets a user-supplied procedure to call when the PdfAction::CanPaste is called. More...
 
virtual void SetPasteProc (PdfActionHandlerPasteProc proc)=0
 Sets a user-supplied procedure to call when the PdfAction::Paste is called. More...
 
virtual void SetDestroyDataProc (PdfActionHandlerDestroyDataProc proc)=0
 Sets a user-supplied procedure to call when the PdfAction::DestroyClipboardData is called. More...
 
virtual void SetDestroyProc (PdfActionHandlerDestroyProc proc)=0
 Sets a user-supplied procedure to call when the PdfActionHandler::Destroy is called. More...
 

Detailed Description

PdfActionHandler class.

The callbacks provide copy-and-paste functionality for a particular type of action.

Member Function Documentation

◆ Destroy()

virtual void PdfActionHandler::Destroy ( )
pure virtual

Destroys action handler's resources.

See also
PdfPdfix::RegisterActionHandler

◆ GetType()

virtual int PdfActionHandler::GetType ( wchar_t *  buffer,
int  len 
) const
pure virtual

Gets the action type for which the handler is responsible. This corresponds to the action's Type key in the PDF file.

Parameters
buffer(filled by method) If the buffer is null function returns required length of string
lenLength of a buffer to be filled in.
Returns
Number of characters written into buffer of required length.

◆ SetCanCopyProc()

virtual void PdfActionHandler::SetCanCopyProc ( PdfActionHandlerCanCopyProc  proc)
pure virtual

Sets a user-supplied procedure to call when the PdfAction::CanCopy is called.

Parameters
procA user-supplied callback to call when the PdfAction::CanCopy is called.

◆ SetCanPasteProc()

virtual void PdfActionHandler::SetCanPasteProc ( PdfActionHandlerCanPasteProc  proc)
pure virtual

Sets a user-supplied procedure to call when the PdfAction::CanPaste is called.

Parameters
procA user-supplied callback to call when the PdfAction::CanPaste is called.

◆ SetCopyProc()

virtual void PdfActionHandler::SetCopyProc ( PdfActionHandlerCopyProc  proc)
pure virtual

Sets a user-supplied procedure to call when the PdfAction::Copy is called.

Parameters
procA user-supplied callback to call when the PdfAction::Copy is called.

◆ SetDestroyDataProc()

virtual void PdfActionHandler::SetDestroyDataProc ( PdfActionHandlerDestroyDataProc  proc)
pure virtual

Sets a user-supplied procedure to call when the PdfAction::DestroyClipboardData is called.

Parameters
procA user-supplied callback to call when the PdfAction::DestroyClipboardData is called.

◆ SetDestroyProc()

virtual void PdfActionHandler::SetDestroyProc ( PdfActionHandlerDestroyProc  proc)
pure virtual

Sets a user-supplied procedure to call when the PdfActionHandler::Destroy is called.

Parameters
procA user-supplied callback to call when the PdfActionHandler::Destroy is called.

◆ SetPasteProc()

virtual void PdfActionHandler::SetPasteProc ( PdfActionHandlerPasteProc  proc)
pure virtual

Sets a user-supplied procedure to call when the PdfAction::Paste is called.

Parameters
procA user-supplied callback to call when the PdfAction::Paste is called.