PMApplication.pas 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. {
  2. File: PMApplication.p
  3. Contains: Carbon Printing Manager Interfaces.
  4. Version: Technology: Mac OS X
  5. Release: Universal Interfaces 3.4.2
  6. Copyright: © 1998-2002 by Apple Computer, Inc., all rights reserved
  7. Bugs?: For bug reports, consult the following page on
  8. the World Wide Web:
  9. http://www.freepascal.org/bugs.html
  10. }
  11. {
  12. Modified for use with Free Pascal
  13. Version 200
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$mode macpas}
  17. {$packenum 1}
  18. {$macro on}
  19. {$inline on}
  20. {$CALLING MWPASCAL}
  21. unit PMApplication;
  22. interface
  23. {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
  24. {$setc GAP_INTERFACES_VERSION := $0200}
  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 CPUPOWERPC}
  35. {$setc __ppc__ := 1}
  36. {$elsec}
  37. {$setc __ppc__ := 0}
  38. {$endc}
  39. {$ifc not defined __i386__ and defined CPUI386}
  40. {$setc __i386__ := 1}
  41. {$elsec}
  42. {$setc __i386__ := 0}
  43. {$endc}
  44. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  45. {$error Conflicting definitions for __ppc__ and __i386__}
  46. {$endc}
  47. {$ifc defined __ppc__ and __ppc__}
  48. {$setc TARGET_CPU_PPC := TRUE}
  49. {$setc TARGET_CPU_X86 := FALSE}
  50. {$elifc defined __i386__ and __i386__}
  51. {$setc TARGET_CPU_PPC := FALSE}
  52. {$setc TARGET_CPU_X86 := TRUE}
  53. {$elsec}
  54. {$error Neither __ppc__ nor __i386__ is defined.}
  55. {$endc}
  56. {$setc TARGET_CPU_PPC_64 := FALSE}
  57. {$ifc defined FPC_BIG_ENDIAN}
  58. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  59. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  60. {$elifc defined FPC_LITTLE_ENDIAN}
  61. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  62. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  63. {$elsec}
  64. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  65. {$endc}
  66. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  67. {$setc CALL_NOT_IN_CARBON := FALSE}
  68. {$setc OLDROUTINENAMES := FALSE}
  69. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  70. {$setc OPAQUE_UPP_TYPES := TRUE}
  71. {$setc OTCARBONAPPLICATION := TRUE}
  72. {$setc OTKERNEL := FALSE}
  73. {$setc PM_USE_SESSION_APIS := TRUE}
  74. {$setc TARGET_API_MAC_CARBON := TRUE}
  75. {$setc TARGET_API_MAC_OS8 := FALSE}
  76. {$setc TARGET_API_MAC_OSX := TRUE}
  77. {$setc TARGET_CARBON := TRUE}
  78. {$setc TARGET_CPU_68K := FALSE}
  79. {$setc TARGET_CPU_MIPS := FALSE}
  80. {$setc TARGET_CPU_SPARC := FALSE}
  81. {$setc TARGET_OS_MAC := TRUE}
  82. {$setc TARGET_OS_UNIX := FALSE}
  83. {$setc TARGET_OS_WIN32 := FALSE}
  84. {$setc TARGET_RT_MAC_68881 := FALSE}
  85. {$setc TARGET_RT_MAC_CFM := FALSE}
  86. {$setc TARGET_RT_MAC_MACHO := TRUE}
  87. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  88. {$setc TYPE_BOOL := FALSE}
  89. {$setc TYPE_EXTENDED := FALSE}
  90. {$setc TYPE_LONGLONG := TRUE}
  91. uses MacTypes,Quickdraw,PMDefinitions,PMCore,Dialogs;
  92. {$ALIGN MAC68K}
  93. { Callbacks }
  94. type
  95. {$ifc TYPED_FUNCTION_POINTERS}
  96. PMItemProcPtr = procedure(theDialog: DialogRef; item: SInt16);
  97. {$elsec}
  98. PMItemProcPtr = ProcPtr;
  99. {$endc}
  100. {$ifc TYPED_FUNCTION_POINTERS}
  101. PMPrintDialogInitProcPtr = procedure(printSettings: PMPrintSettings; var theDialog: PMDialog);
  102. {$elsec}
  103. PMPrintDialogInitProcPtr = ProcPtr;
  104. {$endc}
  105. {$ifc TYPED_FUNCTION_POINTERS}
  106. PMPageSetupDialogInitProcPtr = procedure(pageFormat: PMPageFormat; var theDialog: PMDialog);
  107. {$elsec}
  108. PMPageSetupDialogInitProcPtr = ProcPtr;
  109. {$endc}
  110. {$ifc TYPED_FUNCTION_POINTERS}
  111. PMSheetDoneProcPtr = procedure(printSession: PMPrintSession; documentWindow: WindowRef; accepted: boolean);
  112. {$elsec}
  113. PMSheetDoneProcPtr = ProcPtr;
  114. {$endc}
  115. {$ifc OPAQUE_UPP_TYPES}
  116. PMItemUPP = ^SInt32; { an opaque UPP }
  117. {$elsec}
  118. PMItemUPP = UniversalProcPtr;
  119. {$endc}
  120. {$ifc OPAQUE_UPP_TYPES}
  121. PMPrintDialogInitUPP = ^SInt32; { an opaque UPP }
  122. {$elsec}
  123. PMPrintDialogInitUPP = UniversalProcPtr;
  124. {$endc}
  125. {$ifc OPAQUE_UPP_TYPES}
  126. PMPageSetupDialogInitUPP = ^SInt32; { an opaque UPP }
  127. {$elsec}
  128. PMPageSetupDialogInitUPP = UniversalProcPtr;
  129. {$endc}
  130. {$ifc OPAQUE_UPP_TYPES}
  131. PMSheetDoneUPP = ^SInt32; { an opaque UPP }
  132. {$elsec}
  133. PMSheetDoneUPP = UniversalProcPtr;
  134. {$endc}
  135. const
  136. uppPMItemProcInfo = $000002C0;
  137. uppPMPrintDialogInitProcInfo = $000003C0;
  138. uppPMPageSetupDialogInitProcInfo = $000003C0;
  139. uppPMSheetDoneProcInfo = $000007C0;
  140. {
  141. * NewPMItemUPP()
  142. *
  143. * Availability:
  144. * Non-Carbon CFM: not available
  145. * CarbonLib: in CarbonLib 1.0 and later
  146. * Mac OS X: in version 10.0 and later
  147. }
  148. function NewPMItemUPP(userRoutine: PMItemProcPtr): PMItemUPP; external name '_NewPMItemUPP';
  149. {
  150. * NewPMPrintDialogInitUPP()
  151. *
  152. * Availability:
  153. * Non-Carbon CFM: not available
  154. * CarbonLib: in CarbonLib 1.0 and later
  155. * Mac OS X: in version 10.0 and later
  156. }
  157. function NewPMPrintDialogInitUPP(userRoutine: PMPrintDialogInitProcPtr): PMPrintDialogInitUPP; external name '_NewPMPrintDialogInitUPP';
  158. {
  159. * NewPMPageSetupDialogInitUPP()
  160. *
  161. * Availability:
  162. * Non-Carbon CFM: not available
  163. * CarbonLib: in CarbonLib 1.0 and later
  164. * Mac OS X: in version 10.0 and later
  165. }
  166. function NewPMPageSetupDialogInitUPP(userRoutine: PMPageSetupDialogInitProcPtr): PMPageSetupDialogInitUPP; external name '_NewPMPageSetupDialogInitUPP';
  167. {
  168. * NewPMSheetDoneUPP()
  169. *
  170. * Availability:
  171. * Non-Carbon CFM: not available
  172. * CarbonLib: in CarbonLib 1.1 and later
  173. * Mac OS X: in version 10.0 and later
  174. }
  175. function NewPMSheetDoneUPP(userRoutine: PMSheetDoneProcPtr): PMSheetDoneUPP; external name '_NewPMSheetDoneUPP';
  176. {
  177. * DisposePMItemUPP()
  178. *
  179. * Availability:
  180. * Non-Carbon CFM: not available
  181. * CarbonLib: in CarbonLib 1.0 and later
  182. * Mac OS X: in version 10.0 and later
  183. }
  184. procedure DisposePMItemUPP(userUPP: PMItemUPP); external name '_DisposePMItemUPP';
  185. {
  186. * DisposePMPrintDialogInitUPP()
  187. *
  188. * Availability:
  189. * Non-Carbon CFM: not available
  190. * CarbonLib: in CarbonLib 1.0 and later
  191. * Mac OS X: in version 10.0 and later
  192. }
  193. procedure DisposePMPrintDialogInitUPP(userUPP: PMPrintDialogInitUPP); external name '_DisposePMPrintDialogInitUPP';
  194. {
  195. * DisposePMPageSetupDialogInitUPP()
  196. *
  197. * Availability:
  198. * Non-Carbon CFM: not available
  199. * CarbonLib: in CarbonLib 1.0 and later
  200. * Mac OS X: in version 10.0 and later
  201. }
  202. procedure DisposePMPageSetupDialogInitUPP(userUPP: PMPageSetupDialogInitUPP); external name '_DisposePMPageSetupDialogInitUPP';
  203. {
  204. * DisposePMSheetDoneUPP()
  205. *
  206. * Availability:
  207. * Non-Carbon CFM: not available
  208. * CarbonLib: in CarbonLib 1.1 and later
  209. * Mac OS X: in version 10.0 and later
  210. }
  211. procedure DisposePMSheetDoneUPP(userUPP: PMSheetDoneUPP); external name '_DisposePMSheetDoneUPP';
  212. {
  213. * InvokePMItemUPP()
  214. *
  215. * Availability:
  216. * Non-Carbon CFM: not available
  217. * CarbonLib: in CarbonLib 1.0 and later
  218. * Mac OS X: in version 10.0 and later
  219. }
  220. procedure InvokePMItemUPP(theDialog: DialogRef; item: SInt16; userRoutine: PMItemUPP); external name '_InvokePMItemUPP';
  221. {
  222. * InvokePMPrintDialogInitUPP()
  223. *
  224. * Availability:
  225. * Non-Carbon CFM: not available
  226. * CarbonLib: in CarbonLib 1.0 and later
  227. * Mac OS X: in version 10.0 and later
  228. }
  229. procedure InvokePMPrintDialogInitUPP(printSettings: PMPrintSettings; var theDialog: PMDialog; userRoutine: PMPrintDialogInitUPP); external name '_InvokePMPrintDialogInitUPP';
  230. {
  231. * InvokePMPageSetupDialogInitUPP()
  232. *
  233. * Availability:
  234. * Non-Carbon CFM: not available
  235. * CarbonLib: in CarbonLib 1.0 and later
  236. * Mac OS X: in version 10.0 and later
  237. }
  238. procedure InvokePMPageSetupDialogInitUPP(pageFormat: PMPageFormat; var theDialog: PMDialog; userRoutine: PMPageSetupDialogInitUPP); external name '_InvokePMPageSetupDialogInitUPP';
  239. {
  240. * InvokePMSheetDoneUPP()
  241. *
  242. * Availability:
  243. * Non-Carbon CFM: not available
  244. * CarbonLib: in CarbonLib 1.1 and later
  245. * Mac OS X: in version 10.0 and later
  246. }
  247. procedure InvokePMSheetDoneUPP(printSession: PMPrintSession; documentWindow: WindowRef; accepted: boolean; userRoutine: PMSheetDoneUPP); external name '_InvokePMSheetDoneUPP';
  248. {$ifc PM_USE_SESSION_APIS}
  249. { Print loop }
  250. {
  251. * PMSessionBeginDocument()
  252. *
  253. * Availability:
  254. * Non-Carbon CFM: not available
  255. * CarbonLib: in CarbonLib 1.1 and later
  256. * Mac OS X: in version 10.0 and later
  257. }
  258. function PMSessionBeginDocument(printSession: PMPrintSession; printSettings: PMPrintSettings; pageFormat: PMPageFormat): OSStatus; external name '_PMSessionBeginDocument';
  259. {
  260. * PMSessionEndDocument()
  261. *
  262. * Availability:
  263. * Non-Carbon CFM: not available
  264. * CarbonLib: in CarbonLib 1.1 and later
  265. * Mac OS X: in version 10.0 and later
  266. }
  267. function PMSessionEndDocument(printSession: PMPrintSession): OSStatus; external name '_PMSessionEndDocument';
  268. {
  269. * PMSessionBeginPage()
  270. *
  271. * Availability:
  272. * Non-Carbon CFM: not available
  273. * CarbonLib: in CarbonLib 1.1 and later
  274. * Mac OS X: in version 10.0 and later
  275. }
  276. function PMSessionBeginPage(printSession: PMPrintSession; pageFormat: PMPageFormat; pageFrame: PMRectPtr): OSStatus; external name '_PMSessionBeginPage';
  277. {
  278. * PMSessionEndPage()
  279. *
  280. * Availability:
  281. * Non-Carbon CFM: not available
  282. * CarbonLib: in CarbonLib 1.1 and later
  283. * Mac OS X: in version 10.0 and later
  284. }
  285. function PMSessionEndPage(printSession: PMPrintSession): OSStatus; external name '_PMSessionEndPage';
  286. { Session Printing Dialogs }
  287. {
  288. * PMSessionPageSetupDialog()
  289. *
  290. * Availability:
  291. * Non-Carbon CFM: not available
  292. * CarbonLib: in CarbonLib 1.1 and later
  293. * Mac OS X: in version 10.0 and later
  294. }
  295. function PMSessionPageSetupDialog(printSession: PMPrintSession; pageFormat: PMPageFormat; var accepted: boolean): OSStatus; external name '_PMSessionPageSetupDialog';
  296. {
  297. * PMSessionPrintDialog()
  298. *
  299. * Availability:
  300. * Non-Carbon CFM: not available
  301. * CarbonLib: in CarbonLib 1.1 and later
  302. * Mac OS X: in version 10.0 and later
  303. }
  304. function PMSessionPrintDialog(printSession: PMPrintSession; printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: boolean): OSStatus; external name '_PMSessionPrintDialog';
  305. {
  306. * PMSessionPageSetupDialogInit()
  307. *
  308. * Availability:
  309. * Non-Carbon CFM: not available
  310. * CarbonLib: in CarbonLib 1.1 and later
  311. * Mac OS X: in version 10.0 and later
  312. }
  313. function PMSessionPageSetupDialogInit(printSession: PMPrintSession; pageFormat: PMPageFormat; var newDialog: PMDialog): OSStatus; external name '_PMSessionPageSetupDialogInit';
  314. {
  315. * PMSessionPrintDialogInit()
  316. *
  317. * Availability:
  318. * Non-Carbon CFM: not available
  319. * CarbonLib: in CarbonLib 1.1 and later
  320. * Mac OS X: in version 10.0 and later
  321. }
  322. function PMSessionPrintDialogInit(printSession: PMPrintSession; printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var newDialog: PMDialog): OSStatus; external name '_PMSessionPrintDialogInit';
  323. {
  324. * PMSessionPrintDialogMain()
  325. *
  326. * Availability:
  327. * Non-Carbon CFM: not available
  328. * CarbonLib: in CarbonLib 1.1 and later
  329. * Mac OS X: in version 10.0 and later
  330. }
  331. function PMSessionPrintDialogMain(printSession: PMPrintSession; printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: boolean; myInitProc: PMPrintDialogInitUPP): OSStatus; external name '_PMSessionPrintDialogMain';
  332. {
  333. * PMSessionPageSetupDialogMain()
  334. *
  335. * Availability:
  336. * Non-Carbon CFM: not available
  337. * CarbonLib: in CarbonLib 1.1 and later
  338. * Mac OS X: in version 10.0 and later
  339. }
  340. function PMSessionPageSetupDialogMain(printSession: PMPrintSession; pageFormat: PMPageFormat; var accepted: boolean; myInitProc: PMPageSetupDialogInitUPP): OSStatus; external name '_PMSessionPageSetupDialogMain';
  341. {**********************}
  342. { Sheets are not available on classic. }
  343. {**********************}
  344. {
  345. * PMSessionUseSheets()
  346. *
  347. * Availability:
  348. * Non-Carbon CFM: not available
  349. * CarbonLib: in CarbonLib 1.2 and later
  350. * Mac OS X: in version 10.0 and later
  351. }
  352. function PMSessionUseSheets(printSession: PMPrintSession; documentWindow: WindowRef; sheetDoneProc: PMSheetDoneUPP): OSStatus; external name '_PMSessionUseSheets';
  353. {$elsec}
  354. { Print loop }
  355. {
  356. * PMBeginDocument()
  357. *
  358. * Availability:
  359. * Non-Carbon CFM: not available
  360. * CarbonLib: in CarbonLib 1.0 and later
  361. * Mac OS X: in version 10.0 and later
  362. }
  363. function PMBeginDocument(printSettings: PMPrintSettings; pageFormat: PMPageFormat; var printContext: PMPrintContext): OSStatus; external name '_PMBeginDocument';
  364. {
  365. * PMEndDocument()
  366. *
  367. * Availability:
  368. * Non-Carbon CFM: not available
  369. * CarbonLib: in CarbonLib 1.0 and later
  370. * Mac OS X: in version 10.0 and later
  371. }
  372. function PMEndDocument(printContext: PMPrintContext): OSStatus; external name '_PMEndDocument';
  373. {
  374. * PMBeginPage()
  375. *
  376. * Availability:
  377. * Non-Carbon CFM: not available
  378. * CarbonLib: in CarbonLib 1.0 and later
  379. * Mac OS X: in version 10.0 and later
  380. }
  381. function PMBeginPage(printContext: PMPrintContext; const (*var*) pageFrame: PMRect): OSStatus; external name '_PMBeginPage';
  382. {
  383. * PMEndPage()
  384. *
  385. * Availability:
  386. * Non-Carbon CFM: not available
  387. * CarbonLib: in CarbonLib 1.0 and later
  388. * Mac OS X: in version 10.0 and later
  389. }
  390. function PMEndPage(printContext: PMPrintContext): OSStatus; external name '_PMEndPage';
  391. { Printing Dialogs }
  392. {
  393. * PMPageSetupDialog()
  394. *
  395. * Availability:
  396. * Non-Carbon CFM: not available
  397. * CarbonLib: in CarbonLib 1.0 and later
  398. * Mac OS X: in version 10.0 and later
  399. }
  400. function PMPageSetupDialog(pageFormat: PMPageFormat; var accepted: boolean): OSStatus; external name '_PMPageSetupDialog';
  401. {
  402. * PMPrintDialog()
  403. *
  404. * Availability:
  405. * Non-Carbon CFM: not available
  406. * CarbonLib: in CarbonLib 1.0 and later
  407. * Mac OS X: in version 10.0 and later
  408. }
  409. function PMPrintDialog(printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: boolean): OSStatus; external name '_PMPrintDialog';
  410. {
  411. * PMPageSetupDialogInit()
  412. *
  413. * Availability:
  414. * Non-Carbon CFM: not available
  415. * CarbonLib: in CarbonLib 1.0 and later
  416. * Mac OS X: in version 10.0 and later
  417. }
  418. function PMPageSetupDialogInit(pageFormat: PMPageFormat; var newDialog: PMDialog): OSStatus; external name '_PMPageSetupDialogInit';
  419. {**********************}
  420. { PMPrintDialogInit is not recommended. You should instead use }
  421. { PMPrintDialogInitWithPageFormat or PMSessionPrintDialogInit }
  422. {**********************}
  423. {
  424. * PMPrintDialogInit()
  425. *
  426. * Availability:
  427. * Non-Carbon CFM: not available
  428. * CarbonLib: in CarbonLib 1.0 and later
  429. * Mac OS X: in version 10.0 and later
  430. }
  431. function PMPrintDialogInit(printSettings: PMPrintSettings; var newDialog: PMDialog): OSStatus; external name '_PMPrintDialogInit';
  432. {
  433. * PMPrintDialogInitWithPageFormat()
  434. *
  435. * Availability:
  436. * Non-Carbon CFM: not available
  437. * CarbonLib: in CarbonLib 1.1 and later
  438. * Mac OS X: in version 10.0 and later
  439. }
  440. function PMPrintDialogInitWithPageFormat(printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var newDialog: PMDialog): OSStatus; external name '_PMPrintDialogInitWithPageFormat';
  441. {
  442. * PMPrintDialogMain()
  443. *
  444. * Availability:
  445. * Non-Carbon CFM: not available
  446. * CarbonLib: in CarbonLib 1.0 and later
  447. * Mac OS X: in version 10.0 and later
  448. }
  449. function PMPrintDialogMain(printSettings: PMPrintSettings; constPageFormat: PMPageFormat; var accepted: boolean; myInitProc: PMPrintDialogInitUPP): OSStatus; external name '_PMPrintDialogMain';
  450. {
  451. * PMPageSetupDialogMain()
  452. *
  453. * Availability:
  454. * Non-Carbon CFM: not available
  455. * CarbonLib: in CarbonLib 1.0 and later
  456. * Mac OS X: in version 10.0 and later
  457. }
  458. function PMPageSetupDialogMain(pageFormat: PMPageFormat; var accepted: boolean; myInitProc: PMPageSetupDialogInitUPP): OSStatus; external name '_PMPageSetupDialogMain';
  459. {$endc} {PM_USE_SESSION_APIS}
  460. { Printing Dialog accessors }
  461. {
  462. * PMGetDialogPtr()
  463. *
  464. * Availability:
  465. * Non-Carbon CFM: not available
  466. * CarbonLib: in CarbonLib 1.0 and later
  467. * Mac OS X: in version 10.0 and later
  468. }
  469. function PMGetDialogPtr(pmDialog_: PMDialog; var theDialog: DialogRef): OSStatus; external name '_PMGetDialogPtr';
  470. {
  471. * PMGetModalFilterProc()
  472. *
  473. * Availability:
  474. * Non-Carbon CFM: not available
  475. * CarbonLib: in CarbonLib 1.0 and later
  476. * Mac OS X: in version 10.0 and later
  477. }
  478. function PMGetModalFilterProc(pmDialog_: PMDialog; var filterProc: ModalFilterUPP): OSStatus; external name '_PMGetModalFilterProc';
  479. {
  480. * PMSetModalFilterProc()
  481. *
  482. * Availability:
  483. * Non-Carbon CFM: not available
  484. * CarbonLib: in CarbonLib 1.0 and later
  485. * Mac OS X: in version 10.0 and later
  486. }
  487. function PMSetModalFilterProc(pmDialog_: PMDialog; filterProc: ModalFilterUPP): OSStatus; external name '_PMSetModalFilterProc';
  488. {
  489. * PMGetItemProc()
  490. *
  491. * Availability:
  492. * Non-Carbon CFM: not available
  493. * CarbonLib: in CarbonLib 1.0 and later
  494. * Mac OS X: in version 10.0 and later
  495. }
  496. function PMGetItemProc(pmDialog_: PMDialog; var itemProc: PMItemUPP): OSStatus; external name '_PMGetItemProc';
  497. {
  498. * PMSetItemProc()
  499. *
  500. * Availability:
  501. * Non-Carbon CFM: not available
  502. * CarbonLib: in CarbonLib 1.0 and later
  503. * Mac OS X: in version 10.0 and later
  504. }
  505. function PMSetItemProc(pmDialog_: PMDialog; itemProc: PMItemUPP): OSStatus; external name '_PMSetItemProc';
  506. {
  507. * PMGetDialogAccepted()
  508. *
  509. * Availability:
  510. * Non-Carbon CFM: not available
  511. * CarbonLib: in CarbonLib 1.0 and later
  512. * Mac OS X: in version 10.0 and later
  513. }
  514. function PMGetDialogAccepted(pmDialog_: PMDialog; var process: boolean): OSStatus; external name '_PMGetDialogAccepted';
  515. {
  516. * PMSetDialogAccepted()
  517. *
  518. * Availability:
  519. * Non-Carbon CFM: not available
  520. * CarbonLib: in CarbonLib 1.0 and later
  521. * Mac OS X: in version 10.0 and later
  522. }
  523. function PMSetDialogAccepted(pmDialog_: PMDialog; process: boolean): OSStatus; external name '_PMSetDialogAccepted';
  524. {
  525. * PMGetDialogDone()
  526. *
  527. * Availability:
  528. * Non-Carbon CFM: not available
  529. * CarbonLib: in CarbonLib 1.0 and later
  530. * Mac OS X: in version 10.0 and later
  531. }
  532. function PMGetDialogDone(pmDialog_: PMDialog; var done: boolean): OSStatus; external name '_PMGetDialogDone';
  533. {
  534. * PMSetDialogDone()
  535. *
  536. * Availability:
  537. * Non-Carbon CFM: not available
  538. * CarbonLib: in CarbonLib 1.0 and later
  539. * Mac OS X: in version 10.0 and later
  540. }
  541. function PMSetDialogDone(pmDialog_: PMDialog; done: boolean): OSStatus; external name '_PMSetDialogDone';
  542. {$ALIGN MAC68K}
  543. end.