PMApplicationDeprecated.pas 25 KB

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