Adobe ACROBAT SDK 8.1 Manual page 77

Developing plug-ins and applications
Table of Contents

Advertisement

Adobe Acrobat SDK
Developing Plug-ins and Applications
The Acrobat core API has a typedef named
open dialog box. The
programmatically set:
size: The size of the
flags: An
values are valid:
parentWindow: An
attribute is ignored on Mac OS.
windowTitle: An
in which case the default title is used.
actionButtonTitle: An
, in which case the default title is used.
NULL
cancelButtonTitle: An
, in which case the default title is used.
NULL
initialFileSys: An
the
flags
initialPathName: An
.
NULL
initialFileName: Specifies an initial file to save. This value is ignored for an open dialog box.
fileFilters: An array of pointers to addresses of
attribute is set in the example that is described in this section).
numFileFilters: Specifies the number of
attribute.
To display an open dialog box, perform the following tasks:
1. Create an
AVOpenSaveDialogParamsRec dialogParams;
2. Create an
filter for an open or save dialog box. Secondly, create a pointer to an
AVFileFilterRec filterRec,*filterRecP;
3. Create an
AVFileDescRec descRec;
AVOpenSaveDialogParamsRec
AVOpenSaveDialogParamsRec
AVOpenSaveDialogFlags
kAVOpenSaveAllowAllFlag: Specifies
applicable for an open dialog box.
kAVOpenSaveAllowMultiple: Allows multiple files to be opened through the dialog box. This
value is only applicable for an open dialog box.
kAVOpenSaveAllowForeignFileSystems: Allows file systems other than the default to be used
to open the files. You need to select this value to open Unicode-named files. This value is only
applicable for an open dialog box.
kAVOpenSaveAllowSettingsButton: Adds a settings button to the dialog box. This value is
applicable to both open and save dialog boxes.
kAVOpenSaveMergeTogetherPassedFilters: Meaningful only for open dialog boxes with
more than one filter.
AVWindow
object that specifies the title for the dialog box. This attribute can be
ASText
ASText
ASText
ASFileSys
attribute does not contain
ASPathName
AVOpenSaveDialogParamsRec
AVFileFilterRec
object used to store file extensions in an open dialog box.
AVFileDescRec
AVOpenSaveDialogParamsRec
typedef contains the following attributes that you
value that specifies the dialog box's appearance. The following
All Files (*.*)
object that specifies the parent window for the dialog box. This
object that specifies the title of the action button. This attribute can be
object that specifies the title of the cancel button. This attribute can be
object that specifies the default file system. This value can be
kAVOpenSaveAllowForeignFileSystems
object that specifies an initial path location. This value can be
AVFileFilterRec
AVFileFilterRec
object.
object used to store a series of file type descriptors that define a file
Working with Documents and Files
Displaying an open dialog box
that you use to display an
object's buffer.
for the dialog box. This value is only
objects that act as a file filter (this
pointers assigned to the
AVFileFilterRec
77
,
NULL
if
NULL
.
fileFilters
.

Advertisement

Table of Contents
loading

Table of Contents