Layer | AV_Layer |
Object | AVAlert |
AVAlert provides platform-independent support for displaying simple dialog boxes.
Define | ||
---|---|---|
ALERT_CAUTION
AVAlertIcons
|
||
ALERT_NOICON
AVAlertIcons
|
||
ALERT_NOTE
AVAlertIcons
|
||
ALERT_QUESTION
AVAlertIcons
|
||
ALERT_STOP
AVAlertIcons
|
Typedef | ||
---|---|---|
AVAlertParams | ||
AVAlertParamsRec |
Enumeration | ||
---|---|---|
AVAlertType
Alert Types
|
Structure | ||
---|---|---|
_t_AVAlertParams
A data structure containing information about the format of an Alert dialog box.
|
||
AVAlertButtonInfo
A data structure containing information about a button used in an Alert dialog box.
|
||
AVAlertCheckBoxInfo
A data structure containing information about a checkbox used in an Alert dialog box.
|
Method | ||
---|---|---|
ASInt32 AVAlert(ASInt32 iconType, const char* msg, const char* button1, const char* button2, const char* button3, ASBool beep)
Displays an alert containing the specified message, icon, and one to three buttons with the specified titles.
|
||
ASBool AVAlertConfirm(const char* msg)
Displays a dialog box containing the ALERT_CAUTION icon, the specified message, and OK and Cancel buttons. The method also performs a system beep. See AVAlert() for more information.
|
||
ASInt32 AVAlertGetPref(const char* name)
Retrieves the value stored under name in the AVAlert preference store. The AVAlert preference store is intended to be used by clients to store user preferences regarding whether to display an alert prior to execution of a particular operation. The store is persistent across Acrobat sessions. This routine would typically be used when implementing a dialog box that contains a check box saying, "Do not show this dialog again."
|
||
void AVAlertNote(const char* msg)
Displays a dialog box containing the ALERT_NOTE icon, the specified message and an OK button. The method also performs a system beep.
|
||
void AVAlertResetPrefs()
Resets the entire AVAlert preference store. Specific preference entries can be cleared by passing a value of 0 to AVAlertSetPref().
|
||
void AVAlertSetPref(const char* name, ASInt32 nAnswer)
Stores a value under name in the AVAlert preference store. The AVAlert preference store is intended to be used by clients to store user preferences regarding whether an alert is displayed prior to execution of a particular operation. The store is persistent across Acrobat sessions. This routine would typically be used when implementing a dialog box that contains a check box saying, "Do not show this dialog again."
|
||
ASInt32 AVAlertWithParams(AVAlertParams params)
Displays an alert dialog box with a feature set as described by the supplied AVAlertParams.
|
ALERT_CAUTION |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define ALERT_CAUTION 2
File: AVExpT.h |
Line: 5372 |
ALERT_NOICON |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define ALERT_NOICON 0
File: AVExpT.h |
Line: 5366 |
ALERT_NOTE |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define ALERT_NOTE 3
File: AVExpT.h |
Line: 5375 |
ALERT_QUESTION |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define ALERT_QUESTION 4
File: AVExpT.h |
Line: 5378 |
ALERT_STOP |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
#define ALERT_STOP 1
File: AVExpT.h |
Line: 5369 |
AVAlertParams |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef _t_AVAlertParams AVAlertParams;
File: AVExpT.h |
Line: 5496 |
AVAlertParamsRec |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
typedef _t_AVAlertParams AVAlertParamsRec;
File: AVExpT.h |
Line: 5496 |
AVAlertType |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AVAlertType {
kAVAlertTypeNone = 0,
kAVAlertTypeOk,
kAVAlertTypeOkCancel,
kAVAlertTypeYesNo,
kAVAlertTypeYesNoCancel
}
File: AVExpT.h |
Line: 5382 |
_t_AVAlertParams |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
struct _t_AVAlertParams {
A data structure containing information about the format of an Alert dialog box.
See Also
File: AVExpT.h |
Line: 5446 |
size | The size of the structure. It must be set to |
|
parentDoc | The AVDoc that is the modal parent of the alert dialog box. It may be |
|
windowTitle | The title of the dialog box. It may be |
|
iconType | ||
message | The message to display. |
|
beep | Set to |
|
button1 | An AVAlertButtonInfo structure describing the dialog box' buttons. Any or all of these buttons may be |
|
button2 | An AVAlertButtonInfo structure describing the dialog box' buttons. Any or all of these buttons may be |
|
button3 | An AVAlertButtonInfo structure describing the dialog box' buttons. Any or all of these buttons may be |
|
checkbox | An AVAlertCheckBoxInfo structure describing the dialog box' checkbox. It may be |
|
alertType | The type of the alert. |
|
parentWindow | The window to be the parent of the alert. It is ignored if |
AVAlertButtonInfo |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
A data structure containing information about a button used in an Alert dialog box.
See Also
File: AVExpT.h |
Line: 5407 |
show | Pass |
|
title | If non- |
AVAlertCheckBoxInfo |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
A data structure containing information about a checkbox used in an Alert dialog box.
See Also
File: AVExpT.h |
Line: 5423 |
show | Pass |
|
title | If non- |
|
value | Pass |
AVAlert | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASInt32 AVAlert(ASInt32 iconType, const char* msg, const char* button1, const char* button2, const char* button3, ASBool beep)
Displays an alert containing the specified message, icon, and one to three buttons with the specified titles.
You can replace this method with your own version, using HFTReplaceEntry().
Parameters
iconType — | IN The icon to display. It must be one of the AVAlert Icons. Mac OS users: These constants are defined as per the standard Mac user interface guidelines.
|
|
msg — | ||
button1 — | ||
button2 — | ||
button3 — | ||
beep — | IN Pass |
The button number (1, 2, or 3) on which the user clicked. |
See Also
Since
File: AVProcs.h |
Line: 126 |
AVAlertConfirm | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AVAlertConfirm(const char* msg)
Displays a dialog box containing the ALERT_CAUTION icon, the specified message, and OK and Cancel buttons. The method also performs a system beep. See AVAlert() for more information.
Parameters
msg — |
|
See Also
Since
File: AVProcs.h |
Line: 154 |
AVAlertGetPref | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASInt32 AVAlertGetPref(const char* name)
Retrieves the value stored under name
in the AVAlert preference store. The AVAlert preference store is intended to be used by clients to store user preferences regarding whether to display an alert prior to execution of a particular operation. The store is persistent across Acrobat sessions. This routine would typically be used when implementing a dialog box that contains a check box saying, "Do not show this dialog again."
Parameters
name — | The name of the entry to retrieve. It is limited to alphanumeric characters only. |
The value stored under the name, or |
See Also
Since
File: AVProcs.h |
Line: 5823 |
AVAlertNote | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AVAlertNote(const char* msg)
Displays a dialog box containing the ALERT_NOTE icon, the specified message and an OK button. The method also performs a system beep.
Parameters
msg — |
See Also
Since
File: AVProcs.h |
Line: 140 |
AVAlertResetPrefs | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AVAlertResetPrefs()
Resets the entire AVAlert preference store. Specific preference entries can be cleared by passing a value of 0
to AVAlertSetPref().
See Also
Since
File: AVProcs.h |
Line: 5834 |
AVAlertSetPref | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AVAlertSetPref(const char* name, ASInt32 nAnswer)
Stores a value under name
in the AVAlert preference store. The AVAlert preference store is intended to be used by clients to store user preferences regarding whether an alert is displayed prior to execution of a particular operation. The store is persistent across Acrobat sessions. This routine would typically be used when implementing a dialog box that contains a check box saying, "Do not show this dialog again."
Parameters
name — | The name of the entry. It is limited to alphanumeric characters only. |
|
nAnswer — | The value to store; pass |
See Also
Since
File: AVProcs.h |
Line: 5803 |
AVAlertWithParams | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASInt32 AVAlertWithParams(AVAlertParams params)
Displays an alert dialog box with a feature set as described by the supplied AVAlertParams.
Parameters
params — | IN/OUT A description of the alert feature set. |
The button number ( |
Since
File: AVProcs.h |
Line: 5783 |