PMApplicationDeprecated.pas 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. {
  2. File: Print/PMApplicationDeprecated.h
  3. Contains: Deprecated Carbon Printing Manager Interfaces.
  4. Copyright (c) 1998-2006, 2008, 2011 Apple Inc. All Rights Reserved.
  5. Bugs?: For bug reports, consult the following page on
  6. the World Wide Web:
  7. http://bugs.freepascal.org
  8. }
  9. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2009 }
  10. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2012 }
  11. {
  12. Modified for use with Free Pascal
  13. Version 308
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  17. {$mode macpas}
  18. {$modeswitch cblocks}
  19. {$packenum 1}
  20. {$macro on}
  21. {$inline on}
  22. {$calling mwpascal}
  23. unit PMApplicationDeprecated;
  24. interface
  25. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  26. {$setc GAP_INTERFACES_VERSION := $0308}
  27. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  28. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  29. {$endc}
  30. {$ifc defined CPUPOWERPC and defined CPUI386}
  31. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  32. {$endc}
  33. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  34. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  35. {$endc}
  36. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  37. {$setc __ppc__ := 1}
  38. {$elsec}
  39. {$setc __ppc__ := 0}
  40. {$endc}
  41. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  42. {$setc __ppc64__ := 1}
  43. {$elsec}
  44. {$setc __ppc64__ := 0}
  45. {$endc}
  46. {$ifc not defined __i386__ and defined CPUI386}
  47. {$setc __i386__ := 1}
  48. {$elsec}
  49. {$setc __i386__ := 0}
  50. {$endc}
  51. {$ifc not defined __x86_64__ and defined CPUX86_64}
  52. {$setc __x86_64__ := 1}
  53. {$elsec}
  54. {$setc __x86_64__ := 0}
  55. {$endc}
  56. {$ifc not defined __arm__ and defined CPUARM}
  57. {$setc __arm__ := 1}
  58. {$elsec}
  59. {$setc __arm__ := 0}
  60. {$endc}
  61. {$ifc not defined __arm64__ and defined CPUAARCH64}
  62. {$setc __arm64__ := 1}
  63. {$elsec}
  64. {$setc __arm64__ := 0}
  65. {$endc}
  66. {$ifc defined cpu64}
  67. {$setc __LP64__ := 1}
  68. {$elsec}
  69. {$setc __LP64__ := 0}
  70. {$endc}
  71. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  72. {$error Conflicting definitions for __ppc__ and __i386__}
  73. {$endc}
  74. {$ifc defined __ppc__ and __ppc__}
  75. {$setc TARGET_CPU_PPC := TRUE}
  76. {$setc TARGET_CPU_PPC64 := FALSE}
  77. {$setc TARGET_CPU_X86 := FALSE}
  78. {$setc TARGET_CPU_X86_64 := FALSE}
  79. {$setc TARGET_CPU_ARM := FALSE}
  80. {$setc TARGET_CPU_ARM64 := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_IPHONE := FALSE}
  83. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  84. {$setc TARGET_OS_EMBEDDED := FALSE}
  85. {$elifc defined __ppc64__ and __ppc64__}
  86. {$setc TARGET_CPU_PPC := FALSE}
  87. {$setc TARGET_CPU_PPC64 := TRUE}
  88. {$setc TARGET_CPU_X86 := FALSE}
  89. {$setc TARGET_CPU_X86_64 := FALSE}
  90. {$setc TARGET_CPU_ARM := FALSE}
  91. {$setc TARGET_CPU_ARM64 := FALSE}
  92. {$setc TARGET_OS_MAC := TRUE}
  93. {$setc TARGET_OS_IPHONE := FALSE}
  94. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  95. {$setc TARGET_OS_EMBEDDED := FALSE}
  96. {$elifc defined __i386__ and __i386__}
  97. {$setc TARGET_CPU_PPC := FALSE}
  98. {$setc TARGET_CPU_PPC64 := FALSE}
  99. {$setc TARGET_CPU_X86 := TRUE}
  100. {$setc TARGET_CPU_X86_64 := FALSE}
  101. {$setc TARGET_CPU_ARM := FALSE}
  102. {$setc TARGET_CPU_ARM64 := FALSE}
  103. {$ifc defined iphonesim}
  104. {$setc TARGET_OS_MAC := FALSE}
  105. {$setc TARGET_OS_IPHONE := TRUE}
  106. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  107. {$elsec}
  108. {$setc TARGET_OS_MAC := TRUE}
  109. {$setc TARGET_OS_IPHONE := FALSE}
  110. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  111. {$endc}
  112. {$setc TARGET_OS_EMBEDDED := FALSE}
  113. {$elifc defined __x86_64__ and __x86_64__}
  114. {$setc TARGET_CPU_PPC := FALSE}
  115. {$setc TARGET_CPU_PPC64 := FALSE}
  116. {$setc TARGET_CPU_X86 := FALSE}
  117. {$setc TARGET_CPU_X86_64 := TRUE}
  118. {$setc TARGET_CPU_ARM := FALSE}
  119. {$setc TARGET_CPU_ARM64 := FALSE}
  120. {$ifc defined iphonesim}
  121. {$setc TARGET_OS_MAC := FALSE}
  122. {$setc TARGET_OS_IPHONE := TRUE}
  123. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  124. {$elsec}
  125. {$setc TARGET_OS_MAC := TRUE}
  126. {$setc TARGET_OS_IPHONE := FALSE}
  127. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  128. {$endc}
  129. {$setc TARGET_OS_EMBEDDED := FALSE}
  130. {$elifc defined __arm__ and __arm__}
  131. {$setc TARGET_CPU_PPC := FALSE}
  132. {$setc TARGET_CPU_PPC64 := FALSE}
  133. {$setc TARGET_CPU_X86 := FALSE}
  134. {$setc TARGET_CPU_X86_64 := FALSE}
  135. {$setc TARGET_CPU_ARM := TRUE}
  136. {$setc TARGET_CPU_ARM64 := FALSE}
  137. {$setc TARGET_OS_MAC := FALSE}
  138. {$setc TARGET_OS_IPHONE := TRUE}
  139. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  140. {$setc TARGET_OS_EMBEDDED := TRUE}
  141. {$elifc defined __arm64__ and __arm64__}
  142. {$setc TARGET_CPU_PPC := FALSE}
  143. {$setc TARGET_CPU_PPC64 := FALSE}
  144. {$setc TARGET_CPU_X86 := FALSE}
  145. {$setc TARGET_CPU_X86_64 := FALSE}
  146. {$setc TARGET_CPU_ARM := FALSE}
  147. {$setc TARGET_CPU_ARM64 := TRUE}
  148. {$ifc defined ios}
  149. {$setc TARGET_OS_MAC := FALSE}
  150. {$setc TARGET_OS_IPHONE := TRUE}
  151. {$setc TARGET_OS_EMBEDDED := TRUE}
  152. {$elsec}
  153. {$setc TARGET_OS_MAC := TRUE}
  154. {$setc TARGET_OS_IPHONE := FALSE}
  155. {$setc TARGET_OS_EMBEDDED := FALSE}
  156. {$endc}
  157. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  158. {$elsec}
  159. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
  160. {$endc}
  161. {$ifc defined __LP64__ and __LP64__ }
  162. {$setc TARGET_CPU_64 := TRUE}
  163. {$elsec}
  164. {$setc TARGET_CPU_64 := FALSE}
  165. {$endc}
  166. {$ifc defined FPC_BIG_ENDIAN}
  167. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  168. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  169. {$elifc defined FPC_LITTLE_ENDIAN}
  170. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  171. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  172. {$elsec}
  173. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  174. {$endc}
  175. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  176. {$setc CALL_NOT_IN_CARBON := FALSE}
  177. {$setc OLDROUTINENAMES := FALSE}
  178. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  179. {$setc OPAQUE_UPP_TYPES := TRUE}
  180. {$setc OTCARBONAPPLICATION := TRUE}
  181. {$setc OTKERNEL := FALSE}
  182. {$setc PM_USE_SESSION_APIS := TRUE}
  183. {$setc TARGET_API_MAC_CARBON := TRUE}
  184. {$setc TARGET_API_MAC_OS8 := FALSE}
  185. {$setc TARGET_API_MAC_OSX := TRUE}
  186. {$setc TARGET_CARBON := TRUE}
  187. {$setc TARGET_CPU_68K := FALSE}
  188. {$setc TARGET_CPU_MIPS := FALSE}
  189. {$setc TARGET_CPU_SPARC := FALSE}
  190. {$setc TARGET_OS_UNIX := FALSE}
  191. {$setc TARGET_OS_WIN32 := FALSE}
  192. {$setc TARGET_RT_MAC_68881 := FALSE}
  193. {$setc TARGET_RT_MAC_CFM := FALSE}
  194. {$setc TARGET_RT_MAC_MACHO := TRUE}
  195. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  196. {$setc TYPE_BOOL := FALSE}
  197. {$setc TYPE_EXTENDED := FALSE}
  198. {$setc TYPE_LONGLONG := TRUE}
  199. uses MacTypes,Dialogs,PMDefinitions,PMDefinitionsDeprecated;
  200. {$endc} {not MACOSALLINCLUDE}
  201. {$ifc TARGET_OS_MAC}
  202. {$ALIGN POWER}
  203. {$ifc not TARGET_CPU_64}
  204. {****************************************}
  205. { The following callbacks are deprecated }
  206. {****************************************}
  207. type
  208. PMItemProcPtr = procedure( theDialog: DialogRef; item: SInt16 );
  209. PMPrintDialogInitProcPtr = procedure( printSettings: PMPrintSettings; var theDialog: PMDialog );
  210. PMPageSetupDialogInitProcPtr = procedure( pageFormat: PMPageFormat; var theDialog: PMDialog );
  211. PMItemUPP = PMItemProcPtr;
  212. PMPrintDialogInitUPP = PMPrintDialogInitProcPtr;
  213. PMPageSetupDialogInitUPP = PMPageSetupDialogInitProcPtr;
  214. {
  215. * NewPMItemUPP()
  216. *
  217. * Availability:
  218. * Mac OS X: in version 10.0 and later in Carbon.framework
  219. * CarbonLib: in CarbonLib 1.0 and later
  220. * Non-Carbon CFM: not available
  221. }
  222. function NewPMItemUPP( userRoutine: PMItemProcPtr ): PMItemUPP; external name '_NewPMItemUPP';
  223. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  224. {
  225. * NewPMPrintDialogInitUPP()
  226. *
  227. * Availability:
  228. * Mac OS X: in version 10.0 and later in Carbon.framework
  229. * CarbonLib: in CarbonLib 1.0 and later
  230. * Non-Carbon CFM: not available
  231. }
  232. function NewPMPrintDialogInitUPP( userRoutine: PMPrintDialogInitProcPtr ): PMPrintDialogInitUPP; external name '_NewPMPrintDialogInitUPP';
  233. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  234. {
  235. * NewPMPageSetupDialogInitUPP()
  236. *
  237. * Availability:
  238. * Mac OS X: in version 10.0 and later in Carbon.framework
  239. * CarbonLib: in CarbonLib 1.0 and later
  240. * Non-Carbon CFM: not available
  241. }
  242. function NewPMPageSetupDialogInitUPP( userRoutine: PMPageSetupDialogInitProcPtr ): PMPageSetupDialogInitUPP; external name '_NewPMPageSetupDialogInitUPP';
  243. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  244. {
  245. * DisposePMItemUPP()
  246. *
  247. * Availability:
  248. * Mac OS X: in version 10.0 and later in Carbon.framework
  249. * CarbonLib: in CarbonLib 1.0 and later
  250. * Non-Carbon CFM: not available
  251. }
  252. procedure DisposePMItemUPP( userUPP: PMItemUPP ); external name '_DisposePMItemUPP';
  253. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  254. {
  255. * DisposePMPrintDialogInitUPP()
  256. *
  257. * Availability:
  258. * Mac OS X: in version 10.0 and later in Carbon.framework
  259. * CarbonLib: in CarbonLib 1.0 and later
  260. * Non-Carbon CFM: not available
  261. }
  262. procedure DisposePMPrintDialogInitUPP( userUPP: PMPrintDialogInitUPP ); external name '_DisposePMPrintDialogInitUPP';
  263. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  264. {
  265. * DisposePMPageSetupDialogInitUPP()
  266. *
  267. * Availability:
  268. * Mac OS X: in version 10.0 and later in Carbon.framework
  269. * CarbonLib: in CarbonLib 1.0 and later
  270. * Non-Carbon CFM: not available
  271. }
  272. procedure DisposePMPageSetupDialogInitUPP( userUPP: PMPageSetupDialogInitUPP ); external name '_DisposePMPageSetupDialogInitUPP';
  273. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  274. {
  275. * InvokePMItemUPP()
  276. *
  277. * Availability:
  278. * Mac OS X: in version 10.0 and later in Carbon.framework
  279. * CarbonLib: in CarbonLib 1.0 and later
  280. * Non-Carbon CFM: not available
  281. }
  282. procedure InvokePMItemUPP( theDialog: DialogRef; item: SInt16; userUPP: PMItemUPP ); external name '_InvokePMItemUPP';
  283. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  284. {
  285. * InvokePMPrintDialogInitUPP()
  286. *
  287. * Availability:
  288. * Mac OS X: in version 10.0 and later in Carbon.framework
  289. * CarbonLib: in CarbonLib 1.0 and later
  290. * Non-Carbon CFM: not available
  291. }
  292. procedure InvokePMPrintDialogInitUPP( printSettings: PMPrintSettings; var theDialog: PMDialog; userUPP: PMPrintDialogInitUPP ); external name '_InvokePMPrintDialogInitUPP';
  293. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  294. {
  295. * InvokePMPageSetupDialogInitUPP()
  296. *
  297. * Availability:
  298. * Mac OS X: in version 10.0 and later in Carbon.framework
  299. * CarbonLib: in CarbonLib 1.0 and later
  300. * Non-Carbon CFM: not available
  301. }
  302. procedure InvokePMPageSetupDialogInitUPP( pageFormat: PMPageFormat; var theDialog: PMDialog; userUPP: PMPageSetupDialogInitUPP ); external name '_InvokePMPageSetupDialogInitUPP';
  303. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  304. {$ifc PM_USE_SESSION_APIS}
  305. {
  306. * PMSessionBeginDocument() *** DEPRECATED ***
  307. *
  308. * Discussion:
  309. * Instead use PMSessionBeginCGDocument.
  310. *
  311. * Availability:
  312. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.5
  313. * CarbonLib: in CarbonLib 1.1 and later
  314. * Non-Carbon CFM: not available
  315. }
  316. function PMSessionBeginDocument( printSession: PMPrintSession; printSettings: PMPrintSettings; pageFormat: PMPageFormat ): OSStatus; external name '_PMSessionBeginDocument';
  317. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  318. {
  319. * PMSessionPageSetupDialogInit() *** DEPRECATED ***
  320. *
  321. * Discussion:
  322. * You should create a PDE for your application instead of relying
  323. * on this function.
  324. *
  325. * Availability:
  326. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  327. * CarbonLib: in CarbonLib 1.1 and later
  328. * Non-Carbon CFM: not available
  329. }
  330. function PMSessionPageSetupDialogInit( printSession: PMPrintSession; pageFormat: PMPageFormat; var newDialog: PMDialog ): OSStatus; external name '_PMSessionPageSetupDialogInit';
  331. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  332. {
  333. * PMSessionPrintDialogInit() *** DEPRECATED ***
  334. *
  335. * Discussion:
  336. * You should create a PDE for your application instead of relying
  337. * on this function.
  338. *
  339. * Availability:
  340. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  341. * CarbonLib: in CarbonLib 1.1 and later
  342. * Non-Carbon CFM: not available
  343. }
  344. function PMSessionPrintDialogInit( printSession: PMPrintSession; printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var newDialog: PMDialog ): OSStatus; external name '_PMSessionPrintDialogInit';
  345. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  346. {
  347. * PMSessionPrintDialogMain() *** DEPRECATED ***
  348. *
  349. * Discussion:
  350. * You should create a PDE for your application instead of relying
  351. * on this function.
  352. *
  353. * Availability:
  354. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  355. * CarbonLib: in CarbonLib 1.1 and later
  356. * Non-Carbon CFM: not available
  357. }
  358. function PMSessionPrintDialogMain( printSession: PMPrintSession; printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: Boolean; myInitProc: PMPrintDialogInitUPP ): OSStatus; external name '_PMSessionPrintDialogMain';
  359. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  360. {
  361. * PMSessionPageSetupDialogMain() *** DEPRECATED ***
  362. *
  363. * Discussion:
  364. * You should create a PDE for your application instead of relying
  365. * on this function.
  366. *
  367. * Availability:
  368. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  369. * CarbonLib: in CarbonLib 1.1 and later
  370. * Non-Carbon CFM: not available
  371. }
  372. function PMSessionPageSetupDialogMain( printSession: PMPrintSession; pageFormat: PMPageFormat; var accepted: Boolean; myInitProc: PMPageSetupDialogInitUPP ): OSStatus; external name '_PMSessionPageSetupDialogMain';
  373. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  374. {$elsec} {PM_USE_SESSION_APIS}
  375. {
  376. * PMBeginDocument() *** DEPRECATED ***
  377. *
  378. * Discussion:
  379. * Use PMSessionBeginDocument instead.
  380. *
  381. * Availability:
  382. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  383. * CarbonLib: in CarbonLib 1.0 and later
  384. * Non-Carbon CFM: not available
  385. }
  386. function PMBeginDocument( printSettings: PMPrintSettings; pageFormat: PMPageFormat; var printContext: PMPrintContext ): OSStatus; external name '_PMBeginDocument';
  387. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  388. {
  389. * PMEndDocument() *** DEPRECATED ***
  390. *
  391. * Discussion:
  392. * Use PMSessionEndDocument instead.
  393. *
  394. * Availability:
  395. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  396. * CarbonLib: in CarbonLib 1.0 and later
  397. * Non-Carbon CFM: not available
  398. }
  399. function PMEndDocument( printContext: PMPrintContext ): OSStatus; external name '_PMEndDocument';
  400. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  401. {
  402. * PMBeginPage() *** DEPRECATED ***
  403. *
  404. * Discussion:
  405. * Use PMSessionBeginPage instead.
  406. *
  407. * Availability:
  408. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  409. * CarbonLib: in CarbonLib 1.0 and later
  410. * Non-Carbon CFM: not available
  411. }
  412. function PMBeginPage( printContext: PMPrintContext; const (*var*) pageFrame: PMRect ): OSStatus; external name '_PMBeginPage';
  413. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  414. {
  415. * PMEndPage() *** DEPRECATED ***
  416. *
  417. * Discussion:
  418. * Use PMSessionEndPage instead.
  419. *
  420. * Availability:
  421. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  422. * CarbonLib: in CarbonLib 1.0 and later
  423. * Non-Carbon CFM: not available
  424. }
  425. function PMEndPage( printContext: PMPrintContext ): OSStatus; external name '_PMEndPage';
  426. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  427. {
  428. * PMPageSetupDialog() *** DEPRECATED ***
  429. *
  430. * Discussion:
  431. * Use PMSessionPageSetupDialog instead.
  432. *
  433. * Availability:
  434. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  435. * CarbonLib: in CarbonLib 1.0 and later
  436. * Non-Carbon CFM: not available
  437. }
  438. function PMPageSetupDialog( pageFormat: PMPageFormat; var accepted: Boolean ): OSStatus; external name '_PMPageSetupDialog';
  439. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  440. {
  441. * PMPrintDialog() *** DEPRECATED ***
  442. *
  443. * Discussion:
  444. * Use PMSessionPrintDialog instead.
  445. *
  446. * Availability:
  447. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  448. * CarbonLib: in CarbonLib 1.0 and later
  449. * Non-Carbon CFM: not available
  450. }
  451. function PMPrintDialog( printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: Boolean ): OSStatus; external name '_PMPrintDialog';
  452. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  453. {
  454. * PMPageSetupDialogInit() *** DEPRECATED ***
  455. *
  456. * Discussion:
  457. * You should create a PDE for your application instead of relying
  458. * on this function.
  459. *
  460. * Availability:
  461. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  462. * CarbonLib: in CarbonLib 1.0 and later
  463. * Non-Carbon CFM: not available
  464. }
  465. function PMPageSetupDialogInit( pageFormat: PMPageFormat; var newDialog: PMDialog ): OSStatus; external name '_PMPageSetupDialogInit';
  466. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  467. {
  468. * PMPrintDialogInit() *** DEPRECATED ***
  469. *
  470. * Discussion:
  471. * You should create a PDE for your application instead of relying
  472. * on this function.
  473. *
  474. * Availability:
  475. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  476. * CarbonLib: in CarbonLib 1.0 and later
  477. * Non-Carbon CFM: not available
  478. }
  479. function PMPrintDialogInit( printSettings: PMPrintSettings; var newDialog: PMDialog ): OSStatus; external name '_PMPrintDialogInit';
  480. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  481. {
  482. * PMPrintDialogInitWithPageFormat() *** DEPRECATED ***
  483. *
  484. * Discussion:
  485. * You should create a PDE for your application instead of relying
  486. * on this function.
  487. *
  488. * Availability:
  489. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  490. * CarbonLib: in CarbonLib 1.1 and later
  491. * Non-Carbon CFM: not available
  492. }
  493. function PMPrintDialogInitWithPageFormat( printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var newDialog: PMDialog ): OSStatus; external name '_PMPrintDialogInitWithPageFormat';
  494. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  495. {
  496. * PMPrintDialogMain() *** DEPRECATED ***
  497. *
  498. * Discussion:
  499. * You should create a PDE for your application instead of relying
  500. * on this function.
  501. *
  502. * Availability:
  503. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  504. * CarbonLib: in CarbonLib 1.0 and later
  505. * Non-Carbon CFM: not available
  506. }
  507. function PMPrintDialogMain( printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: Boolean; myInitProc: PMPrintDialogInitUPP ): OSStatus; external name '_PMPrintDialogMain';
  508. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  509. {
  510. * PMPageSetupDialogMain() *** DEPRECATED ***
  511. *
  512. * Discussion:
  513. * You should create a PDE for your application instead of relying
  514. * on this function.
  515. *
  516. * Availability:
  517. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  518. * CarbonLib: in CarbonLib 1.0 and later
  519. * Non-Carbon CFM: not available
  520. }
  521. function PMPageSetupDialogMain( pageFormat: PMPageFormat; var accepted: Boolean; myInitProc: PMPageSetupDialogInitUPP ): OSStatus; external name '_PMPageSetupDialogMain';
  522. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  523. {$endc} {PM_USE_SESSION_APIS}
  524. {
  525. * PMGetDialogPtr() *** DEPRECATED ***
  526. *
  527. * Discussion:
  528. * You should create a PDE for your application instead of relying
  529. * on this function.
  530. *
  531. * Availability:
  532. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  533. * CarbonLib: in CarbonLib 1.0 and later
  534. * Non-Carbon CFM: not available
  535. }
  536. function PMGetDialogPtr( pmDialog_: PMDialog; var theDialog: DialogRef ): OSStatus; external name '_PMGetDialogPtr';
  537. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  538. function PMGetDialogRef( pmDialog_: PMDialog; var theDialog: DialogRef ): OSStatus; external name '_PMGetDialogPtr';
  539. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  540. {
  541. * PMGetModalFilterProc() *** DEPRECATED ***
  542. *
  543. * Discussion:
  544. * You should create a PDE for your application instead of relying
  545. * on this function.
  546. *
  547. * Availability:
  548. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  549. * CarbonLib: in CarbonLib 1.0 and later
  550. * Non-Carbon CFM: not available
  551. }
  552. function PMGetModalFilterProc( pmDialog_: PMDialog; var filterProc: ModalFilterUPP ): OSStatus; external name '_PMGetModalFilterProc';
  553. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  554. {
  555. * PMSetModalFilterProc() *** DEPRECATED ***
  556. *
  557. * Discussion:
  558. * You should create a PDE for your application instead of relying
  559. * on this function.
  560. *
  561. * Availability:
  562. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  563. * CarbonLib: in CarbonLib 1.0 and later
  564. * Non-Carbon CFM: not available
  565. }
  566. function PMSetModalFilterProc( pmDialog_: PMDialog; filterProc: ModalFilterUPP ): OSStatus; external name '_PMSetModalFilterProc';
  567. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  568. {
  569. * PMGetItemProc() *** DEPRECATED ***
  570. *
  571. * Discussion:
  572. * You should create a PDE for your application instead of relying
  573. * on this function.
  574. *
  575. * Availability:
  576. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  577. * CarbonLib: in CarbonLib 1.0 and later
  578. * Non-Carbon CFM: not available
  579. }
  580. function PMGetItemProc( pmDialog_: PMDialog; var itemProc: PMItemUPP ): OSStatus; external name '_PMGetItemProc';
  581. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  582. {
  583. * PMSetItemProc() *** DEPRECATED ***
  584. *
  585. * Discussion:
  586. * You should create a PDE for your application instead of relying
  587. * on this function.
  588. *
  589. * Availability:
  590. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  591. * CarbonLib: in CarbonLib 1.0 and later
  592. * Non-Carbon CFM: not available
  593. }
  594. function PMSetItemProc( pmDialog_: PMDialog; itemProc: PMItemUPP ): OSStatus; external name '_PMSetItemProc';
  595. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  596. {
  597. * PMGetDialogAccepted() *** DEPRECATED ***
  598. *
  599. * Discussion:
  600. * You should create a PDE for your application instead of relying
  601. * on this function.
  602. *
  603. * Availability:
  604. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  605. * CarbonLib: in CarbonLib 1.0 and later
  606. * Non-Carbon CFM: not available
  607. }
  608. function PMGetDialogAccepted( pmDialog_: PMDialog; var process: Boolean ): OSStatus; external name '_PMGetDialogAccepted';
  609. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  610. {
  611. * PMSetDialogAccepted() *** DEPRECATED ***
  612. *
  613. * Discussion:
  614. * You should create a PDE for your application instead of relying
  615. * on this function.
  616. *
  617. * Availability:
  618. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  619. * CarbonLib: in CarbonLib 1.0 and later
  620. * Non-Carbon CFM: not available
  621. }
  622. function PMSetDialogAccepted( pmDialog_: PMDialog; process: Boolean ): OSStatus; external name '_PMSetDialogAccepted';
  623. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  624. {
  625. * PMGetDialogDone() *** DEPRECATED ***
  626. *
  627. * Discussion:
  628. * You should create a PDE for your application instead of relying
  629. * on this function.
  630. *
  631. * Availability:
  632. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  633. * CarbonLib: in CarbonLib 1.0 and later
  634. * Non-Carbon CFM: not available
  635. }
  636. function PMGetDialogDone( pmDialog_: PMDialog; var done: Boolean ): OSStatus; external name '_PMGetDialogDone';
  637. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  638. {
  639. * PMSetDialogDone() *** DEPRECATED ***
  640. *
  641. * Discussion:
  642. * You should create a PDE for your application instead of relying
  643. * on this function.
  644. *
  645. * Availability:
  646. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  647. * CarbonLib: in CarbonLib 1.0 and later
  648. * Non-Carbon CFM: not available
  649. }
  650. function PMSetDialogDone( pmDialog_: PMDialog; done: Boolean ): OSStatus; external name '_PMSetDialogDone';
  651. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  652. {$endc} {not TARGET_CPU_64}
  653. {$endc} {TARGET_OS_MAC}
  654. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  655. end.
  656. {$endc} {not MACOSALLINCLUDE}