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