PMCoreDeprecated.pas 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656
  1. {
  2. File: PrintCore/PMCoreDeprecated.h
  3. Contains: Deprecated Carbon Printing Manager Interfaces.
  4. Copyright (c) 1998-2006,2008 by Apple Inc. All Rights Reserved.
  5. Bugs?: For bug reports, consult the following page on
  6. the World Wide Web:
  7. http://www.freepascal.org/bugs.html
  8. }
  9. { Pascal Translation: Jonas Maebe, <[email protected]>, October 2009 }
  10. {
  11. Modified for use with Free Pascal
  12. Version 308
  13. Please report any bugs to <[email protected]>
  14. }
  15. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  16. {$mode macpas}
  17. {$packenum 1}
  18. {$macro on}
  19. {$inline on}
  20. {$calling mwpascal}
  21. unit PMCoreDeprecated;
  22. interface
  23. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  24. {$setc GAP_INTERFACES_VERSION := $0308}
  25. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  26. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  27. {$endc}
  28. {$ifc defined CPUPOWERPC and defined CPUI386}
  29. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  30. {$endc}
  31. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  32. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  33. {$endc}
  34. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  35. {$setc __ppc__ := 1}
  36. {$elsec}
  37. {$setc __ppc__ := 0}
  38. {$endc}
  39. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  40. {$setc __ppc64__ := 1}
  41. {$elsec}
  42. {$setc __ppc64__ := 0}
  43. {$endc}
  44. {$ifc not defined __i386__ and defined CPUI386}
  45. {$setc __i386__ := 1}
  46. {$elsec}
  47. {$setc __i386__ := 0}
  48. {$endc}
  49. {$ifc not defined __x86_64__ and defined CPUX86_64}
  50. {$setc __x86_64__ := 1}
  51. {$elsec}
  52. {$setc __x86_64__ := 0}
  53. {$endc}
  54. {$ifc not defined __arm__ and defined CPUARM}
  55. {$setc __arm__ := 1}
  56. {$elsec}
  57. {$setc __arm__ := 0}
  58. {$endc}
  59. {$ifc defined cpu64}
  60. {$setc __LP64__ := 1}
  61. {$elsec}
  62. {$setc __LP64__ := 0}
  63. {$endc}
  64. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  65. {$error Conflicting definitions for __ppc__ and __i386__}
  66. {$endc}
  67. {$ifc defined __ppc__ and __ppc__}
  68. {$setc TARGET_CPU_PPC := TRUE}
  69. {$setc TARGET_CPU_PPC64 := FALSE}
  70. {$setc TARGET_CPU_X86 := FALSE}
  71. {$setc TARGET_CPU_X86_64 := FALSE}
  72. {$setc TARGET_CPU_ARM := FALSE}
  73. {$setc TARGET_OS_MAC := TRUE}
  74. {$setc TARGET_OS_IPHONE := FALSE}
  75. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  76. {$elifc defined __ppc64__ and __ppc64__}
  77. {$setc TARGET_CPU_PPC := FALSE}
  78. {$setc TARGET_CPU_PPC64 := TRUE}
  79. {$setc TARGET_CPU_X86 := FALSE}
  80. {$setc TARGET_CPU_X86_64 := FALSE}
  81. {$setc TARGET_CPU_ARM := FALSE}
  82. {$setc TARGET_OS_MAC := TRUE}
  83. {$setc TARGET_OS_IPHONE := FALSE}
  84. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  85. {$elifc defined __i386__ and __i386__}
  86. {$setc TARGET_CPU_PPC := FALSE}
  87. {$setc TARGET_CPU_PPC64 := FALSE}
  88. {$setc TARGET_CPU_X86 := TRUE}
  89. {$setc TARGET_CPU_X86_64 := FALSE}
  90. {$setc TARGET_CPU_ARM := FALSE}
  91. {$ifc defined(iphonesim)}
  92. {$setc TARGET_OS_MAC := FALSE}
  93. {$setc TARGET_OS_IPHONE := TRUE}
  94. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  95. {$elsec}
  96. {$setc TARGET_OS_MAC := TRUE}
  97. {$setc TARGET_OS_IPHONE := FALSE}
  98. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  99. {$endc}
  100. {$elifc defined __x86_64__ and __x86_64__}
  101. {$setc TARGET_CPU_PPC := FALSE}
  102. {$setc TARGET_CPU_PPC64 := FALSE}
  103. {$setc TARGET_CPU_X86 := FALSE}
  104. {$setc TARGET_CPU_X86_64 := TRUE}
  105. {$setc TARGET_CPU_ARM := FALSE}
  106. {$setc TARGET_OS_MAC := TRUE}
  107. {$setc TARGET_OS_IPHONE := FALSE}
  108. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  109. {$elifc defined __arm__ and __arm__}
  110. {$setc TARGET_CPU_PPC := FALSE}
  111. {$setc TARGET_CPU_PPC64 := FALSE}
  112. {$setc TARGET_CPU_X86 := FALSE}
  113. {$setc TARGET_CPU_X86_64 := FALSE}
  114. {$setc TARGET_CPU_ARM := TRUE}
  115. { will require compiler define when/if other Apple devices with ARM cpus ship }
  116. {$setc TARGET_OS_MAC := FALSE}
  117. {$setc TARGET_OS_IPHONE := TRUE}
  118. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  119. {$elsec}
  120. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  121. {$endc}
  122. {$ifc defined __LP64__ and __LP64__ }
  123. {$setc TARGET_CPU_64 := TRUE}
  124. {$elsec}
  125. {$setc TARGET_CPU_64 := FALSE}
  126. {$endc}
  127. {$ifc defined FPC_BIG_ENDIAN}
  128. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  129. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  130. {$elifc defined FPC_LITTLE_ENDIAN}
  131. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  132. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  133. {$elsec}
  134. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  135. {$endc}
  136. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  137. {$setc CALL_NOT_IN_CARBON := FALSE}
  138. {$setc OLDROUTINENAMES := FALSE}
  139. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  140. {$setc OPAQUE_UPP_TYPES := TRUE}
  141. {$setc OTCARBONAPPLICATION := TRUE}
  142. {$setc OTKERNEL := FALSE}
  143. {$setc PM_USE_SESSION_APIS := TRUE}
  144. {$setc TARGET_API_MAC_CARBON := TRUE}
  145. {$setc TARGET_API_MAC_OS8 := FALSE}
  146. {$setc TARGET_API_MAC_OSX := TRUE}
  147. {$setc TARGET_CARBON := TRUE}
  148. {$setc TARGET_CPU_68K := FALSE}
  149. {$setc TARGET_CPU_MIPS := FALSE}
  150. {$setc TARGET_CPU_SPARC := FALSE}
  151. {$setc TARGET_OS_UNIX := FALSE}
  152. {$setc TARGET_OS_WIN32 := FALSE}
  153. {$setc TARGET_RT_MAC_68881 := FALSE}
  154. {$setc TARGET_RT_MAC_CFM := FALSE}
  155. {$setc TARGET_RT_MAC_MACHO := TRUE}
  156. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  157. {$setc TYPE_BOOL := FALSE}
  158. {$setc TYPE_EXTENDED := FALSE}
  159. {$setc TYPE_LONGLONG := TRUE}
  160. uses MacTypes,Files,QuickdrawTypes,PMDefinitions,PMDefinitionsDeprecated,ColorSyncDeprecated,CFBase,CFArray,CFData;
  161. {$endc} {not MACOSALLINCLUDE}
  162. {$ifc TARGET_OS_MAC}
  163. {$ALIGN POWER}
  164. {
  165. * PMFlattenPageFormatToCFData() *** DEPRECATED ***
  166. *
  167. * Discussion:
  168. * Use PMPageFormatCreateDataRepresentation instead.
  169. *
  170. * Summary:
  171. * Returns a flattened representation of the page format object in a CFDataRef.
  172. *
  173. * Availability:
  174. * Mac OS X: in version 10.4 and later in ApplicationServices.framework but deprecated in 10.5
  175. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  176. * Non-Carbon CFM: not available
  177. }
  178. function PMFlattenPageFormatToCFData( pageFormat: PMPageFormat; var flatFormat: CFDataRef ): OSStatus; external name '_PMFlattenPageFormatToCFData';
  179. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  180. {
  181. * PMFlattenPageFormatToURL() *** DEPRECATED ***
  182. *
  183. * Discussion:
  184. * Instead use PMPageFormatCreateDataRepresentation and write the resulting data to your destination.
  185. *
  186. * Summary:
  187. * Writes a flattened representation of the print settings to the
  188. * URL specified by flattenFileURL.
  189. *
  190. * Availability:
  191. * Mac OS X: in version 10.4 and later in ApplicationServices.framework but deprecated in 10.5
  192. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  193. * Non-Carbon CFM: not available
  194. }
  195. function PMFlattenPageFormatToURL( pageFormat: PMPageFormat; flattenFileURL: CFURLRef ): OSStatus; external name '_PMFlattenPageFormatToURL';
  196. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  197. {
  198. * PMUnflattenPageFormatWithCFData() *** DEPRECATED ***
  199. *
  200. * Discussion:
  201. * Use PMPageFormatCreateWithDataRepresentation instead.
  202. *
  203. * Summary:
  204. * Returns a page format object given a CFDataRef to a previously
  205. * flattened page format.
  206. *
  207. * Parameters:
  208. *
  209. * flattenCFData:
  210. * A CFDataRef containing a flattened print settings.
  211. *
  212. * pageFormat:
  213. * On return, a newly created page format object create with the
  214. * data contained in 'flattenCFData'. The printing framework will
  215. * create the object. The app is responsible for disposing of it.
  216. *
  217. * Availability:
  218. * Mac OS X: in version 10.4 and later in ApplicationServices.framework but deprecated in 10.5
  219. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  220. * Non-Carbon CFM: not available
  221. }
  222. function PMUnflattenPageFormatWithCFData( flattenCFData: CFDataRef; var pageFormat: PMPageFormat ): OSStatus; external name '_PMUnflattenPageFormatWithCFData';
  223. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  224. {
  225. * PMUnflattenPageFormatWithURL() *** DEPRECATED ***
  226. *
  227. * Discussion:
  228. * Instead read the data into a CFData object and use PMPageFormatCreateWithDataRepresentation.
  229. *
  230. * Summary:
  231. * Returns a page format object given a CFURLRef referencing a file
  232. * containing a previously flattened page format.
  233. *
  234. * Parameters:
  235. *
  236. * flattenFileURL:
  237. * A CFURLRef referencing a file that contains a flattened page
  238. * format.
  239. *
  240. * pageFormat:
  241. * On return, a newly created page format object created from the
  242. * flattened page format data specified by 'flattenFileURL'. The
  243. * caller is responsible for releasing the page format created.
  244. *
  245. * Availability:
  246. * Mac OS X: in version 10.4 and later in ApplicationServices.framework but deprecated in 10.5
  247. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  248. * Non-Carbon CFM: not available
  249. }
  250. function PMUnflattenPageFormatWithURL( flattenFileURL: CFURLRef; var pageFormat: PMPageFormat ): OSStatus; external name '_PMUnflattenPageFormatWithURL';
  251. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  252. {
  253. * PMFlattenPrintSettingsToCFData() *** DEPRECATED ***
  254. *
  255. * Discussion:
  256. * Use PMPrintSettingsCreateDataRepresentation instead.
  257. *
  258. * Summary:
  259. * Returns a flattened print settings object as a CFDataRef.
  260. *
  261. * Availability:
  262. * Mac OS X: in version 10.4 and later in ApplicationServices.framework but deprecated in 10.5
  263. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  264. * Non-Carbon CFM: not available
  265. }
  266. function PMFlattenPrintSettingsToCFData( printSettings: PMPrintSettings; var flatSetting: CFDataRef ): OSStatus; external name '_PMFlattenPrintSettingsToCFData';
  267. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  268. {
  269. * PMFlattenPrintSettingsToURL() *** DEPRECATED ***
  270. *
  271. * Discussion:
  272. * Instead use PMPrintSettingsCreateDataRepresentation and write the resulting data to your destination.
  273. *
  274. * Summary:
  275. * Writes a flattened representation of the print settings to the
  276. * URL specified by flattenFileURL.
  277. *
  278. * Availability:
  279. * Mac OS X: in version 10.4 and later in ApplicationServices.framework but deprecated in 10.5
  280. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  281. * Non-Carbon CFM: not available
  282. }
  283. function PMFlattenPrintSettingsToURL( printSettings: PMPrintSettings; flattenFileURL: CFURLRef ): OSStatus; external name '_PMFlattenPrintSettingsToURL';
  284. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  285. {
  286. * PMUnflattenPrintSettingsWithCFData() *** DEPRECATED ***
  287. *
  288. * Discussion:
  289. * Use PMPrintSettingsCreateWithDataRepresentation instead.
  290. *
  291. * Summary:
  292. * Returns a print settings object given a CFDataRef to a previously
  293. * flatten print settings.
  294. *
  295. * Parameters:
  296. *
  297. * flattenCFData:
  298. * A CFDataRef containing a flatten print settings.
  299. *
  300. * printSettings:
  301. * On return, a newly created print settings object create with
  302. * the data contained in 'flattenCFData'. The printing framework
  303. * will create the object. The app is responsible for disposing of
  304. * it.
  305. *
  306. * Availability:
  307. * Mac OS X: in version 10.4 and later in ApplicationServices.framework but deprecated in 10.5
  308. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  309. * Non-Carbon CFM: not available
  310. }
  311. function PMUnflattenPrintSettingsWithCFData( flattenCFData: CFDataRef; var printSettings: PMPrintSettings ): OSStatus; external name '_PMUnflattenPrintSettingsWithCFData';
  312. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  313. {
  314. * PMUnflattenPrintSettingsWithURL() *** DEPRECATED ***
  315. *
  316. * Discussion:
  317. * Instead read the data into a CFData object and use PMPrintSettingsCreateWithDataRepresentation.
  318. *
  319. * Summary:
  320. * Returns a print settings object given a CFURLRef referencing a
  321. * file containing a previously flattened print settings.
  322. *
  323. * Parameters:
  324. *
  325. * flattenFileURL:
  326. * A CFURLRef referencing a file that contains a flattened print
  327. * settings.
  328. *
  329. * printSettings:
  330. * On return, a newly created print settings object created with
  331. * the data specified by 'flattenFileURL'. The caller is
  332. * responsible for releasing the print settings created.
  333. *
  334. * Availability:
  335. * Mac OS X: in version 10.4 and later in ApplicationServices.framework but deprecated in 10.5
  336. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  337. * Non-Carbon CFM: not available
  338. }
  339. function PMUnflattenPrintSettingsWithURL( flattenFileURL: CFURLRef; var printSettings: PMPrintSettings ): OSStatus; external name '_PMUnflattenPrintSettingsWithURL';
  340. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  341. {
  342. * PMGetPrintSettingsExtendedData() *** DEPRECATED ***
  343. *
  344. * Discussion:
  345. * Use PMPrintSettingsGetValue instead.
  346. *
  347. * Availability:
  348. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  349. * CarbonLib: in CarbonLib 1.0 and later
  350. * Non-Carbon CFM: not available
  351. }
  352. function PMGetPrintSettingsExtendedData( printSettings: PMPrintSettings; dataID: OSType; var size: UInt32; extendedData: UnivPtr ): OSStatus; external name '_PMGetPrintSettingsExtendedData';
  353. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
  354. {
  355. * PMSetPrintSettingsExtendedData() *** DEPRECATED ***
  356. *
  357. * Discussion:
  358. * Use PMPrintSettingsSetValue instead.
  359. *
  360. * Availability:
  361. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  362. * CarbonLib: in CarbonLib 1.0 and later
  363. * Non-Carbon CFM: not available
  364. }
  365. function PMSetPrintSettingsExtendedData( printSettings: PMPrintSettings; dataID: OSType; size: UInt32; extendedData: UnivPtr ): OSStatus; external name '_PMSetPrintSettingsExtendedData';
  366. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6 *)
  367. {$ifc not TARGET_CPU_64}
  368. {
  369. * SPECIAL AVAILABILITY note: This routine is available in ApplicationsServices.framework in
  370. * Mac OS X version 10.0 and later. On Mac OS X it is available to CFM applications through CarbonLib
  371. * starting with Mac OS X version 10.2 and later.
  372. *
  373. * On Mac OS 8/9 using CarbonLib, this routine returns kPMNotImplemented
  374. }
  375. {
  376. * PMSetProfile() *** DEPRECATED ***
  377. *
  378. * Discussion:
  379. * Application must be rendering with QuickDraw for this to have
  380. * effect. Use Quartz drawing instead.
  381. *
  382. * Availability:
  383. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  384. * CarbonLib: in CarbonLib 1.0 and later
  385. * Non-Carbon CFM: not available
  386. }
  387. function PMSetProfile( printSettings: PMPrintSettings; tag: PMTag; const (*var*) profile: CMProfileLocation ): OSStatus; external name '_PMSetProfile';
  388. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  389. { Callbacks }
  390. {***************************************}
  391. { All Idle UPP routines are deprecated }
  392. {***************************************}
  393. type
  394. PMIdleProcPtr = procedure;
  395. PMIdleUPP = PMIdleProcPtr;
  396. {
  397. * NewPMIdleUPP()
  398. *
  399. * Availability:
  400. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  401. * CarbonLib: in CarbonLib 1.0 and later
  402. * Non-Carbon CFM: not available
  403. }
  404. function NewPMIdleUPP( userRoutine: PMIdleProcPtr ): PMIdleUPP; external name '_NewPMIdleUPP';
  405. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  406. {
  407. * DisposePMIdleUPP()
  408. *
  409. * Availability:
  410. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  411. * CarbonLib: in CarbonLib 1.0 and later
  412. * Non-Carbon CFM: not available
  413. }
  414. procedure DisposePMIdleUPP( userUPP: PMIdleUPP ); external name '_DisposePMIdleUPP';
  415. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  416. {
  417. * InvokePMIdleUPP()
  418. *
  419. * Availability:
  420. * Mac OS X: in version 10.0 and later in ApplicationServices.framework
  421. * CarbonLib: in CarbonLib 1.0 and later
  422. * Non-Carbon CFM: not available
  423. }
  424. procedure InvokePMIdleUPP( userUPP: PMIdleUPP ); external name '_InvokePMIdleUPP';
  425. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  426. {$ifc PM_USE_SESSION_APIS}
  427. {
  428. * @function PMSessionBeginDocumentNoDialog
  429. * @discussion Use PMSessionBeginCGDocumentNoDialog instead.
  430. }
  431. {
  432. * PMSessionBeginDocumentNoDialog() *** DEPRECATED ***
  433. *
  434. * Availability:
  435. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  436. * CarbonLib: in CarbonLib 1.6 and later
  437. * Non-Carbon CFM: not available
  438. }
  439. function PMSessionBeginDocumentNoDialog( printSession: PMPrintSession; printSettings: PMPrintSettings; pageFormat: PMPageFormat ): OSStatus; external name '_PMSessionBeginDocumentNoDialog';
  440. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  441. {
  442. * PMSessionGetGraphicsContext() *** DEPRECATED ***
  443. *
  444. * Discussion:
  445. * Use PMSessionGetCGGraphicsContext instead.
  446. *
  447. * Parameters:
  448. *
  449. * printSession:
  450. * the session
  451. *
  452. * graphicsContextType:
  453. * either kPMGraphicsContextQuickdraw or
  454. * kPMGraphicsContextCoreGraphics
  455. *
  456. * graphicsContext:
  457. * returns a GrafPtr or a CGContextRef
  458. *
  459. * Availability:
  460. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  461. * CarbonLib: in CarbonLib 1.1 and later
  462. * Non-Carbon CFM: not available
  463. }
  464. function PMSessionGetGraphicsContext( printSession: PMPrintSession; graphicsContextType: CFStringRef; var graphicsContext: UnivPtr ): OSStatus; external name '_PMSessionGetGraphicsContext';
  465. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  466. {
  467. * PMSessionEnableColorSync() *** DEPRECATED ***
  468. *
  469. * Discussion:
  470. * Application must be rendering with QuickDraw for this to have
  471. * effect. Use Quartz drawing instead.
  472. *
  473. * Availability:
  474. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  475. * CarbonLib: in CarbonLib 1.1 and later
  476. * Non-Carbon CFM: not available
  477. }
  478. function PMSessionEnableColorSync( printSession: PMPrintSession ): OSStatus; external name '_PMSessionEnableColorSync';
  479. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  480. {
  481. * PMSessionDisableColorSync() *** DEPRECATED ***
  482. *
  483. * Discussion:
  484. * Application must be rendering with QuickDraw for this to have
  485. * effect. Use Quartz drawing instead.
  486. *
  487. * Availability:
  488. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  489. * CarbonLib: in CarbonLib 1.1 and later
  490. * Non-Carbon CFM: not available
  491. }
  492. function PMSessionDisableColorSync( printSession: PMPrintSession ): OSStatus; external name '_PMSessionDisableColorSync';
  493. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  494. {
  495. * PMSessionSetIdleProc() *** DEPRECATED ***
  496. *
  497. * Availability:
  498. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  499. * CarbonLib: in CarbonLib 1.1 and later
  500. * Non-Carbon CFM: not available
  501. }
  502. function PMSessionSetIdleProc( printSession: PMPrintSession; idleProc: PMIdleUPP ): OSStatus; external name '_PMSessionSetIdleProc';
  503. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  504. {
  505. * PMSessionGeneral() *** DEPRECATED ***
  506. *
  507. * Discussion:
  508. * Use PMPrinterGetCommInfo instead.
  509. *
  510. * Availability:
  511. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  512. * CarbonLib: in CarbonLib 1.1 and later
  513. * Non-Carbon CFM: not available
  514. }
  515. function PMSessionGeneral( printSession: PMPrintSession; pData: Ptr ): OSStatus; external name '_PMSessionGeneral';
  516. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  517. {
  518. * PMSessionConvertOldPrintRecord() *** DEPRECATED ***
  519. *
  520. * Availability:
  521. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  522. * CarbonLib: in CarbonLib 1.1 and later
  523. * Non-Carbon CFM: not available
  524. }
  525. function PMSessionConvertOldPrintRecord( printSession: PMPrintSession; printRecordHandle: Handle; var printSettings: PMPrintSettings; var pageFormat: PMPageFormat ): OSStatus; external name '_PMSessionConvertOldPrintRecord';
  526. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  527. {
  528. * PMSessionMakeOldPrintRecord() *** DEPRECATED ***
  529. *
  530. * Availability:
  531. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  532. * CarbonLib: in CarbonLib 1.1 and later
  533. * Non-Carbon CFM: not available
  534. }
  535. function PMSessionMakeOldPrintRecord( printSession: PMPrintSession; printSettings: PMPrintSettings; pageFormat: PMPageFormat; var printRecordHandle: Handle ): OSStatus; external name '_PMSessionMakeOldPrintRecord';
  536. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  537. {
  538. * PMSessionSetCurrentPrinter() *** DEPRECATED ***
  539. *
  540. * Discussion:
  541. * Use PMSessionSetCurrentPMPrinter after creating a PMPrinter with
  542. * PMPrinterCreateFromPrinterID.
  543. *
  544. * Availability:
  545. * Mac OS X: in version 10.1 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  546. * CarbonLib: in CarbonLib 1.4 and later
  547. * Non-Carbon CFM: not available
  548. }
  549. function PMSessionSetCurrentPrinter( session: PMPrintSession; printerName: CFStringRef ): OSStatus; external name '_PMSessionSetCurrentPrinter';
  550. (* AVAILABLE_MAC_OS_X_VERSION_10_1_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  551. {
  552. * PMSessionPostScriptBegin() *** DEPRECATED ***
  553. *
  554. * Discussion:
  555. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  556. *
  557. * For using EPS data together with other application drawing
  558. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  559. *
  560. * Availability:
  561. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  562. * CarbonLib: in CarbonLib 1.1 and later
  563. * Non-Carbon CFM: not available
  564. }
  565. function PMSessionPostScriptBegin( printSession: PMPrintSession ): OSStatus; external name '_PMSessionPostScriptBegin';
  566. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  567. {
  568. * PMSessionPostScriptEnd() *** DEPRECATED ***
  569. *
  570. * Discussion:
  571. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  572. *
  573. * For using EPS data together with other application drawing
  574. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  575. *
  576. * Availability:
  577. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  578. * CarbonLib: in CarbonLib 1.1 and later
  579. * Non-Carbon CFM: not available
  580. }
  581. function PMSessionPostScriptEnd( printSession: PMPrintSession ): OSStatus; external name '_PMSessionPostScriptEnd';
  582. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  583. {
  584. * PMSessionPostScriptHandle() *** DEPRECATED ***
  585. *
  586. * Discussion:
  587. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  588. *
  589. * For using EPS data together with other application drawing
  590. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  591. *
  592. * Availability:
  593. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  594. * CarbonLib: in CarbonLib 1.1 and later
  595. * Non-Carbon CFM: not available
  596. }
  597. function PMSessionPostScriptHandle( printSession: PMPrintSession; psHandle: Handle ): OSStatus; external name '_PMSessionPostScriptHandle';
  598. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  599. {
  600. * PMSessionPostScriptData() *** DEPRECATED ***
  601. *
  602. * Discussion:
  603. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  604. *
  605. * For using EPS data together with other application drawing
  606. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  607. *
  608. * Availability:
  609. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  610. * CarbonLib: in CarbonLib 1.1 and later
  611. * Non-Carbon CFM: not available
  612. }
  613. function PMSessionPostScriptData( printSession: PMPrintSession; psPtr: Ptr; len: Size ): OSStatus; external name '_PMSessionPostScriptData';
  614. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  615. {
  616. * PMSessionPostScriptFile() *** DEPRECATED ***
  617. *
  618. * Discussion:
  619. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  620. *
  621. * For using EPS data together with other application drawing
  622. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  623. *
  624. * Availability:
  625. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  626. * CarbonLib: in CarbonLib 1.1 and later
  627. * Non-Carbon CFM: not available
  628. }
  629. function PMSessionPostScriptFile( printSession: PMPrintSession; var psFile: FSSpec ): OSStatus; external name '_PMSessionPostScriptFile';
  630. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  631. {
  632. * PMSessionSetPSInjectionData() *** DEPRECATED ***
  633. *
  634. * Discussion:
  635. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  636. *
  637. * For using EPS data together with other application drawing
  638. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  639. *
  640. * Availability:
  641. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  642. * CarbonLib: in CarbonLib 1.1 and later
  643. * Non-Carbon CFM: not available
  644. }
  645. function PMSessionSetPSInjectionData( printSession: PMPrintSession; printSettings: PMPrintSettings; injectionDictArray: CFArrayRef ): OSStatus; external name '_PMSessionSetPSInjectionData';
  646. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  647. {
  648. * PMSessionGetDocumentFormatSupported() *** DEPRECATED ***
  649. *
  650. * Discussion:
  651. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  652. *
  653. * For using EPS data together with other application drawing
  654. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  655. *
  656. * Availability:
  657. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  658. * CarbonLib: in CarbonLib 1.1 and later
  659. * Non-Carbon CFM: not available
  660. }
  661. function PMSessionGetDocumentFormatSupported( printSession: PMPrintSession; var docFormats: CFArrayRef; limit: UInt32 ): OSStatus; external name '_PMSessionGetDocumentFormatSupported';
  662. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  663. {
  664. * PMSessionGetDocumentFormatGeneration() *** DEPRECATED ***
  665. *
  666. * Discussion:
  667. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  668. *
  669. * For using EPS data together with other application drawing
  670. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  671. *
  672. * Availability:
  673. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  674. * CarbonLib: in CarbonLib 1.1 and later
  675. * Non-Carbon CFM: not available
  676. }
  677. function PMSessionGetDocumentFormatGeneration( printSession: PMPrintSession; var docFormats: CFArrayRef ): OSStatus; external name '_PMSessionGetDocumentFormatGeneration';
  678. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  679. {
  680. * PMSessionSetDocumentFormatGeneration() *** DEPRECATED ***
  681. *
  682. * Discussion:
  683. * Carbon applications using CoreGraphics instead of QuickDraw for
  684. * all their drawing should use PMSessionBeginCGDocument or
  685. * PMSessionBeginCGDocumentNoDialog. For generating PostScript data
  686. * you should be using: PMPrinterPrintWithFile or
  687. * PMPrinterPrintWithProvider. For mixing EPS data with Quartz drawing
  688. * use PMCGImageCreateWithEPSDataProvider.
  689. *
  690. * Availability:
  691. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  692. * CarbonLib: in CarbonLib 1.1 and later
  693. * Non-Carbon CFM: not available
  694. }
  695. function PMSessionSetDocumentFormatGeneration( printSession: PMPrintSession; docFormat: CFStringRef; graphicsContextTypes: CFArrayRef; options: CFTypeRef ): OSStatus; external name '_PMSessionSetDocumentFormatGeneration';
  696. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  697. {
  698. * PMSessionIsDocumentFormatSupported() *** DEPRECATED ***
  699. *
  700. * Discussion:
  701. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  702. *
  703. * For using EPS data together with other application drawing
  704. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  705. *
  706. * Availability:
  707. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  708. * CarbonLib: in CarbonLib 1.1 and later
  709. * Non-Carbon CFM: not available
  710. }
  711. function PMSessionIsDocumentFormatSupported( printSession: PMPrintSession; docFormat: CFStringRef; var supported: Boolean ): OSStatus; external name '_PMSessionIsDocumentFormatSupported';
  712. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  713. {$elsec} {PM_USE_SESSION_APIS}
  714. {
  715. * PMSetIdleProc() *** DEPRECATED ***
  716. *
  717. * Availability:
  718. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  719. * CarbonLib: in CarbonLib 1.0 and later
  720. * Non-Carbon CFM: not available
  721. }
  722. function PMSetIdleProc( idleProc: PMIdleUPP ): OSStatus; external name '_PMSetIdleProc';
  723. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  724. { Print loop }
  725. {
  726. * PMBegin() *** DEPRECATED ***
  727. *
  728. * Discussion:
  729. * Use PMCreateSession instead.
  730. *
  731. * Availability:
  732. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  733. * CarbonLib: in CarbonLib 1.0 and later
  734. * Non-Carbon CFM: not available
  735. }
  736. function PMBegin: OSStatus; external name '_PMBegin';
  737. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  738. {
  739. * PMEnd() *** DEPRECATED ***
  740. *
  741. * Availability:
  742. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  743. * CarbonLib: in CarbonLib 1.0 and later
  744. * Non-Carbon CFM: not available
  745. }
  746. function PMEnd: OSStatus; external name '_PMEnd';
  747. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  748. {
  749. * PMGetGrafPtr() *** DEPRECATED ***
  750. *
  751. * Discussion:
  752. * Use PMSessionGetCGGraphicsContext instead.
  753. *
  754. * Availability:
  755. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  756. * CarbonLib: in CarbonLib 1.0 and later
  757. * Non-Carbon CFM: not available
  758. }
  759. function PMGetGrafPtr( printContext: PMPrintContext; var grafPort: GrafPtr ): OSStatus; external name '_PMGetGrafPtr';
  760. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  761. { PMPageFormat }
  762. {
  763. * PMNewPageFormat() *** DEPRECATED ***
  764. *
  765. * Discussion:
  766. * Use PMCreatePageFormat instead.
  767. *
  768. * Availability:
  769. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  770. * CarbonLib: in CarbonLib 1.0 and later
  771. * Non-Carbon CFM: not available
  772. }
  773. function PMNewPageFormat( var pageFormat: PMPageFormat ): OSStatus; external name '_PMNewPageFormat';
  774. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  775. {
  776. * PMDisposePageFormat() *** DEPRECATED ***
  777. *
  778. * Discussion:
  779. * Use PMRelease instead.
  780. *
  781. * Availability:
  782. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  783. * CarbonLib: in CarbonLib 1.0 and later
  784. * Non-Carbon CFM: not available
  785. }
  786. function PMDisposePageFormat( pageFormat: PMPageFormat ): OSStatus; external name '_PMDisposePageFormat';
  787. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  788. {
  789. * PMDefaultPageFormat() *** DEPRECATED ***
  790. *
  791. * Discussion:
  792. * Use PMSessionDefaultPageFormat instead.
  793. *
  794. * Availability:
  795. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  796. * CarbonLib: in CarbonLib 1.0 and later
  797. * Non-Carbon CFM: not available
  798. }
  799. function PMDefaultPageFormat( pageFormat: PMPageFormat ): OSStatus; external name '_PMDefaultPageFormat';
  800. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  801. {
  802. * PMValidatePageFormat() *** DEPRECATED ***
  803. *
  804. * Discussion:
  805. * Use PMSessionValidatePageFormat instead.
  806. *
  807. * Availability:
  808. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  809. * CarbonLib: in CarbonLib 1.0 and later
  810. * Non-Carbon CFM: not available
  811. }
  812. function PMValidatePageFormat( pageFormat: PMPageFormat; var result: Boolean ): OSStatus; external name '_PMValidatePageFormat';
  813. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  814. { PMPrintSettings }
  815. {
  816. * PMNewPrintSettings() *** DEPRECATED ***
  817. *
  818. * Discussion:
  819. * Use PMCreatePrintSettings instead.
  820. *
  821. * Availability:
  822. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  823. * CarbonLib: in CarbonLib 1.0 and later
  824. * Non-Carbon CFM: not available
  825. }
  826. function PMNewPrintSettings( var printSettings: PMPrintSettings ): OSStatus; external name '_PMNewPrintSettings';
  827. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  828. {
  829. * PMDisposePrintSettings() *** DEPRECATED ***
  830. *
  831. * Discussion:
  832. * Use PMRelease instead.
  833. *
  834. * Availability:
  835. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  836. * CarbonLib: in CarbonLib 1.0 and later
  837. * Non-Carbon CFM: not available
  838. }
  839. function PMDisposePrintSettings( printSettings: PMPrintSettings ): OSStatus; external name '_PMDisposePrintSettings';
  840. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  841. {
  842. * PMDefaultPrintSettings() *** DEPRECATED ***
  843. *
  844. * Discussion:
  845. * Use PMSessionDefaultPrintSettings instead.
  846. *
  847. * Availability:
  848. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  849. * CarbonLib: in CarbonLib 1.0 and later
  850. * Non-Carbon CFM: not available
  851. }
  852. function PMDefaultPrintSettings( printSettings: PMPrintSettings ): OSStatus; external name '_PMDefaultPrintSettings';
  853. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  854. {
  855. * PMValidatePrintSettings() *** DEPRECATED ***
  856. *
  857. * Discussion:
  858. * Use PMSessionValidatePrintSettings instead.
  859. *
  860. * Availability:
  861. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  862. * CarbonLib: in CarbonLib 1.0 and later
  863. * Non-Carbon CFM: not available
  864. }
  865. function PMValidatePrintSettings( printSettings: PMPrintSettings; result: BooleanPtr ): OSStatus; external name '_PMValidatePrintSettings';
  866. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  867. { Mac OS 9 Support }
  868. {
  869. * PMGeneral() *** DEPRECATED ***
  870. *
  871. * Availability:
  872. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  873. * CarbonLib: in CarbonLib 1.0 and later
  874. * Non-Carbon CFM: not available
  875. }
  876. function PMGeneral( pData: Ptr ): OSStatus; external name '_PMGeneral';
  877. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  878. {
  879. * PMConvertOldPrintRecord() *** DEPRECATED ***
  880. *
  881. * Availability:
  882. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  883. * CarbonLib: in CarbonLib 1.0 and later
  884. * Non-Carbon CFM: not available
  885. }
  886. function PMConvertOldPrintRecord( printRecordHandle: Handle; var printSettings: PMPrintSettings; var pageFormat: PMPageFormat ): OSStatus; external name '_PMConvertOldPrintRecord';
  887. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  888. {
  889. * PMMakeOldPrintRecord() *** DEPRECATED ***
  890. *
  891. * Availability:
  892. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  893. * CarbonLib: in CarbonLib 1.0 and later
  894. * Non-Carbon CFM: not available
  895. }
  896. function PMMakeOldPrintRecord( printSettings: PMPrintSettings; pageFormat: PMPageFormat; var printRecordHandle: Handle ): OSStatus; external name '_PMMakeOldPrintRecord';
  897. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  898. { Driver Information }
  899. {
  900. * PMIsPostScriptDriver() *** DEPRECATED ***
  901. *
  902. * Discussion:
  903. * Use PMPrinterIsPostScriptCapable or PMPrinterIsPostScriptPrinter instead.
  904. *
  905. * Availability:
  906. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  907. * CarbonLib: in CarbonLib 1.0 and later
  908. * Non-Carbon CFM: not available
  909. }
  910. function PMIsPostScriptDriver( var isPostScript: Boolean ): OSStatus; external name '_PMIsPostScriptDriver';
  911. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  912. {
  913. * PMGetLanguageInfo() *** DEPRECATED ***
  914. *
  915. * Discussion:
  916. * Use PMPrinterGetLanguageInfo instead.
  917. *
  918. * Availability:
  919. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  920. * CarbonLib: in CarbonLib 1.0 and later
  921. * Non-Carbon CFM: not available
  922. }
  923. function PMGetLanguageInfo( var info: PMLanguageInfo ): OSStatus; external name '_PMGetLanguageInfo';
  924. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  925. {
  926. * PMGetDriverCreator() *** DEPRECATED ***
  927. *
  928. * Discussion:
  929. * Use PMPrinterGetDriverCreator instead.
  930. *
  931. * Availability:
  932. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  933. * CarbonLib: in CarbonLib 1.0 and later
  934. * Non-Carbon CFM: not available
  935. }
  936. function PMGetDriverCreator( var creator: OSType ): OSStatus; external name '_PMGetDriverCreator';
  937. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  938. {
  939. * PMGetDriverReleaseInfo() *** DEPRECATED ***
  940. *
  941. * Discussion:
  942. * Use PMPrinterGetDriverReleaseInfo instead.
  943. *
  944. * Availability:
  945. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  946. * CarbonLib: in CarbonLib 1.0 and later
  947. * Non-Carbon CFM: not available
  948. }
  949. function PMGetDriverReleaseInfo( var release: VersRec ): OSStatus; external name '_PMGetDriverReleaseInfo';
  950. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  951. {
  952. * PMGetPrinterResolutionCount() *** DEPRECATED ***
  953. *
  954. * Discussion:
  955. * Use PMPrinterGetPrinterResolutionCount instead.
  956. *
  957. * Availability:
  958. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  959. * CarbonLib: in CarbonLib 1.0 and later
  960. * Non-Carbon CFM: not available
  961. }
  962. function PMGetPrinterResolutionCount( var count: UInt32 ): OSStatus; external name '_PMGetPrinterResolutionCount';
  963. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  964. {
  965. * PMGetPrinterResolution() *** DEPRECATED ***
  966. *
  967. * Discussion:
  968. * Use PMPrinterGetPrinterResolution instead.
  969. *
  970. * Availability:
  971. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  972. * CarbonLib: in CarbonLib 1.0 and later
  973. * Non-Carbon CFM: not available
  974. }
  975. function PMGetPrinterResolution( tag: PMTag; var res: PMResolution ): OSStatus; external name '_PMGetPrinterResolution';
  976. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  977. {
  978. * PMGetIndexedPrinterResolution() *** DEPRECATED ***
  979. *
  980. * Discussion:
  981. * Use PMPrinterGetIndexedPrinterResolution instead.
  982. *
  983. * Availability:
  984. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  985. * CarbonLib: in CarbonLib 1.0 and later
  986. * Non-Carbon CFM: not available
  987. }
  988. function PMGetIndexedPrinterResolution( index: UInt32; var res: PMResolution ): OSStatus; external name '_PMGetIndexedPrinterResolution';
  989. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  990. { ColorSync & PostScript Support }
  991. {
  992. * PMEnableColorSync() *** DEPRECATED ***
  993. *
  994. * Discussion:
  995. * Use Quartz drawing instead.
  996. *
  997. * Availability:
  998. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  999. * CarbonLib: in CarbonLib 1.0 and later
  1000. * Non-Carbon CFM: not available
  1001. }
  1002. function PMEnableColorSync: OSStatus; external name '_PMEnableColorSync';
  1003. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1004. {
  1005. * PMDisableColorSync() *** DEPRECATED ***
  1006. *
  1007. * Discussion:
  1008. * Use Quartz drawing instead.
  1009. *
  1010. * Availability:
  1011. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1012. * CarbonLib: in CarbonLib 1.0 and later
  1013. * Non-Carbon CFM: not available
  1014. }
  1015. function PMDisableColorSync: OSStatus; external name '_PMDisableColorSync';
  1016. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1017. {
  1018. * PMPostScriptBegin() *** DEPRECATED ***
  1019. *
  1020. * Discussion:
  1021. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  1022. *
  1023. * For using EPS data together with other application drawing
  1024. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  1025. *
  1026. * Availability:
  1027. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1028. * CarbonLib: in CarbonLib 1.0 and later
  1029. * Non-Carbon CFM: not available
  1030. }
  1031. function PMPostScriptBegin: OSStatus; external name '_PMPostScriptBegin';
  1032. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1033. {
  1034. * PMPostScriptEnd() *** DEPRECATED ***
  1035. *
  1036. * Discussion:
  1037. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  1038. *
  1039. * For using EPS data together with other application drawing
  1040. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  1041. *
  1042. * Availability:
  1043. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1044. * CarbonLib: in CarbonLib 1.0 and later
  1045. * Non-Carbon CFM: not available
  1046. }
  1047. function PMPostScriptEnd: OSStatus; external name '_PMPostScriptEnd';
  1048. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1049. {
  1050. * PMPostScriptHandle() *** DEPRECATED ***
  1051. *
  1052. * Discussion:
  1053. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  1054. *
  1055. * For using EPS data together with other application drawing
  1056. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  1057. *
  1058. * Availability:
  1059. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1060. * CarbonLib: in CarbonLib 1.0 and later
  1061. * Non-Carbon CFM: not available
  1062. }
  1063. function PMPostScriptHandle( psHandle: Handle ): OSStatus; external name '_PMPostScriptHandle';
  1064. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1065. {
  1066. * PMPostScriptData() *** DEPRECATED ***
  1067. *
  1068. * Discussion:
  1069. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  1070. *
  1071. * For using EPS data together with other application drawing
  1072. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  1073. *
  1074. * Availability:
  1075. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1076. * CarbonLib: in CarbonLib 1.0 and later
  1077. * Non-Carbon CFM: not available
  1078. }
  1079. function PMPostScriptData( psPtr: Ptr; len: Size ): OSStatus; external name '_PMPostScriptData';
  1080. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1081. {
  1082. * PMPostScriptFile() *** DEPRECATED ***
  1083. *
  1084. * Discussion:
  1085. * Use PMPrinterPrintWithFile or PMPrinterPrintWithProvider instead.
  1086. *
  1087. * For using EPS data together with other application drawing
  1088. * using Quartz, see PMCGImageCreateWithEPSDataProvider.
  1089. *
  1090. * Availability:
  1091. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1092. * CarbonLib: in CarbonLib 1.0 and later
  1093. * Non-Carbon CFM: not available
  1094. }
  1095. function PMPostScriptFile( var psFile: FSSpec ): OSStatus; external name '_PMPostScriptFile';
  1096. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1097. { Error }
  1098. {
  1099. * PMError() *** DEPRECATED ***
  1100. *
  1101. * Discussion:
  1102. * Use PMSessionError instead.
  1103. *
  1104. * Availability:
  1105. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1106. * CarbonLib: in CarbonLib 1.0 and later
  1107. * Non-Carbon CFM: not available
  1108. }
  1109. function PMError: OSStatus; external name '_PMError';
  1110. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1111. {
  1112. * PMSetError() *** DEPRECATED ***
  1113. *
  1114. * Discussion:
  1115. * Use PMSessionSetError instead.
  1116. *
  1117. * Availability:
  1118. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1119. * CarbonLib: in CarbonLib 1.0 and later
  1120. * Non-Carbon CFM: not available
  1121. }
  1122. function PMSetError( printError: OSStatus ): OSStatus; external name '_PMSetError';
  1123. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1124. {$endc} {PM_USE_SESSION_APIS}
  1125. {
  1126. * PMGetJobName() *** DEPRECATED ***
  1127. *
  1128. * Discussion:
  1129. * Use PMPrintSettingsGetJobName instead.
  1130. *
  1131. * Availability:
  1132. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1133. * CarbonLib: in CarbonLib 1.0 and later
  1134. * Non-Carbon CFM: not available
  1135. }
  1136. function PMGetJobName( printSettings: PMPrintSettings; name: StringPtr ): OSStatus; external name '_PMGetJobName';
  1137. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1138. {
  1139. * PMSetJobName() *** DEPRECATED ***
  1140. *
  1141. * Discussion:
  1142. * Use PMPrintSettingsSetJobName instead.
  1143. *
  1144. * Availability:
  1145. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1146. * CarbonLib: in CarbonLib 1.0 and later
  1147. * Non-Carbon CFM: not available
  1148. }
  1149. function PMSetJobName( printSettings: PMPrintSettings; const name: Str255 ): OSStatus; external name '_PMSetJobName';
  1150. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1151. {
  1152. * PMGetPhysicalPaperSize() *** DEPRECATED ***
  1153. *
  1154. * Discussion:
  1155. * Use PMGetUnadjustedPaperRect instead.
  1156. *
  1157. * Availability:
  1158. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1159. * CarbonLib: in CarbonLib 1.0 and later
  1160. * Non-Carbon CFM: not available
  1161. }
  1162. function PMGetPhysicalPaperSize( pageFormat: PMPageFormat; var paperSize: PMRect ): OSStatus; external name '_PMGetPhysicalPaperSize';
  1163. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1164. {
  1165. * PMSetAdjustedPageRect() *** DEPRECATED ***
  1166. *
  1167. * Discussion:
  1168. * To set a particular paper size and margins create a PMPaper first then call
  1169. * PMCreatePageFormatWithPMPaper.
  1170. *
  1171. * Availability:
  1172. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1173. * CarbonLib: in CarbonLib 1.1 and later
  1174. * Non-Carbon CFM: not available
  1175. }
  1176. function PMSetAdjustedPageRect( pageFormat: PMPageFormat; const (*var*) pageRect: PMRect ): OSStatus; external name '_PMSetAdjustedPageRect';
  1177. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1178. {
  1179. * PMSetPhysicalPaperSize() *** DEPRECATED ***
  1180. *
  1181. * Discussion:
  1182. * To set a particular paper size create a PMPaper first then call
  1183. * PMCreatePageFormatWithPMPaper.
  1184. *
  1185. * Availability:
  1186. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1187. * CarbonLib: in CarbonLib 1.0 and later
  1188. * Non-Carbon CFM: not available
  1189. }
  1190. function PMSetPhysicalPaperSize( pageFormat: PMPageFormat; const (*var*) paperSize: PMRect ): OSStatus; external name '_PMSetPhysicalPaperSize';
  1191. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1192. {
  1193. * PMSetUnadjustedPaperRect() *** DEPRECATED ***
  1194. *
  1195. * Discussion:
  1196. * To set a particular paper size create a PMPaper first then call
  1197. * PMCreatePageFormatWithPMPaper.
  1198. *
  1199. * Availability:
  1200. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1201. * CarbonLib: in CarbonLib 1.1 and later
  1202. * Non-Carbon CFM: not available
  1203. }
  1204. function PMSetUnadjustedPaperRect( pageFormat: PMPageFormat; const (*var*) paperRect: PMRect ): OSStatus; external name '_PMSetUnadjustedPaperRect';
  1205. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1206. {
  1207. * PMGetPhysicalPageSize() *** DEPRECATED ***
  1208. *
  1209. * Discussion:
  1210. * Use PMGetUnadjustedPageRect instead.
  1211. *
  1212. * Availability:
  1213. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1214. * CarbonLib: in CarbonLib 1.0 and later
  1215. * Non-Carbon CFM: not available
  1216. }
  1217. function PMGetPhysicalPageSize( pageFormat: PMPageFormat; var pageSize: PMRect ): OSStatus; external name '_PMGetPhysicalPageSize';
  1218. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1219. {
  1220. * PMGetColorMode() *** DEPRECATED ***
  1221. *
  1222. * Availability:
  1223. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1224. * CarbonLib: in CarbonLib 1.1 and later
  1225. * Non-Carbon CFM: not available
  1226. }
  1227. function PMGetColorMode( printSettings: PMPrintSettings; var colorMode: PMColorMode ): OSStatus; external name '_PMGetColorMode';
  1228. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1229. {
  1230. * PMSetColorMode() *** DEPRECATED ***
  1231. *
  1232. * Availability:
  1233. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1234. * CarbonLib: in CarbonLib 1.1 and later
  1235. * Non-Carbon CFM: not available
  1236. }
  1237. function PMSetColorMode( printSettings: PMPrintSettings; colorMode: PMColorMode ): OSStatus; external name '_PMSetColorMode';
  1238. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1239. {
  1240. * PMGetDestination() *** DEPRECATED ***
  1241. *
  1242. * Discussion:
  1243. * Use PMSessionGetDestinationType, PMSessionCopyDestinationFormat, and/or PMSessionCopyDestinationLocation instead.
  1244. *
  1245. * Availability:
  1246. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1247. * CarbonLib: in CarbonLib 1.1 and later
  1248. * Non-Carbon CFM: not available
  1249. }
  1250. function PMGetDestination( printSettings: PMPrintSettings; var destType: PMDestinationType; var fileURL: CFURLRef ): OSStatus; external name '_PMGetDestination';
  1251. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1252. {
  1253. * PMPrinterGetDescriptionURL() *** DEPRECATED ***
  1254. *
  1255. * Discussion:
  1256. * Use PMPrinterCopyDescriptionURL instead. Please be aware that
  1257. * PMPrinterGetDescriptionURL will return a copy of the URL which
  1258. * you'll need to release.
  1259. *
  1260. * Availability:
  1261. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1262. * CarbonLib: in CarbonLib 1.1 and later
  1263. * Non-Carbon CFM: not available
  1264. }
  1265. function PMPrinterGetDescriptionURL( printer: PMPrinter; descriptionType: CFStringRef; var fileURL: CFURLRef ): OSStatus; external name '_PMPrinterGetDescriptionURL';
  1266. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1267. {
  1268. * PMPrinterGetDeviceURI() *** DEPRECATED ***
  1269. *
  1270. * Discussion:
  1271. * Use PMPrinterCopyDeviceURI instead. Please be aware that
  1272. * PMPrinterGetDeviceURI will return a copy of the URI which you'll
  1273. * need to release.
  1274. *
  1275. * Availability:
  1276. * Mac OS X: in version 10.2 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.4
  1277. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  1278. * Non-Carbon CFM: not available
  1279. }
  1280. function PMPrinterGetDeviceURI( printer: PMPrinter; var deviceURI: CFURLRef ): OSStatus; external name '_PMPrinterGetDeviceURI';
  1281. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  1282. {
  1283. * PMGetResolution() *** DEPRECATED ***
  1284. *
  1285. * Summary:
  1286. * Obtains the current application drawing resolution.
  1287. *
  1288. * Discussion:
  1289. *
  1290. * Use Quartz drawing and call CGContextScaleCTM instead.
  1291. *
  1292. * This is the drawing resolution of an app. This should not be
  1293. * confused with the resolution of the printer. You can call
  1294. * PMGetPrinterResolution to see what resolutions are avaliable for
  1295. * the current printer.
  1296. *
  1297. * Availability:
  1298. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1299. * CarbonLib: in CarbonLib 1.0 and later
  1300. * Non-Carbon CFM: not available
  1301. }
  1302. function PMGetResolution( pageFormat: PMPageFormat; var res: PMResolution ): OSStatus; external name '_PMGetResolution';
  1303. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1304. {
  1305. * PMSetResolution() *** DEPRECATED ***
  1306. *
  1307. * Discussion:
  1308. * Use Quartz drawing and call CGContextScaleCTM instead.
  1309. *
  1310. * This sets the drawing resolution of an app. This should not be
  1311. * confused with the resolution of the printer.
  1312. *
  1313. * Availability:
  1314. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1315. * CarbonLib: in CarbonLib 1.0 and later
  1316. * Non-Carbon CFM: not available
  1317. }
  1318. function PMSetResolution( pageFormat: PMPageFormat; const (*var*) res: PMResolution ): OSStatus; external name '_PMSetResolution';
  1319. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1320. {
  1321. * PMFlattenPageFormat() *** DEPRECATED ***
  1322. *
  1323. * Summary:
  1324. * Use PMPageFormatCreateDataRepresentation instead.
  1325. *
  1326. * Flattens a PMPageFormat object for storage in a user document.
  1327. *
  1328. * Discussion:
  1329. * Flattening a page format should only be necessary if you intend
  1330. * to preserve the object settings along with a document. A page
  1331. * format will persist outside of a
  1332. * PMSessionBeginDocxxx/PMSessionEndDocxxx block. This will allow
  1333. * you to use any accessors on the object without the need to
  1334. * flatten and unflatten. Keep in mind accessors make no assumption
  1335. * on the validity of the value you set. This can only be done thru
  1336. * PMSessionValidatePageFormat in a
  1337. * PMSessionBeginDocxxx/PMSessionEndDocxxx block with a valid
  1338. * session.
  1339. *
  1340. * Parameters:
  1341. *
  1342. * pageFormat:
  1343. * A page format object.
  1344. *
  1345. * flatFormat:
  1346. * On return, a handle to a flattened PMPageFormat object. The
  1347. * handle is allocated by the function. You are responsible for
  1348. * disposing of the handle.
  1349. *
  1350. * Availability:
  1351. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1352. * CarbonLib: in CarbonLib 1.0 and later
  1353. * Non-Carbon CFM: not available
  1354. }
  1355. function PMFlattenPageFormat( pageFormat: PMPageFormat; var flatFormat: Handle ): OSStatus; external name '_PMFlattenPageFormat';
  1356. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1357. {
  1358. * PMUnflattenPageFormat() *** DEPRECATED ***
  1359. *
  1360. * Summary:
  1361. * Use PMPageFormatCreateWithDataRepresentation instead.
  1362. *
  1363. * Availability:
  1364. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1365. * CarbonLib: in CarbonLib 1.0 and later
  1366. * Non-Carbon CFM: not available
  1367. }
  1368. function PMUnflattenPageFormat( flatFormat: Handle; var pageFormat: PMPageFormat ): OSStatus; external name '_PMUnflattenPageFormat';
  1369. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1370. {
  1371. * PMFlattenPrintSettings() *** DEPRECATED ***
  1372. *
  1373. * Summary:
  1374. * Use PMPrintSettingsCreateDataRepresentation instead.
  1375. *
  1376. * Flattens a PMPrintSettings object for storage in a user document.
  1377. *
  1378. * Discussion:
  1379. * Flattening a print settings should only be necessary if you
  1380. * intend to preserve the object settings along with a document. A
  1381. * print settings will persist outside of a
  1382. * PMSessionBeginDocxxx/PMSessionEndDocxxx block. This allows you to
  1383. * use any accessors on the object without the need to flatten and
  1384. * unflatten. Keep in mind the accessors make no assumption on the
  1385. * validity of the value. This can only be done thru
  1386. * PMSessionValidatePrintSettings in a
  1387. * PMSessionBeginDocxxx/PMSessionEndDocxxx block with a valid
  1388. * session.
  1389. *
  1390. * Parameters:
  1391. *
  1392. * printSettings:
  1393. * A print settings object.
  1394. *
  1395. * flatSettings:
  1396. * On return, a handle to a flattened PMPrintSettings object. The
  1397. * handle is allocated by the function. You are responsible for
  1398. * disposing of the handle.
  1399. *
  1400. * Availability:
  1401. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1402. * CarbonLib: in CarbonLib 1.0 and later
  1403. * Non-Carbon CFM: not available
  1404. }
  1405. function PMFlattenPrintSettings( printSettings: PMPrintSettings; var flatSettings: Handle ): OSStatus; external name '_PMFlattenPrintSettings';
  1406. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1407. {
  1408. * PMUnflattenPrintSettings() *** DEPRECATED ***
  1409. *
  1410. * Summary:
  1411. * Use PMPrintSettingsCreateWithDataRepresentation instead.
  1412. *
  1413. * Availability:
  1414. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1415. * CarbonLib: in CarbonLib 1.0 and later
  1416. * Non-Carbon CFM: not available
  1417. }
  1418. function PMUnflattenPrintSettings( flatSettings: Handle; var printSettings: PMPrintSettings ): OSStatus; external name '_PMUnflattenPrintSettings';
  1419. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1420. {
  1421. * PMGetJobNameCFString() *** DEPRECATED ***
  1422. *
  1423. * Discussion:
  1424. * Use PMPrintSettingsGetJobName instead.
  1425. *
  1426. * Please be aware that PMGetJobNameCFString will return a copy of
  1427. * the job name which you'll need to release.
  1428. *
  1429. * Availability:
  1430. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1431. * CarbonLib: in CarbonLib 1.1 and later
  1432. * Non-Carbon CFM: not available
  1433. }
  1434. function PMGetJobNameCFString( printSettings: PMPrintSettings; var name: CFStringRef ): OSStatus; external name '_PMGetJobNameCFString';
  1435. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1436. {
  1437. * PMSetJobNameCFString() *** DEPRECATED ***
  1438. *
  1439. * Discussion:
  1440. * Use PMPrintSettingsSetJobName instead.
  1441. *
  1442. * Availability:
  1443. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1444. * CarbonLib: in CarbonLib 1.1 and later
  1445. * Non-Carbon CFM: not available
  1446. }
  1447. function PMSetJobNameCFString( printSettings: PMPrintSettings; name: CFStringRef ): OSStatus; external name '_PMSetJobNameCFString';
  1448. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1449. {
  1450. * PMPrinterGetPrinterResolution() *** DEPRECATED ***
  1451. *
  1452. * Discussion:
  1453. * Use PMPrinterGetPrinterResolutionCount and PMPrinterGetIndexedPrinterResolution to examine the available printer resolutions.
  1454. *
  1455. * Availability:
  1456. * Mac OS X: in version 10.0 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1457. * CarbonLib: in CarbonLib 1.1 and later
  1458. * Non-Carbon CFM: not available
  1459. }
  1460. function PMPrinterGetPrinterResolution( printer: PMPrinter; tag: PMTag; var res: PMResolution ): OSStatus; external name '_PMPrinterGetPrinterResolution';
  1461. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1462. {
  1463. * PMPaperCreate() *** DEPRECATED ***
  1464. *
  1465. * Discussion:
  1466. * Use PMPrinterGetPaperList to list the PMPaper instances available for a given printer or use PMPaperCreateCustom
  1467. * to create a PMPaper that represents a custom paper instance.
  1468. *
  1469. * Availability:
  1470. * Mac OS X: in version 10.3 and later in ApplicationServices.framework [32-bit only] but deprecated in 10.5
  1471. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
  1472. * Non-Carbon CFM: not available
  1473. }
  1474. function PMPaperCreate( printer: PMPrinter; id: CFStringRef; name: CFStringRef; width: Float64; height: Float64; const (*var*) margins: PMPaperMargins; var paperP: PMPaper ): OSStatus; external name '_PMPaperCreate';
  1475. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  1476. {$endc} {not TARGET_CPU_64}
  1477. {$endc} {TARGET_OS_MAC}
  1478. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  1479. end.
  1480. {$endc} {not MACOSALLINCLUDE}