QX.js API Reference

constants

app. constants

The constants module represents the QuarkXPress application's constants in the java scripting world. You can use these constant values while invoking various methods.

Members

(static, readonly) alertResults :number

Properties:
Name Type Description
kUnknown number Unknown action
kOK number OK action by the user
kCancel number CANCEL action by the user
alertResults.
Type:
  • number

(static, readonly) alertTypes :number

Properties:
Name Type Description
kUnknownAlert number Unknown type of alert
kNoteAlert number Information type of alert
kStopAlert number Stop type of alert
kCautionAlert number Exclamation type of alert
alertTypes.
Type:
  • number

(static, readonly) assetTypes :number

Properties:
Name Type Description
kInvalAsset number Asset type constant for unknown asset
kAssetCharStyle number Asset type constant for character style
kAssetParaStyle number Asset type constant for paragraph style
kAssetColor number Asset type constant for color resources
kAssetLAndF number Asset type constant for lines and frames
kAssetHAndJ number Asset type constant for hyphenation and justification
kAssetLists number Asset type constant for list
kAssetOutputStyle number Asset type constant for output style
kAssetFontset number Asset type constant for font set resources
kAssetHangingCharClass number Asset type constant for hanging character class
kAssetHangingCharSet number Asset type constant for hanging character set
kAssetBN number Asset type constant for bullets and number styles
kAssetOutlineStyle number Asset type constant for outline styles
kAssetCS number Asset type constant for conditional styles
kAssetBindingStyle number Asset type constant for font set resources
kAssetTableStyle number Asset type constant for table styles
kAssetFootnoteStyle number Asset type constant for footnote styles
kAssetFootnoteContainerStyle number Asset type constant for footnote container styles
kAssetTextBackGroundStyle number Asset type constant for text shading styles
kAssetItemStyle number Asset type constant for item styles
assetTypes.
Type:
  • number

(static, readonly) layoutMediaTypes :number

Properties:
Name Type Description
PRINT_MEDIA_TYPE number This flag is used to represent media type for print layout
DIGITAL_MEDIA_TYPE number This flag is used to represent media type for digital layout
layoutMediaTypes.
Type:
  • number

(static, readonly) LockTypes :number

Properties:
Name Type Description
kInvalLock number
kLocationLock number
kSizeLock number Flag used for locking state of the location of item
kDeleteLock number Flag used for locking state of the size of item
kModifyParamLock number Flag used for locking state of of item
kGroupLock number
kStoryContentLock number
kStoryFormattingLock number
kPictureContentLock number
kPictureFormattingLock number
kResourceClassLock number
kResourceLock number
kLayoutLock number
kProjectLock number
kGroupModifyParamLock number
kSharedContentLock number
kTableContentLock number
kTableFormattingLock number
LockTypes.
Type:
  • number

(static, readonly) openProjectFlags :hex

Properties:
Name Type Description
NO_OPEN_DOC_FLAGS hex This is the default flag used to open the project
HIDEDOC hex This flag is used to hide project while opening project
SUPPRESSWARNINGS hex This flag is used to prevent warning messages while opening project
SUPPRESSERRORS hex This flag is used to prevent error messages while opening project
SKIPMISSINGFONT hex This flag is used to skip the missing font dialog while opening project
SKIPASKUSEPREFS hex This flag is used to ignore user preferences while opening project
USEDOCPREFS hex This flag is used to use document preferences while opening project
READONLYDOC hex This flag is used to open project as read only
OPENFORAPPEND hex This flag is used to open the project for append resources
OPENFORSYNCH hex This flag is used to open the project synching the external resources
FORCE_REFLOW hex This flag is used to open the project and reflow the text to make it fit
REIMPORT_ALL_PICS hex This flag is used to open the project with updated images
ALLOW_VALIDATE_PREP_CALLBACK hex This flag is used to receive _XT_OPEN_VALIDATE_PREP and_XT_OPEN_VALIDATE
HIDDEN_LAYOUT hex This flag is used to open project with no layout visible
FAST_OPEN hex This flag is used to open project without any validation
openProjectFlags.
Type:
  • hex

(static, readonly) outputSuppressUIFlags :number

Properties:
Name Type Description
kOutputUI_Default number Flag used for default behaviour during output
kOutputUI_SuppressOutputWap number Flag used for suppressing all the user interaction during output
kOutputUI_SuppressProgressWap number Flag used for suppressing the progress bar during output
kOutputUI_SuppressMissingPPDWarning number Flag used for suppressing the PPD missing warning during output
kOutputUI_SuppressMissingPictWarning number Flag used for suppressing the pictures missing warning and the usage dialog during output
kOutputUI_SuppressMissingPlateWarning number Flag used for suppressing the missing plate warning during output
kOutputUI_SuppressMissingSpotPlateWarning number Flag used for suppressing the missing spot plate warning during output
kOutputUI_SuppressBinaryDataWarning number Flag used for suppressing the missing binary data warning during output
kOutputUI_SuppressLevelInfoWarning number Flag used for suppressing the level info warning during output
kOutputUI_SuppressMappingCMYKWarning number Flag used for suppressing the CMYK mapping warning during output
kOutputUI_SuppressDCSInDeviceNWarning number Flag used for suppressing the DCS in DeviceN warning during output
kOutputUI_SuppressDeviceNLevel2Warning number Flag used for suppressing the DeviceN Level2 warning during output
kOutputUI_SuppressAll number Flag used for suppressing all possible UI during output
OutputSuppressUIFlags.
Type:
  • number

(static, readonly) projectCloseTypes :number

Properties:
Name Type Description
NO_CLOSE number Flag used to not close the project
CLOSE_PROJECT number Flag used to silently close the project
QUERY_CLOSE_PROJECT number Flag used to close the project with user confirmation
projectCloseTypes.
Type:
  • number