PMPrintSettingsKeys.pas 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. {
  2. File: PMPrintSettingsKeys.h
  3. Contains: Mac OS X Printing Manager Print Settings Keys.
  4. Version: Technology: Mac OS X
  5. Release: 1.0
  6. Copyright (c) 2008 by Apple Inc. All Rights Reserved.
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://www.freepascal.org/bugs.html
  10. }
  11. { Pascal Translation: Jonas Maebe, <[email protected]>, October 2009 }
  12. {
  13. Modified for use with Free Pascal
  14. Version 308
  15. Please report any bugs to <[email protected]>
  16. }
  17. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  18. {$mode macpas}
  19. {$packenum 1}
  20. {$macro on}
  21. {$inline on}
  22. {$calling mwpascal}
  23. unit PMPrintSettingsKeys;
  24. interface
  25. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  26. {$setc GAP_INTERFACES_VERSION := $0308}
  27. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  28. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  29. {$endc}
  30. {$ifc defined CPUPOWERPC and defined CPUI386}
  31. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  32. {$endc}
  33. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  34. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  35. {$endc}
  36. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  37. {$setc __ppc__ := 1}
  38. {$elsec}
  39. {$setc __ppc__ := 0}
  40. {$endc}
  41. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  42. {$setc __ppc64__ := 1}
  43. {$elsec}
  44. {$setc __ppc64__ := 0}
  45. {$endc}
  46. {$ifc not defined __i386__ and defined CPUI386}
  47. {$setc __i386__ := 1}
  48. {$elsec}
  49. {$setc __i386__ := 0}
  50. {$endc}
  51. {$ifc not defined __x86_64__ and defined CPUX86_64}
  52. {$setc __x86_64__ := 1}
  53. {$elsec}
  54. {$setc __x86_64__ := 0}
  55. {$endc}
  56. {$ifc not defined __arm__ and defined CPUARM}
  57. {$setc __arm__ := 1}
  58. {$elsec}
  59. {$setc __arm__ := 0}
  60. {$endc}
  61. {$ifc defined cpu64}
  62. {$setc __LP64__ := 1}
  63. {$elsec}
  64. {$setc __LP64__ := 0}
  65. {$endc}
  66. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  67. {$error Conflicting definitions for __ppc__ and __i386__}
  68. {$endc}
  69. {$ifc defined __ppc__ and __ppc__}
  70. {$setc TARGET_CPU_PPC := TRUE}
  71. {$setc TARGET_CPU_PPC64 := FALSE}
  72. {$setc TARGET_CPU_X86 := FALSE}
  73. {$setc TARGET_CPU_X86_64 := FALSE}
  74. {$setc TARGET_CPU_ARM := FALSE}
  75. {$setc TARGET_OS_MAC := TRUE}
  76. {$setc TARGET_OS_IPHONE := FALSE}
  77. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  78. {$elifc defined __ppc64__ and __ppc64__}
  79. {$setc TARGET_CPU_PPC := FALSE}
  80. {$setc TARGET_CPU_PPC64 := TRUE}
  81. {$setc TARGET_CPU_X86 := FALSE}
  82. {$setc TARGET_CPU_X86_64 := FALSE}
  83. {$setc TARGET_CPU_ARM := FALSE}
  84. {$setc TARGET_OS_MAC := TRUE}
  85. {$setc TARGET_OS_IPHONE := FALSE}
  86. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  87. {$elifc defined __i386__ and __i386__}
  88. {$setc TARGET_CPU_PPC := FALSE}
  89. {$setc TARGET_CPU_PPC64 := FALSE}
  90. {$setc TARGET_CPU_X86 := TRUE}
  91. {$setc TARGET_CPU_X86_64 := FALSE}
  92. {$setc TARGET_CPU_ARM := FALSE}
  93. {$ifc defined(iphonesim)}
  94. {$setc TARGET_OS_MAC := FALSE}
  95. {$setc TARGET_OS_IPHONE := TRUE}
  96. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  97. {$elsec}
  98. {$setc TARGET_OS_MAC := TRUE}
  99. {$setc TARGET_OS_IPHONE := FALSE}
  100. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  101. {$endc}
  102. {$elifc defined __x86_64__ and __x86_64__}
  103. {$setc TARGET_CPU_PPC := FALSE}
  104. {$setc TARGET_CPU_PPC64 := FALSE}
  105. {$setc TARGET_CPU_X86 := FALSE}
  106. {$setc TARGET_CPU_X86_64 := TRUE}
  107. {$setc TARGET_CPU_ARM := FALSE}
  108. {$setc TARGET_OS_MAC := TRUE}
  109. {$setc TARGET_OS_IPHONE := FALSE}
  110. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  111. {$elifc defined __arm__ and __arm__}
  112. {$setc TARGET_CPU_PPC := FALSE}
  113. {$setc TARGET_CPU_PPC64 := FALSE}
  114. {$setc TARGET_CPU_X86 := FALSE}
  115. {$setc TARGET_CPU_X86_64 := FALSE}
  116. {$setc TARGET_CPU_ARM := TRUE}
  117. { will require compiler define when/if other Apple devices with ARM cpus ship }
  118. {$setc TARGET_OS_MAC := FALSE}
  119. {$setc TARGET_OS_IPHONE := TRUE}
  120. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  121. {$elsec}
  122. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  123. {$endc}
  124. {$ifc defined __LP64__ and __LP64__ }
  125. {$setc TARGET_CPU_64 := TRUE}
  126. {$elsec}
  127. {$setc TARGET_CPU_64 := FALSE}
  128. {$endc}
  129. {$ifc defined FPC_BIG_ENDIAN}
  130. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  131. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  132. {$elifc defined FPC_LITTLE_ENDIAN}
  133. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  134. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  135. {$elsec}
  136. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  137. {$endc}
  138. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  139. {$setc CALL_NOT_IN_CARBON := FALSE}
  140. {$setc OLDROUTINENAMES := FALSE}
  141. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  142. {$setc OPAQUE_UPP_TYPES := TRUE}
  143. {$setc OTCARBONAPPLICATION := TRUE}
  144. {$setc OTKERNEL := FALSE}
  145. {$setc PM_USE_SESSION_APIS := TRUE}
  146. {$setc TARGET_API_MAC_CARBON := TRUE}
  147. {$setc TARGET_API_MAC_OS8 := FALSE}
  148. {$setc TARGET_API_MAC_OSX := TRUE}
  149. {$setc TARGET_CARBON := TRUE}
  150. {$setc TARGET_CPU_68K := FALSE}
  151. {$setc TARGET_CPU_MIPS := FALSE}
  152. {$setc TARGET_CPU_SPARC := FALSE}
  153. {$setc TARGET_OS_UNIX := FALSE}
  154. {$setc TARGET_OS_WIN32 := FALSE}
  155. {$setc TARGET_RT_MAC_68881 := FALSE}
  156. {$setc TARGET_RT_MAC_CFM := FALSE}
  157. {$setc TARGET_RT_MAC_MACHO := TRUE}
  158. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  159. {$setc TYPE_BOOL := FALSE}
  160. {$setc TYPE_EXTENDED := FALSE}
  161. {$setc TYPE_LONGLONG := TRUE}
  162. uses MacTypes;
  163. {$endc} {not MACOSALLINCLUDE}
  164. {$ifc TARGET_OS_MAC}
  165. {$ALIGN POWER}
  166. const
  167. kPMCopiesStr = 'com.apple.print.PrintSettings.PMCopies';
  168. {$ifc USE_CFSTR_CONSTANT_MACROS}
  169. {$definec kPMCopiesKey CFSTRP('com.apple.print.PrintSettings.PMCopies')}
  170. {$endc} { CFNumber, kCFNumberSInt32Type, number of copies to print. }
  171. const
  172. kPMCopyCollateStr = 'com.apple.print.PrintSettings.PMCopyCollate';
  173. {$ifc USE_CFSTR_CONSTANT_MACROS}
  174. {$definec kPMCopyCollateKey CFSTRP('com.apple.print.PrintSettings.PMCopyCollate')}
  175. {$endc} { CFBoolean, Turns on collating }
  176. const
  177. kPMOutputOrderStr = 'OutputOrder';
  178. {$ifc USE_CFSTR_CONSTANT_MACROS}
  179. {$definec kPMOutputOrderKey CFSTRP('OutputOrder')}
  180. {$endc} { CFString, Reverse or Normal. default is Printer Specific }
  181. const
  182. kPMPageSetStr = 'page-set';
  183. {$ifc USE_CFSTR_CONSTANT_MACROS}
  184. {$definec kPMPageSetKey CFSTRP('page-set')}
  185. {$endc} { CFString, even, odd, or all. default is all }
  186. const
  187. kPMMirrorStr = 'mirror';
  188. {$ifc USE_CFSTR_CONSTANT_MACROS}
  189. {$definec kPMMirrorKey CFSTRP('mirror')}
  190. {$endc} { CFString, true or false. default is false }
  191. const
  192. kPMPrintSelectionOnlyStr = 'com.apple.print.PrintSettings.PMPrintSelectionOnly';
  193. {$ifc USE_CFSTR_CONSTANT_MACROS}
  194. {$definec kPMPrintSelectionOnlyKey CFSTRP('com.apple.print.PrintSettings.PMPrintSelectionOnly')}
  195. {$endc} { CFBoolean - True if only current selection should be printed. }
  196. const
  197. kPMBorderStr = 'com.apple.print.PrintSettings.PMBorder';
  198. {$ifc USE_CFSTR_CONSTANT_MACROS}
  199. {$definec kPMBorderKey CFSTRP('com.apple.print.PrintSettings.PMBorder')}
  200. {$endc} { CFBoolean - If true, we do borders. }
  201. const
  202. kPMBorderTypeStr = 'com.apple.print.PrintSettings.PMBorderType';
  203. {$ifc USE_CFSTR_CONSTANT_MACROS}
  204. {$definec kPMBorderTypeKey CFSTRP('com.apple.print.PrintSettings.PMBorderType')}
  205. {$endc} { CFNumber - kCFNumberSInt32Type, Enum (PMBorderType) }
  206. const
  207. kPMLayoutNUpStr = 'com.apple.print.PrintSettings.PMLayoutNUp';
  208. {$ifc USE_CFSTR_CONSTANT_MACROS}
  209. {$definec kPMLayoutNUpKey CFSTRP('com.apple.print.PrintSettings.PMLayoutNUp')}
  210. {$endc} { CFBoolean, Turns on N-Up layout. }
  211. const
  212. kPMLayoutRowsStr = 'com.apple.print.PrintSettings.PMLayoutRows';
  213. {$ifc USE_CFSTR_CONSTANT_MACROS}
  214. {$definec kPMLayoutRowsKey CFSTRP('com.apple.print.PrintSettings.PMLayoutRows')}
  215. {$endc} { CFNumber - kCFNumberSInt32Type, indicates number of layout rows. }
  216. const
  217. kPMLayoutColumnsStr = 'com.apple.print.PrintSettings.PMLayoutColumns';
  218. {$ifc USE_CFSTR_CONSTANT_MACROS}
  219. {$definec kPMLayoutColumnsKey CFSTRP('com.apple.print.PrintSettings.PMLayoutColumns')}
  220. {$endc} { CFNumber - kCFNumberSInt32Type, indicates number of layout columns. }
  221. const
  222. kPMLayoutDirectionStr = 'com.apple.print.PrintSettings.PMLayoutDirection';
  223. {$ifc USE_CFSTR_CONSTANT_MACROS}
  224. {$definec kPMLayoutDirectionKey CFSTRP('com.apple.print.PrintSettings.PMLayoutDirection')}
  225. {$endc} { CFNumber - kCFNumberSInt32Type, Enum (PMLayoutDirection) }
  226. const
  227. kPMLayoutTileOrientationStr = 'com.apple.print.PrintSettings.PMLayoutTileOrientation';
  228. {$ifc USE_CFSTR_CONSTANT_MACROS}
  229. {$definec kPMLayoutTileOrientationKey CFSTRP('com.apple.print.PrintSettings.PMLayoutTileOrientation')}
  230. {$endc} { CFNumber - kCFNumberSInt32Type, PMOrientation, 1 = portrait, 2 = landscape, etc. }
  231. const
  232. kPMJobStateStr = 'com.apple.print.PrintSettings.PMJobState';
  233. {$ifc USE_CFSTR_CONSTANT_MACROS}
  234. {$definec kPMJobStateKey CFSTRP('com.apple.print.PrintSettings.PMJobState')}
  235. {$endc} { CFNumber - kCFNumberSInt32Type, Enum, active = 0, pending, hold until, hold indefinitely, aborted, finished }
  236. const
  237. kPMJobHoldUntilTimeStr = 'com.apple.print.PrintSettings.PMJobHoldUntilTime';
  238. {$ifc USE_CFSTR_CONSTANT_MACROS}
  239. {$definec kPMJobHoldUntilTimeKey CFSTRP('com.apple.print.PrintSettings.PMJobHoldUntilTime')}
  240. {$endc} { CFDate - Time we expect to print the job. }
  241. const
  242. kPMJobPriorityStr = 'com.apple.print.PrintSettings.PMJobPriority';
  243. {$ifc USE_CFSTR_CONSTANT_MACROS}
  244. {$definec kPMJobPriorityKey CFSTRP('com.apple.print.PrintSettings.PMJobPriority')}
  245. {$endc} { CFNumber - kCFNumberSInt32Type, Enum, Low = 0, normal, urgent }
  246. const
  247. kPMDuplexingStr = 'com.apple.print.PrintSettings.PMDuplexing';
  248. {$ifc USE_CFSTR_CONSTANT_MACROS}
  249. {$definec kPMDuplexingKey CFSTRP('com.apple.print.PrintSettings.PMDuplexing')}
  250. {$endc} { CFNumber - kCFNumberSInt32Type, Enum, kPMDuplexNone, kPMDuplexNoTumble, kPMDuplexTumble, kPMSimplexTumble }
  251. const
  252. kPMColorSyncProfileIDStr = 'com.apple.print.PrintSettings.PMColorSyncProfileID';
  253. {$ifc USE_CFSTR_CONSTANT_MACROS}
  254. {$definec kPMColorSyncProfileIDKey CFSTRP('com.apple.print.PrintSettings.PMColorSyncProfileID')}
  255. {$endc} { CFNumber - kCFNumberSInt32Type, ID of profile to use. }
  256. const
  257. kPMPrimaryPaperFeedStr = 'com.apple.print.PrintSettings.PMPrimaryPaperFeed';
  258. {$ifc USE_CFSTR_CONSTANT_MACROS}
  259. {$definec kPMPrimaryPaperFeedKey CFSTRP('com.apple.print.PrintSettings.PMPrimaryPaperFeed')}
  260. {$endc} { CFArray - main & option PPD key for input paper feed }
  261. const
  262. kPMSecondaryPaperFeedStr = 'com.apple.print.PrintSettings.PMSecondaryPaperFeed';
  263. {$ifc USE_CFSTR_CONSTANT_MACROS}
  264. {$definec kPMSecondaryPaperFeedKey CFSTRP('com.apple.print.PrintSettings.PMSecondaryPaperFeed')}
  265. {$endc} { CFArray - main & option PPD key for input paper feed }
  266. const
  267. kPMPSErrorHandlerStr = 'com.apple.print.PrintSettings.PMPSErrorHandler';
  268. {$ifc USE_CFSTR_CONSTANT_MACROS}
  269. {$definec kPMPSErrorHandlerKey CFSTRP('com.apple.print.PrintSettings.PMPSErrorHandler')}
  270. {$endc} { CFNumber - kCFNumberSInt32Type }
  271. const
  272. kPMPSTraySwitchStr = 'com.apple.print.PrintSettings.PMPSTraySwitch';
  273. {$ifc USE_CFSTR_CONSTANT_MACROS}
  274. {$definec kPMPSTraySwitchKey CFSTRP('com.apple.print.PrintSettings.PMPSTraySwitch')}
  275. {$endc} { CFArray - main & option PPD key for tray switching }
  276. const
  277. kPMTotalBeginPagesStr = 'com.apple.print.PrintSettings.PMTotalBeginPages';
  278. {$ifc USE_CFSTR_CONSTANT_MACROS}
  279. {$definec kPMTotalBeginPagesKey CFSTRP('com.apple.print.PrintSettings.PMTotalBeginPages')}
  280. {$endc} { CFNumber the total number of times beginpage was called }
  281. const
  282. kPMTotalSidesImagedStr = 'com.apple.print.PrintSettings.PMTotalSidesImaged';
  283. {$ifc USE_CFSTR_CONSTANT_MACROS}
  284. {$definec kPMTotalSidesImagedKey CFSTRP('com.apple.print.PrintSettings.PMTotalSidesImaged')}
  285. {$endc} { CFNumber the total number of sides that will printed. Does not take into account duplex and collation }
  286. { Fax Related }
  287. const
  288. kPMFaxNumberStr = 'phone';
  289. {$ifc USE_CFSTR_CONSTANT_MACROS}
  290. {$definec kPMFaxNumberKey CFSTRP('phone')}
  291. {$endc} { CFString - fax number to dial }
  292. const
  293. kPMFaxToStr = 'faxTo';
  294. {$ifc USE_CFSTR_CONSTANT_MACROS}
  295. {$definec kPMFaxToKey CFSTRP('faxTo')}
  296. {$endc} { CFString - entire fax to line }
  297. const
  298. kPMFaxPrefixStr = 'faxPrefix';
  299. {$ifc USE_CFSTR_CONSTANT_MACROS}
  300. {$definec kPMFaxPrefixKey CFSTRP('faxPrefix')}
  301. {$endc} { CFString - fax prefix to dial }
  302. const
  303. kPMFaxSubjectStr = 'faxSubject';
  304. {$ifc USE_CFSTR_CONSTANT_MACROS}
  305. {$definec kPMFaxSubjectKey CFSTRP('faxSubject')}
  306. {$endc} { CFString - fax subject linee}
  307. const
  308. kPMFaxCoverSheetStr = 'faxCoverSheet';
  309. {$ifc USE_CFSTR_CONSTANT_MACROS}
  310. {$definec kPMFaxCoverSheetKey CFSTRP('faxCoverSheet')}
  311. {$endc} { CFString - fax cover sheet }
  312. const
  313. kPMFaxCoverSheetMessageStr = 'faxCoverSheetMessage';
  314. {$ifc USE_CFSTR_CONSTANT_MACROS}
  315. {$definec kPMFaxCoverSheetMessageKey CFSTRP('faxCoverSheetMessage')}
  316. {$endc} { CFString - fax cover sheet message}
  317. const
  318. kPMFaxToneDialingStr = 'faxToneDialing';
  319. {$ifc USE_CFSTR_CONSTANT_MACROS}
  320. {$definec kPMFaxToneDialingKey CFSTRP('faxToneDialing')}
  321. {$endc} { CFString - fax use tone dialing }
  322. const
  323. kPMFaxUseSoundStr = 'faxUseSound';
  324. {$ifc USE_CFSTR_CONSTANT_MACROS}
  325. {$definec kPMFaxUseSoundKey CFSTRP('faxUseSound')}
  326. {$endc} { CFString - fax use sound }
  327. const
  328. kPMFaxWaitForDialToneStr = 'faxWaitForDialTone';
  329. {$ifc USE_CFSTR_CONSTANT_MACROS}
  330. {$definec kPMFaxWaitForDialToneKey CFSTRP('faxWaitForDialTone')}
  331. {$endc} { CFString - fax wait for dial tone }
  332. const
  333. kPMFaxToLabelStr = 'faxToLabel';
  334. {$ifc USE_CFSTR_CONSTANT_MACROS}
  335. {$definec kPMFaxToLabelKey CFSTRP('faxToLabel')}
  336. {$endc} { CFString - To: label }
  337. const
  338. kPMFaxFromLabelStr = 'faxFromLabel';
  339. {$ifc USE_CFSTR_CONSTANT_MACROS}
  340. {$definec kPMFaxFromLabelKey CFSTRP('faxFromLabel')}
  341. {$endc} { CFString - From: label }
  342. const
  343. kPMFaxDateLabelStr = 'faxDateLabel';
  344. {$ifc USE_CFSTR_CONSTANT_MACROS}
  345. {$definec kPMFaxDateLabelKey CFSTRP('faxDateLabel')}
  346. {$endc} { CFString - Date: label }
  347. const
  348. kPMFaxSubjectLabelStr = 'faxSubjectLabel';
  349. {$ifc USE_CFSTR_CONSTANT_MACROS}
  350. {$definec kPMFaxSubjectLabelKey CFSTRP('faxSubjectLabel')}
  351. {$endc} { CFString - Subject: label }
  352. const
  353. kPMFaxSheetsLabelStr = 'faxSheetsLabel';
  354. {$ifc USE_CFSTR_CONSTANT_MACROS}
  355. {$definec kPMFaxSheetsLabelKey CFSTRP('faxSheetsLabel')}
  356. {$endc} { CFString - Sheets to Follow: label }
  357. { Coverpage Related }
  358. const
  359. kPMCoverPageStr = 'com.apple.print.PrintSettings.PMCoverPage';
  360. {$ifc USE_CFSTR_CONSTANT_MACROS}
  361. {$definec kPMCoverPageKey CFSTRP('com.apple.print.PrintSettings.PMCoverPage')}
  362. {$endc} { CFNumber - kCFNumberSInt32Type, Enum, kPMCoverPageNone, kPMCoverPageBefore, kPMCoverPageAfter }
  363. { The values for kPMCoverPageKey }
  364. const
  365. kPMCoverPageNone = 1;
  366. // Print a cover page before printing the document.
  367. kPMCoverPageBefore = 2;
  368. // Print a cover page after printing the document.
  369. kPMCoverPageAfter = 3;
  370. { If the kPMDuplexingKey is not in a print settings then kPMDuplexDefault should be assumed.
  371. }
  372. kPMCoverPageDefault = kPMCoverPageNone;
  373. const
  374. kPMCoverPageSourceStr = 'com.apple.print.PrintSettings.PMCoverPageSource';
  375. {$ifc USE_CFSTR_CONSTANT_MACROS}
  376. {$definec kPMCoverPageSourceKey CFSTRP('com.apple.print.PrintSettings.PMCoverPageSource')}
  377. {$endc} { CFArray - main & option PPD key for cover page paper source }
  378. const
  379. kPMDestinationPrinterIDStr = 'DestinationPrinterID';
  380. {$ifc USE_CFSTR_CONSTANT_MACROS}
  381. {$definec kPMDestinationPrinterIDKey CFSTRP('DestinationPrinterID')}
  382. {$endc} { CFStringRef - the printer ID corresponding to the destination printer }
  383. const
  384. kPMInlineWorkflowStr = 'inlineWorkflow';
  385. {$ifc USE_CFSTR_CONSTANT_MACROS}
  386. {$definec kPMInlineWorkflowKey CFSTRP('inlineWorkflow')}
  387. {$endc} { CFStringRef - the URL for the inline workflow item that will process this job }
  388. const
  389. kPMPageToPaperMappingTypeStr = 'com.apple.print.PageToPaperMappingType';
  390. {$ifc USE_CFSTR_CONSTANT_MACROS}
  391. {$definec kPMPageToPaperMappingTypeKey CFSTRP('com.apple.print.PageToPaperMappingType')}
  392. {$endc} { a CFNumber - values from PMPageToPaperMappingType }
  393. const
  394. kPMPageToPaperMediaNameStr = 'com.apple.print.PageToPaperMappingMediaName';
  395. {$ifc USE_CFSTR_CONSTANT_MACROS}
  396. {$definec kPMPageToPaperMediaNameKey CFSTRP('com.apple.print.PageToPaperMappingMediaName')}
  397. {$endc} { a CFString - the untranslated media name for the destination sheet }
  398. const
  399. kPMPageToPaperMappingAllowScalingUpStr = 'com.apple.print.PageToPaperMappingAllowScalingUp';
  400. {$ifc USE_CFSTR_CONSTANT_MACROS}
  401. {$definec kPMPageToPaperMappingAllowScalingUpKey CFSTRP('com.apple.print.PageToPaperMappingAllowScalingUp')}
  402. {$endc} { a CFBoolean - if true, allow scaling up to fit
  403. destination sheet, otherwise do not scale
  404. up if destination sheet is larger than formatting
  405. sheet. Default value: false. }
  406. {
  407. The kPMCustomProfilePathKey key stores a CFString that corresponds to a custom profile setting for a given printer.
  408. }
  409. const
  410. kPMCustomProfilePathStr = 'PMCustomProfilePath';
  411. {$ifc USE_CFSTR_CONSTANT_MACROS}
  412. {$definec kPMCustomProfilePathKey CFSTRP('PMCustomProfilePath')}
  413. {$endc}
  414. { Page to Paper Mapping Types }
  415. const
  416. kPMPageToPaperMappingNone = 1;
  417. kPMPageToPaperMappingScaleToFit = 2;
  418. type
  419. PMPageToPaperMappingType = SInt32;
  420. { Possible values for the kPMColorMatchingModeKey}
  421. const
  422. kPMVendorColorMatchingStr = 'AP_VendorColorMatching';
  423. {$ifc USE_CFSTR_CONSTANT_MACROS}
  424. {$definec kPMVendorColorMatching CFSTRP('AP_VendorColorMatching')}
  425. {$endc}
  426. const
  427. kPMApplicationColorMatchingStr = 'AP_ApplicationColorMatching';
  428. {$ifc USE_CFSTR_CONSTANT_MACROS}
  429. {$definec kPMApplicationColorMatching CFSTRP('AP_ApplicationColorMatching')}
  430. {$endc}
  431. const
  432. kPMColorMatchingModeStr = 'AP_ColorMatchingMode';
  433. {$ifc USE_CFSTR_CONSTANT_MACROS}
  434. {$definec kPMColorMatchingModeKey CFSTRP('AP_ColorMatchingMode')}
  435. {$endc} { Value is CFStringRef - one of kPMColorSyncMatching (deprecated),
  436. kPMVendorColorMatching, kPMApplicationColorMatching }
  437. { Begin: Use of these keys is discouraged. Use PMSessionSetDestination, PMSessionGetDestinationType, PMSessionCopyDestinationFormat, and PMSessionCopyDestinationLocation instead }
  438. const
  439. kPMDestinationTypeStr = 'com.apple.print.PrintSettings.PMDestinationType';
  440. {$ifc USE_CFSTR_CONSTANT_MACROS}
  441. {$definec kPMDestinationTypeKey CFSTRP('com.apple.print.PrintSettings.PMDestinationType')}
  442. {$endc} { CFNumber, kCFNumberSInt32Type kPMDestinationPrinter kPMDestinationFile kPMDestinationFax, etc. }
  443. const
  444. kPMOutputFilenameStr = 'com.apple.print.PrintSettings.PMOutputFilename';
  445. {$ifc USE_CFSTR_CONSTANT_MACROS}
  446. {$definec kPMOutputFilenameKey CFSTRP('com.apple.print.PrintSettings.PMOutputFilename')}
  447. {$endc} { CFString - URL for the output filename. }
  448. { End: Use of these keys is discouraged. Use PMSessionSetDestination, PMSessionGetDestinationType, PMSessionCopyDestinationFormat, and PMSessionCopyDestinationLocation instead }
  449. {$endc} {TARGET_OS_MAC}
  450. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  451. end.
  452. {$endc} {not MACOSALLINCLUDE}