PMPrintSettingsKeys.pas 20 KB

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