PMApplicationDeprecated.pas 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. {
  2. File: Print/PMApplicationDeprecated.h
  3. Contains: Deprecated Carbon Printing Manager Interfaces.
  4. Copyright (c) 1998-2006, 2008 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. {
  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 PMApplicationDeprecated;
  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,Dialogs,PMDefinitions,PMDefinitionsDeprecated;
  161. {$endc} {not MACOSALLINCLUDE}
  162. {$ifc TARGET_OS_MAC}
  163. {$ALIGN POWER}
  164. {$ifc not TARGET_CPU_64}
  165. {****************************************}
  166. { The following callbacks are deprecated }
  167. {****************************************}
  168. type
  169. PMItemProcPtr = procedure( theDialog: DialogRef; item: SInt16 );
  170. PMPrintDialogInitProcPtr = procedure( printSettings: PMPrintSettings; var theDialog: PMDialog );
  171. PMPageSetupDialogInitProcPtr = procedure( pageFormat: PMPageFormat; var theDialog: PMDialog );
  172. PMItemUPP = PMItemProcPtr;
  173. PMPrintDialogInitUPP = PMPrintDialogInitProcPtr;
  174. PMPageSetupDialogInitUPP = PMPageSetupDialogInitProcPtr;
  175. {
  176. * NewPMItemUPP()
  177. *
  178. * Availability:
  179. * Mac OS X: in version 10.0 and later in Carbon.framework
  180. * CarbonLib: in CarbonLib 1.0 and later
  181. * Non-Carbon CFM: not available
  182. }
  183. function NewPMItemUPP( userRoutine: PMItemProcPtr ): PMItemUPP; external name '_NewPMItemUPP';
  184. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  185. {
  186. * NewPMPrintDialogInitUPP()
  187. *
  188. * Availability:
  189. * Mac OS X: in version 10.0 and later in Carbon.framework
  190. * CarbonLib: in CarbonLib 1.0 and later
  191. * Non-Carbon CFM: not available
  192. }
  193. function NewPMPrintDialogInitUPP( userRoutine: PMPrintDialogInitProcPtr ): PMPrintDialogInitUPP; external name '_NewPMPrintDialogInitUPP';
  194. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  195. {
  196. * NewPMPageSetupDialogInitUPP()
  197. *
  198. * Availability:
  199. * Mac OS X: in version 10.0 and later in Carbon.framework
  200. * CarbonLib: in CarbonLib 1.0 and later
  201. * Non-Carbon CFM: not available
  202. }
  203. function NewPMPageSetupDialogInitUPP( userRoutine: PMPageSetupDialogInitProcPtr ): PMPageSetupDialogInitUPP; external name '_NewPMPageSetupDialogInitUPP';
  204. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  205. {
  206. * DisposePMItemUPP()
  207. *
  208. * Availability:
  209. * Mac OS X: in version 10.0 and later in Carbon.framework
  210. * CarbonLib: in CarbonLib 1.0 and later
  211. * Non-Carbon CFM: not available
  212. }
  213. procedure DisposePMItemUPP( userUPP: PMItemUPP ); external name '_DisposePMItemUPP';
  214. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  215. {
  216. * DisposePMPrintDialogInitUPP()
  217. *
  218. * Availability:
  219. * Mac OS X: in version 10.0 and later in Carbon.framework
  220. * CarbonLib: in CarbonLib 1.0 and later
  221. * Non-Carbon CFM: not available
  222. }
  223. procedure DisposePMPrintDialogInitUPP( userUPP: PMPrintDialogInitUPP ); external name '_DisposePMPrintDialogInitUPP';
  224. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  225. {
  226. * DisposePMPageSetupDialogInitUPP()
  227. *
  228. * Availability:
  229. * Mac OS X: in version 10.0 and later in Carbon.framework
  230. * CarbonLib: in CarbonLib 1.0 and later
  231. * Non-Carbon CFM: not available
  232. }
  233. procedure DisposePMPageSetupDialogInitUPP( userUPP: PMPageSetupDialogInitUPP ); external name '_DisposePMPageSetupDialogInitUPP';
  234. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  235. {
  236. * InvokePMItemUPP()
  237. *
  238. * Availability:
  239. * Mac OS X: in version 10.0 and later in Carbon.framework
  240. * CarbonLib: in CarbonLib 1.0 and later
  241. * Non-Carbon CFM: not available
  242. }
  243. procedure InvokePMItemUPP( theDialog: DialogRef; item: SInt16; userUPP: PMItemUPP ); external name '_InvokePMItemUPP';
  244. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  245. {
  246. * InvokePMPrintDialogInitUPP()
  247. *
  248. * Availability:
  249. * Mac OS X: in version 10.0 and later in Carbon.framework
  250. * CarbonLib: in CarbonLib 1.0 and later
  251. * Non-Carbon CFM: not available
  252. }
  253. procedure InvokePMPrintDialogInitUPP( printSettings: PMPrintSettings; var theDialog: PMDialog; userUPP: PMPrintDialogInitUPP ); external name '_InvokePMPrintDialogInitUPP';
  254. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  255. {
  256. * InvokePMPageSetupDialogInitUPP()
  257. *
  258. * Availability:
  259. * Mac OS X: in version 10.0 and later in Carbon.framework
  260. * CarbonLib: in CarbonLib 1.0 and later
  261. * Non-Carbon CFM: not available
  262. }
  263. procedure InvokePMPageSetupDialogInitUPP( pageFormat: PMPageFormat; var theDialog: PMDialog; userUPP: PMPageSetupDialogInitUPP ); external name '_InvokePMPageSetupDialogInitUPP';
  264. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  265. {$ifc PM_USE_SESSION_APIS}
  266. {
  267. * PMSessionBeginDocument() *** DEPRECATED ***
  268. *
  269. * Discussion:
  270. * Instead use PMSessionBeginCGDocument.
  271. *
  272. * Availability:
  273. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.5
  274. * CarbonLib: in CarbonLib 1.1 and later
  275. * Non-Carbon CFM: not available
  276. }
  277. function PMSessionBeginDocument( printSession: PMPrintSession; printSettings: PMPrintSettings; pageFormat: PMPageFormat ): OSStatus; external name '_PMSessionBeginDocument';
  278. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 *)
  279. {
  280. * PMSessionPageSetupDialogInit() *** DEPRECATED ***
  281. *
  282. * Discussion:
  283. * You should create a PDE for your application instead of relying
  284. * on this function.
  285. *
  286. * Availability:
  287. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  288. * CarbonLib: in CarbonLib 1.1 and later
  289. * Non-Carbon CFM: not available
  290. }
  291. function PMSessionPageSetupDialogInit( printSession: PMPrintSession; pageFormat: PMPageFormat; var newDialog: PMDialog ): OSStatus; external name '_PMSessionPageSetupDialogInit';
  292. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  293. {
  294. * PMSessionPrintDialogInit() *** DEPRECATED ***
  295. *
  296. * Discussion:
  297. * You should create a PDE for your application instead of relying
  298. * on this function.
  299. *
  300. * Availability:
  301. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  302. * CarbonLib: in CarbonLib 1.1 and later
  303. * Non-Carbon CFM: not available
  304. }
  305. function PMSessionPrintDialogInit( printSession: PMPrintSession; printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var newDialog: PMDialog ): OSStatus; external name '_PMSessionPrintDialogInit';
  306. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  307. {
  308. * PMSessionPrintDialogMain() *** DEPRECATED ***
  309. *
  310. * Discussion:
  311. * You should create a PDE for your application instead of relying
  312. * on this function.
  313. *
  314. * Availability:
  315. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  316. * CarbonLib: in CarbonLib 1.1 and later
  317. * Non-Carbon CFM: not available
  318. }
  319. function PMSessionPrintDialogMain( printSession: PMPrintSession; printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: Boolean; myInitProc: PMPrintDialogInitUPP ): OSStatus; external name '_PMSessionPrintDialogMain';
  320. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  321. {
  322. * PMSessionPageSetupDialogMain() *** DEPRECATED ***
  323. *
  324. * Discussion:
  325. * You should create a PDE for your application instead of relying
  326. * on this function.
  327. *
  328. * Availability:
  329. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  330. * CarbonLib: in CarbonLib 1.1 and later
  331. * Non-Carbon CFM: not available
  332. }
  333. function PMSessionPageSetupDialogMain( printSession: PMPrintSession; pageFormat: PMPageFormat; var accepted: Boolean; myInitProc: PMPageSetupDialogInitUPP ): OSStatus; external name '_PMSessionPageSetupDialogMain';
  334. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  335. {$elsec} {PM_USE_SESSION_APIS}
  336. {
  337. * PMBeginDocument() *** DEPRECATED ***
  338. *
  339. * Discussion:
  340. * Use PMSessionBeginDocument instead.
  341. *
  342. * Availability:
  343. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  344. * CarbonLib: in CarbonLib 1.0 and later
  345. * Non-Carbon CFM: not available
  346. }
  347. function PMBeginDocument( printSettings: PMPrintSettings; pageFormat: PMPageFormat; var printContext: PMPrintContext ): OSStatus; external name '_PMBeginDocument';
  348. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  349. {
  350. * PMEndDocument() *** DEPRECATED ***
  351. *
  352. * Discussion:
  353. * Use PMSessionEndDocument instead.
  354. *
  355. * Availability:
  356. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  357. * CarbonLib: in CarbonLib 1.0 and later
  358. * Non-Carbon CFM: not available
  359. }
  360. function PMEndDocument( printContext: PMPrintContext ): OSStatus; external name '_PMEndDocument';
  361. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  362. {
  363. * PMBeginPage() *** DEPRECATED ***
  364. *
  365. * Discussion:
  366. * Use PMSessionBeginPage instead.
  367. *
  368. * Availability:
  369. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  370. * CarbonLib: in CarbonLib 1.0 and later
  371. * Non-Carbon CFM: not available
  372. }
  373. function PMBeginPage( printContext: PMPrintContext; const (*var*) pageFrame: PMRect ): OSStatus; external name '_PMBeginPage';
  374. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  375. {
  376. * PMEndPage() *** DEPRECATED ***
  377. *
  378. * Discussion:
  379. * Use PMSessionEndPage 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 PMEndPage( printContext: PMPrintContext ): OSStatus; external name '_PMEndPage';
  387. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  388. {
  389. * PMPageSetupDialog() *** DEPRECATED ***
  390. *
  391. * Discussion:
  392. * Use PMSessionPageSetupDialog 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 PMPageSetupDialog( pageFormat: PMPageFormat; var accepted: Boolean ): OSStatus; external name '_PMPageSetupDialog';
  400. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  401. {
  402. * PMPrintDialog() *** DEPRECATED ***
  403. *
  404. * Discussion:
  405. * Use PMSessionPrintDialog 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 PMPrintDialog( printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: Boolean ): OSStatus; external name '_PMPrintDialog';
  413. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  414. {
  415. * PMPageSetupDialogInit() *** DEPRECATED ***
  416. *
  417. * Discussion:
  418. * You should create a PDE for your application instead of relying
  419. * on this function.
  420. *
  421. * Availability:
  422. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  423. * CarbonLib: in CarbonLib 1.0 and later
  424. * Non-Carbon CFM: not available
  425. }
  426. function PMPageSetupDialogInit( pageFormat: PMPageFormat; var newDialog: PMDialog ): OSStatus; external name '_PMPageSetupDialogInit';
  427. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  428. {
  429. * PMPrintDialogInit() *** DEPRECATED ***
  430. *
  431. * Discussion:
  432. * You should create a PDE for your application instead of relying
  433. * on this function.
  434. *
  435. * Availability:
  436. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  437. * CarbonLib: in CarbonLib 1.0 and later
  438. * Non-Carbon CFM: not available
  439. }
  440. function PMPrintDialogInit( printSettings: PMPrintSettings; var newDialog: PMDialog ): OSStatus; external name '_PMPrintDialogInit';
  441. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  442. {
  443. * PMPrintDialogInitWithPageFormat() *** DEPRECATED ***
  444. *
  445. * Discussion:
  446. * You should create a PDE for your application instead of relying
  447. * on this function.
  448. *
  449. * Availability:
  450. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  451. * CarbonLib: in CarbonLib 1.1 and later
  452. * Non-Carbon CFM: not available
  453. }
  454. function PMPrintDialogInitWithPageFormat( printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var newDialog: PMDialog ): OSStatus; external name '_PMPrintDialogInitWithPageFormat';
  455. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  456. {
  457. * PMPrintDialogMain() *** DEPRECATED ***
  458. *
  459. * Discussion:
  460. * You should create a PDE for your application instead of relying
  461. * on this function.
  462. *
  463. * Availability:
  464. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  465. * CarbonLib: in CarbonLib 1.0 and later
  466. * Non-Carbon CFM: not available
  467. }
  468. function PMPrintDialogMain( printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: Boolean; myInitProc: PMPrintDialogInitUPP ): OSStatus; external name '_PMPrintDialogMain';
  469. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  470. {
  471. * PMPageSetupDialogMain() *** DEPRECATED ***
  472. *
  473. * Discussion:
  474. * You should create a PDE for your application instead of relying
  475. * on this function.
  476. *
  477. * Availability:
  478. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  479. * CarbonLib: in CarbonLib 1.0 and later
  480. * Non-Carbon CFM: not available
  481. }
  482. function PMPageSetupDialogMain( pageFormat: PMPageFormat; var accepted: Boolean; myInitProc: PMPageSetupDialogInitUPP ): OSStatus; external name '_PMPageSetupDialogMain';
  483. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  484. {$endc} {PM_USE_SESSION_APIS}
  485. {
  486. * PMGetDialogPtr() *** DEPRECATED ***
  487. *
  488. * Discussion:
  489. * You should create a PDE for your application instead of relying
  490. * on this function.
  491. *
  492. * Availability:
  493. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  494. * CarbonLib: in CarbonLib 1.0 and later
  495. * Non-Carbon CFM: not available
  496. }
  497. function PMGetDialogPtr( pmDialog_: PMDialog; var theDialog: DialogRef ): OSStatus; external name '_PMGetDialogPtr';
  498. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  499. function PMGetDialogRef( pmDialog_: PMDialog; var theDialog: DialogRef ): OSStatus; external name '_PMGetDialogPtr';
  500. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  501. {
  502. * PMGetModalFilterProc() *** DEPRECATED ***
  503. *
  504. * Discussion:
  505. * You should create a PDE for your application instead of relying
  506. * on this function.
  507. *
  508. * Availability:
  509. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  510. * CarbonLib: in CarbonLib 1.0 and later
  511. * Non-Carbon CFM: not available
  512. }
  513. function PMGetModalFilterProc( pmDialog_: PMDialog; var filterProc: ModalFilterUPP ): OSStatus; external name '_PMGetModalFilterProc';
  514. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  515. {
  516. * PMSetModalFilterProc() *** DEPRECATED ***
  517. *
  518. * Discussion:
  519. * You should create a PDE for your application instead of relying
  520. * on this function.
  521. *
  522. * Availability:
  523. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  524. * CarbonLib: in CarbonLib 1.0 and later
  525. * Non-Carbon CFM: not available
  526. }
  527. function PMSetModalFilterProc( pmDialog_: PMDialog; filterProc: ModalFilterUPP ): OSStatus; external name '_PMSetModalFilterProc';
  528. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  529. {
  530. * PMGetItemProc() *** DEPRECATED ***
  531. *
  532. * Discussion:
  533. * You should create a PDE for your application instead of relying
  534. * on this function.
  535. *
  536. * Availability:
  537. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  538. * CarbonLib: in CarbonLib 1.0 and later
  539. * Non-Carbon CFM: not available
  540. }
  541. function PMGetItemProc( pmDialog_: PMDialog; var itemProc: PMItemUPP ): OSStatus; external name '_PMGetItemProc';
  542. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  543. {
  544. * PMSetItemProc() *** DEPRECATED ***
  545. *
  546. * Discussion:
  547. * You should create a PDE for your application instead of relying
  548. * on this function.
  549. *
  550. * Availability:
  551. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  552. * CarbonLib: in CarbonLib 1.0 and later
  553. * Non-Carbon CFM: not available
  554. }
  555. function PMSetItemProc( pmDialog_: PMDialog; itemProc: PMItemUPP ): OSStatus; external name '_PMSetItemProc';
  556. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  557. {
  558. * PMGetDialogAccepted() *** DEPRECATED ***
  559. *
  560. * Discussion:
  561. * You should create a PDE for your application instead of relying
  562. * on this function.
  563. *
  564. * Availability:
  565. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  566. * CarbonLib: in CarbonLib 1.0 and later
  567. * Non-Carbon CFM: not available
  568. }
  569. function PMGetDialogAccepted( pmDialog_: PMDialog; var process: Boolean ): OSStatus; external name '_PMGetDialogAccepted';
  570. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  571. {
  572. * PMSetDialogAccepted() *** DEPRECATED ***
  573. *
  574. * Discussion:
  575. * You should create a PDE for your application instead of relying
  576. * on this function.
  577. *
  578. * Availability:
  579. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  580. * CarbonLib: in CarbonLib 1.0 and later
  581. * Non-Carbon CFM: not available
  582. }
  583. function PMSetDialogAccepted( pmDialog_: PMDialog; process: Boolean ): OSStatus; external name '_PMSetDialogAccepted';
  584. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  585. {
  586. * PMGetDialogDone() *** DEPRECATED ***
  587. *
  588. * Discussion:
  589. * You should create a PDE for your application instead of relying
  590. * on this function.
  591. *
  592. * Availability:
  593. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  594. * CarbonLib: in CarbonLib 1.0 and later
  595. * Non-Carbon CFM: not available
  596. }
  597. function PMGetDialogDone( pmDialog_: PMDialog; var done: Boolean ): OSStatus; external name '_PMGetDialogDone';
  598. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  599. {
  600. * PMSetDialogDone() *** DEPRECATED ***
  601. *
  602. * Discussion:
  603. * You should create a PDE for your application instead of relying
  604. * on this function.
  605. *
  606. * Availability:
  607. * Mac OS X: in version 10.0 and later in Carbon.framework [32-bit only] but deprecated in 10.4
  608. * CarbonLib: in CarbonLib 1.0 and later
  609. * Non-Carbon CFM: not available
  610. }
  611. function PMSetDialogDone( pmDialog_: PMDialog; done: Boolean ): OSStatus; external name '_PMSetDialogDone';
  612. (* AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4 *)
  613. {$endc} {not TARGET_CPU_64}
  614. {$endc} {TARGET_OS_MAC}
  615. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  616. end.
  617. {$endc} {not MACOSALLINCLUDE}