
Adobe Acrobat SDK
Creating Handlers
Developing Plug-ins and Applications
File systems 148
●
Do anything that must be done when the window is activated or deactivated by using the following
callback methods:
AVWindowDidActivateProc
or
AVWindowWillDeactivateProc
.
●
Permit or constrain window size changes by using the
AVWindowWillBeResizedProc
callback
method.
●
Determine whether the Cut, Copy, Paste, Clear, SelectAll, and Undo menu items are enabled by using
the
AVWindowCanPerformEditOpProc
callback method.
●
Perform Cut, Copy, Paste, Clear, SelectAll, and Undo operations by using the
AVWindowPerformEditOpProc
callback method.
●
Control the shape of the cursor when it is within the window by using the
AVWindowAdjustCursorProc
callback method.
For a complete list of callbacks in a window handler, see the description of
AVWindowHandler
in the
Acrobat and PDF Library API Reference
.
File systems
Plug-ins can add new file systems to Acrobat or Adobe Reader, to access files on a device that cannot be
accessed as a local hard disk, such as a socket or a modem line.
To add a new file system, you must provide a set of callbacks and specify them in the
ASFileSysRec
structure. This structure is passed as a parameter to calls that require a file system. A file system handler
does not require explicit registration.
By using a file system handler, you can perform the following tasks:
●
Open a file by using the
ASFileSysOpenProc
callback method.
●
Close a file by using the
ASFileSysCloseProc
callback method.
●
Flush a file’s buffered data to disk by using the
ASFileSysFlushProc
callback method.
●
Get or set the current position in a file by using one of the following callback methods:
ASFileSysSetPosProc
or
ASFileSysGetPosProc
.
●
Get or set a file’s logical size by using one of the following callback methods:
ASFileSysGetEofProc
or
ASFileSysSetEofProc
.
●
Read data from a file by using the
ASFileSysReadProc
callback method.
●
Write data to a file by using the
ASFileSysWriteProc
callback method.
●
Delete a file by using the
ASFileSysRemoveProc
callback method.
●
Rename a file by using the
ASFileSysRenameProc
callback method.
●
Get a file’s name by using the
ASFileSysGetNameProc
callback method.
●
Get a file system’s name by using the
ASFileSysGetFileSysNameProc
callback method.
●
Determine whether two files are the same by using the
ASFileSysIsSameFileProc
callback
method.
●
Get a path to a temporary file by using the
ASFileSysGetTempPathNameProc
callback method.
●
Copy a path (not the underlying file) by using the
ASFileSysCopyPathNameProc
callback method.
●
Convert between device-independent and device-dependent path by using the
ASFileSysDiPathFromPathProc
callback method.