| Framework | ApplicationServices/ApplicationServices.h, Carbon/Carbon.h |
| Declared in | PMDefinitions.h PMDefinitionsDeprecated.h PMTemplate.h PMTicket.h PMTicketDeprecated.h |
Ticket Services provides the functions and data types used to communicate printing information (page format and print settings) among the various modules in the printing system. Developers who write printing dialog extensions and printer modules need to use the functions described in this reference and also need to consult the Printing Plug-in Interfaces Reference. Developers who write applications do not need this reference; see the Carbon Printing Manager Reference instead.
PMTicketCreate
PMTicketValidate
PMTicketRetain
PMTicketRemoveTicket
PMTicketRelease
PMTicketReleaseAndClear
PMTicketCopy
PMTicketCreateTemplate
PMTicketCopyItem
PMTicketReleaseItem
PMTicketDeleteItem
PMTicketLockItem
PMTicketUnlockItem
PMTicketIsItemLocked
PMTicketConfirmTicket
PMTicketContainsItem
PMTicketContainsTicket
PMTicketFillFromArray
PMTicketSetBoolean
PMTicketSetBytes
PMTicketSetCFArray
PMTicketSetCFBoolean
PMTicketSetCFData
PMTicketSetCFDate
PMTicketSetCFDictionary
PMTicketSetCFNumber
PMTicketSetCFString
PMTicketSetCString
PMTicketSetCStringArray
PMTicketSetDouble
PMTicketSetDoubleArray
PMTicketSetItem
PMTicketSetPMRect
PMTicketSetPMRectArray
PMTicketSetPMResolution
PMTicketSetPMResolutionArray
PMTicketSetPString
PMTicketSetSInt32
PMTicketSetSInt32Array
PMTicketSetTemplate
PMTicketSetTicket
PMTicketSetUInt32
PMTicketSetUInt32Array
PMTicketGetAllocator
PMTicketGetAPIVersion
PMTicketGetBoolean
PMTicketGetBytes
PMTicketGetCFArray
PMTicketGetCFBoolean
PMTicketGetCFData
PMTicketGetCFDate
PMTicketGetCFDictionary
PMTicketGetCFNumber
PMTicketGetCFString
PMTicketGetCString
PMTicketGetDouble
PMTicketGetEnumType
PMTicketGetIndexPMResolution
PMTicketGetItem
PMTicketGetLockedState
PMTicketGetPMRect
PMTicketGetPMResolution
PMTicketGetPPDDict
PMTicketGetPString
PMTicketGetRetainCount
PMTicketGetSInt32
PMTicketGetTicket
PMTicketGetType
PMTicketGetUInt32
PMTemplateCreate
PMTemplateDelete
PMTemplateMakeEntry
PMTemplateMakeFullEntry
PMTemplateMergeTemplates
PMTemplateRemoveEntry
PMTemplateValidateItem
PMTemplateIsLocked
PMTemplateSetBooleanDefaultValue
PMTemplateSetCFArrayConstraintValue
PMTemplateSetCFDataDefaultValue
PMTemplateSetCFDefaultValue
PMTemplateSetCFRangeConstraint
PMTemplateSetDoubleDefaultValue
PMTemplateSetDoubleListConstraint
PMTemplateSetDoubleRangeDefaultValue
PMTemplateSetDoubleRangeConstraint
PMTemplateSetDoubleRangesConstraint
PMTemplateSetPMRectDefaultValue
PMTemplateSetPMRectListConstraint
PMTemplateSetPMTicketDefaultValue
PMTemplateSetPMTicketListConstraint
PMTemplateSetSInt32DefaultValue
PMTemplateSetSInt32ListConstraint
PMTemplateSetSInt32RangeDefaultValue
PMTemplateSetSInt32RangeConstraint
PMTemplateSetSInt32RangesConstraint
PMTemplateGetValueType
PMTemplateGetConstraintType
PMTemplateGetBooleanDefaultValue
PMTemplateGetCFArrayConstraintValue
PMTemplateGetCFDataDefaultValue
PMTemplateGetCFDefaultValue
PMTemplateGetCFRangeConstraintValue
PMTemplateGetDoubleDefaultValue
PMTemplateGetDoubleRangeDefaultValue
PMTemplateGetDoubleListConstraintValue
PMTemplateGetDoubleRangeConstraintValue
PMTemplateGetDoubleRangesConstraintValue
PMTemplateGetPMRectDefaultValue
PMTemplateGetPMRectListConstraintValue
PMTemplateGetPMTicketDefaultValue
PMTemplateGetListTicketConstraintValue
PMTemplateGetSInt32DefaultValue
PMTemplateGetSInt32RangeDefaultValue
PMTemplateGetSInt32ListConstraintValue
PMTemplateGetSInt32RangeConstraintValue
PMTemplateGetSInt32RangesConstraintValue
PMTemplateCreateXML
PMTicketToXML
PMTicketWriteXML
PMTicketWriteXMLToFile
PMXMLToTicket
PMTemplateLoadFromXML
PMTicketReadXMLFromFile
Creates a new job template.
OSStatus PMTemplateCreate ( PMTemplateRef *newTemplate );
On return, points to a job template data structure allocated by the function.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Converts the data in a job template to data represented as XML.
OSStatus PMTemplateCreateXML ( PMTemplateRef srcTemplate, CFDataRef *xmlData );
A reference to a job template created by calling the function PMTemplateCreate.
On return, points to a reference to an XML representation of the data in the job template specified by the srcTemplate parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Deletes an existing job template.
OSStatus PMTemplateDelete ( PMTemplateRef *oldTemplate );
On input, a reference to a job template created by calling the function PMTemplateCreate. On return, points to NULL.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type Boolean.
OSStatus PMTemplateGetBooleanDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, Boolean *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the default value for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains an array of constraint values for a job template entry of type CFArrayRef.
OSStatus PMTemplateGetCFArrayConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, CFArrayRef *constraintValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, a poinrter to a Core Foundation array reference for the constraint values for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type CFDataRef.
OSStatus PMTemplateGetCFDataDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, CFDataRef *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a Core Foundation data reference that specfies the default data for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type CFTypeRef.
OSStatus PMTemplateGetCFDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, CFTypeRef *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a Core Foundation type reference that specifies the default data for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the range of constraint values for a job template entry of type CFTypeRef.
OSStatus PMTemplateGetCFRangeConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, CFTypeRef *min, CFTypeRef *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a Core Foundation type reference that specifies the minimum value to which the template entry specified by the key parameter is constrained.
On return, points to a Core Foundation type reference that specifies the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the constraint type for a job template entry.
OSStatus PMTemplateGetConstraintType ( PMTemplateRef pmTemplate, CFStringRef key, PMConstraintType *constraintType );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data whose constraint type you want to retrieve from the template.
On return, points to the constraint type for the data specified by the key parameter. See “Constraint Types” for a list of the constraint types that can be returned.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type double.
OSStatus PMTemplateGetDoubleDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, double *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the default double value for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains constraint values for a job template entry of type double.
OSStatus PMTemplateGetDoubleListConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, int *listSize, double *doubleList );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
A pointer to the number of items in the array specified by the parameter doubleList.
On return, points to an array of double values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
You need to call the function PMTemplateGetDoubleListConstraintValue twice. First, call the function to get the number of items in the array specified by the parameter doubleList. You should call the function again after you allocate space for the array.
PMTemplate.h
Obtains the default range of values for a job template entry of type double.
OSStatus PMTemplateGetDoubleRangeConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, double *min, double *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the template entry specified by the key parameter is constrained.
On return, points to the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default range values for a job template entry of type double.
OSStatus PMTemplateGetDoubleRangeDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, double *min, double *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains a range for the minimum and maximum constraint values for a job template entry that is a range of type double.
OSStatus PMTemplateGetDoubleRangesConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, double *minForMin, double *maxForMin, double *minForMax, double *maxForMax );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
On return, points to the minimum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the constraint value for a job template entry that of type PMTicketRef.
OSStatus PMTemplateGetListTicketConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, PMTicketRef *listTicket );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a reference to the list ticket to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type PMRect.
OSStatus PMTemplateGetPMRectDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, PMRect *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the default PMRect data for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains constraint values for a job template entry of type PMRect.
OSStatus PMTemplateGetPMRectListConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, int *listSize, PMRect *rectList );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
A pointer to the number of items in the array specified by the parameter rectList.
On return, points to an array of PMRect values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
You need to call the function PMTemplateGetPMRectListConstraintValue twice. First, call the function to get the number of items in the array specified by the parameter rectList. You should call the function again after you allocate space for the array.
PMTemplate.h
Obtains the default value for a job template entry of type PMTicket.
OSStatus PMTemplateGetPMTicketDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, PMTicketRef *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to a reference to the default ticket for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default value for a job template entry of type SInt32.
OSStatus PMTemplateGetSInt32DefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 *defaultValue );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the default value for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains constraint values for a job template entry of type SInt32.
OSStatus PMTemplateGetSInt32ListConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, int *listSize, SInt32 *sint32List );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the number of items in the array specified by the parameter sint32List.
On return, points to an array of SInt32 values to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
You need to call the function PMTemplateGetSInt32ListConstraintValue twice. First, call the function to get the number of items in the array specified by the parameter sint32List. You should call the function again after you allocate space for the array.
PMTemplate.h
Obtains the default range of values for a job template entry of type SInt32.
OSStatus PMTemplateGetSInt32RangeConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 *min, SInt32 *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the template entry specified by the key parameter is constrained.
On return, points to the maximum value to which the template entry specified by the key parameter is constrained.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the default range values for a job template entry of type SInt32.
OSStatus PMTemplateGetSInt32RangeDefaultValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 *min, SInt32 *max );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains a range of constraint values for a job template entry that is a range of type SInt32.
OSStatus PMTemplateGetSInt32RangesConstraintValue ( PMTemplateRef pmTemplate, CFStringRef key, SInt32 *minForMin, SInt32 *maxForMin, SInt32 *minForMax, SInt32 *maxForMax );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the minimum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the minimum of the range is constrained for the template entry specified by the key parameter.
On return, points to the minimum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
On return, points to the maximum value to which the maximum of the range is constrained for the template entry specified by the key parameter.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Obtains the data type of a job template entry.
OSStatus PMTemplateGetValueType ( PMTemplateRef pmTemplate, CFStringRef key, PMValueType *valueType );
A reference to a job template. You can call the function PMSessionGetDataFromSession with the ticket type set to kPDE_PMJobTemplateRef to get a value that you can then cast to a job template reference.
A reference to a CFString object that uniquely identifies the data you want to retrieve from the template.
On return, points to the value type for the template entry specified by the key parameter. See “PMTicketItemType” for a list of values that can be returned.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Checks to see if a job template is locked.
OSStatus PMTemplateIsLocked ( PMTemplateRef srcTemplate, Boolean *locked );
A reference to a job template created by calling the function PMTemplateCreate.
On return, points to true if the job template is locked and false if the template is not locked.
A result code. See “Ticket Services Result Codes.”
A job template cannot be modified unless it is unlocked.
PMTemplate.h
Restores a job template that was previously converted to XML.
OSStatus PMTemplateLoadFromXML ( CFDataRef srcData, PMTemplateRef *destTemplate );
A reference to CFData that represents job template data. You obtain a CFDataRef by calling the function PMTemplateCreateXML.
A reference to a job template created by calling the function PMTemplateCreate. On return, the job template contains the entries specified by the XML data.
A result code. See “Ticket Services Result Codes.”
PMTemplate.h
Creates a new entry in a job template.
OSStatus PMTemplateMakeEntry ( PMTemplateRef pmTemplate, CFStringRef key, PMValueType valueType, PMConstraintType constraintType );
A reference to a job template created by calling the function PMTemplateCreate.
A reference to a CFString object that uniquely identifies the entry. You use the key to set and obtain the data for this entry.
The data type of the value associated with the entry. See “PMValueType” for a list of constants you can use to specify the data type.