20 #ifndef __DESKTOPPRINTING__
21 #define __DESKTOPPRINTING__
59 #if PRAGMA_STRUCT_ALIGN
60 #pragma options align = mac68k
61 #elif PRAGMA_STRUCT_PACKPUSH
63 #elif PRAGMA_STRUCT_PACK
69 kDTPUnknownPrinterType = -1,
89 kDTPGetPrinterInfo = 23,
90 kDTPIsSamePrinterInfo = 24,
91 kDTPSetDefaultPrinterInfo = 25
131 Str31 dtpDefaultName;
163 kDTPInfoResType = FOUR_CHAR_CODE(
'dtpi'),
164 kDTPInfoResID = -8192
170 kDTPUnknownConnection = 0x00000000,
233 kDTPSignature = FOUR_CHAR_CODE(
'dtpx')
238 aeDTPSetDefaultEventType = FOUR_CHAR_CODE(
241 FOUR_CHAR_CODE(
'pfsc')
256 DTPAsyncErrorNotificationProcPtr)(StringHandle errStr);
262 typedef CALLBACK_API(
void, DTPStatusMessageProcPtr)(StringHandle statusStr);
264 DTPAsyncErrorNotificationUPP;
265 typedef STACK_UPP_TYPE(DTPEndNotificationProcPtr) DTPEndNotificationUPP;
266 typedef STACK_UPP_TYPE(DTPInForegroundProcPtr) DTPInForegroundUPP;
267 typedef STACK_UPP_TYPE(DTPStatusMessageProcPtr) DTPStatusMessageUPP;
268 #if CALL_NOT_IN_CARBON
277 DTPAsyncErrorNotificationUPP
279 #if !OPAQUE_UPP_TYPES
282 uppDTPAsyncErrorNotificationProcInfo = 0x000000C0
285 inline DTPAsyncErrorNotificationUPP
289 (ProcPtr)(userRoutine), uppDTPAsyncErrorNotificationProcInfo,
290 GetCurrentArchitecture());
293 #define NewDTPAsyncErrorNotificationUPP(userRoutine) \
294 (DTPAsyncErrorNotificationUPP) NewRoutineDescriptor( \
295 (ProcPtr)(userRoutine), uppDTPAsyncErrorNotificationProcInfo, \
296 GetCurrentArchitecture())
308 DTPEndNotificationUPP
310 #if !OPAQUE_UPP_TYPES
313 uppDTPEndNotificationProcInfo = 0x00000000
316 inline DTPEndNotificationUPP
320 (ProcPtr)(userRoutine), uppDTPEndNotificationProcInfo,
321 GetCurrentArchitecture());
324 #define NewDTPEndNotificationUPP(userRoutine) \
325 (DTPEndNotificationUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
326 uppDTPEndNotificationProcInfo, \
327 GetCurrentArchitecture())
341 #if !OPAQUE_UPP_TYPES
344 uppDTPInForegroundProcInfo = 0x00000010
347 inline DTPInForegroundUPP
351 uppDTPInForegroundProcInfo,
352 GetCurrentArchitecture());
355 #define NewDTPInForegroundUPP(userRoutine) \
356 (DTPInForegroundUPP) \
357 NewRoutineDescriptor((ProcPtr)(userRoutine), uppDTPInForegroundProcInfo, \
358 GetCurrentArchitecture())
372 #if !OPAQUE_UPP_TYPES
375 uppDTPStatusMessageProcInfo = 0x000000C0
378 inline DTPStatusMessageUPP
382 uppDTPStatusMessageProcInfo,
383 GetCurrentArchitecture());
386 #define NewDTPStatusMessageUPP(userRoutine) \
387 (DTPStatusMessageUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), \
388 uppDTPStatusMessageProcInfo, \
389 GetCurrentArchitecture())
403 #if !OPAQUE_UPP_TYPES
411 #define DisposeDTPAsyncErrorNotificationUPP(userUPP) \
412 DisposeRoutineDescriptor(userUPP)
426 #if !OPAQUE_UPP_TYPES
433 #define DisposeDTPEndNotificationUPP(userUPP) DisposeRoutineDescriptor(userUPP)
447 #if !OPAQUE_UPP_TYPES
454 #define DisposeDTPInForegroundUPP(userUPP) DisposeRoutineDescriptor(userUPP)
468 #if !OPAQUE_UPP_TYPES
475 #define DisposeDTPStatusMessageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
489 DTPAsyncErrorNotificationUPP userUPP);
490 #if !OPAQUE_UPP_TYPES
494 DTPAsyncErrorNotificationUPP userUPP)
496 CALL_ONE_PARAMETER_UPP(userUPP, uppDTPAsyncErrorNotificationProcInfo, errStr);
499 #define InvokeDTPAsyncErrorNotificationUPP(errStr, userUPP) \
500 CALL_ONE_PARAMETER_UPP((userUPP), uppDTPAsyncErrorNotificationProcInfo, \
515 #if !OPAQUE_UPP_TYPES
522 #define InvokeDTPEndNotificationUPP(userUPP) \
523 CALL_ZERO_PARAMETER_UPP((userUPP), uppDTPEndNotificationProcInfo)
537 #if !OPAQUE_UPP_TYPES
544 #define InvokeDTPInForegroundUPP(userUPP) \
545 (Boolean) CALL_ZERO_PARAMETER_UPP((userUPP), uppDTPInForegroundProcInfo)
559 #if !OPAQUE_UPP_TYPES
562 DTPStatusMessageUPP userUPP)
564 CALL_ONE_PARAMETER_UPP(userUPP, uppDTPStatusMessageProcInfo, statusStr);
567 #define InvokeDTPStatusMessageUPP(statusStr, userUPP) \
568 CALL_ONE_PARAMETER_UPP((userUPP), uppDTPStatusMessageProcInfo, (statusStr))
574 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
576 #define NewDTPAsyncErrorNotificationProc(userRoutine) \
577 NewDTPAsyncErrorNotificationUPP(userRoutine)
578 #define NewDTPEndNotificationProc(userRoutine) \
579 NewDTPEndNotificationUPP(userRoutine)
580 #define NewDTPInForegroundProc(userRoutine) NewDTPInForegroundUPP(userRoutine)
581 #define NewDTPStatusMessageProc(userRoutine) NewDTPStatusMessageUPP(userRoutine)
582 #define CallDTPAsyncErrorNotificationProc(userRoutine, errStr) \
583 InvokeDTPAsyncErrorNotificationUPP(errStr, userRoutine)
584 #define CallDTPEndNotificationProc(userRoutine) \
585 InvokeDTPEndNotificationUPP(userRoutine)
586 #define CallDTPInForegroundProc(userRoutine) \
587 InvokeDTPInForegroundUPP(userRoutine)
588 #define CallDTPStatusMessageProc(userRoutine, statusStr) \
589 InvokeDTPStatusMessageUPP(statusStr, userRoutine)
596 kPrintMonitorPrGeneral = -3
612 DTPAsyncErrorNotificationUPP
613 pAsyncNotificationProc;
614 DTPEndNotificationUPP
632 DTPAsyncErrorNotificationUPP
633 pAsyncNotificationProc;
634 DTPEndNotificationUPP
699 kDTPPrintJobUrgent = 0x00000001,
700 kDTPPrintJobAtTime = 0x00000002,
701 kDTPPrintJobNormal = 0x00000003,
702 kDTPPrintJobHolding = 0x00001003
707 short firstPageToPrint;
723 #if PRAGMA_STRUCT_ALIGN
724 #pragma options align = reset
725 #elif PRAGMA_STRUCT_PACKPUSH
727 #elif PRAGMA_STRUCT_PACK
731 #ifdef PRAGMA_IMPORT_OFF
#define NewDTPAsyncErrorNotificationUPP(userRoutine)
Definition: DesktopPrinting.h:293
@ kDTPSCSIConnection
Definition: DesktopPrinting.h:172
@ kDTPSerialConnection
Definition: DesktopPrinting.h:171
@ kDTPTCPIPConnection
Definition: DesktopPrinting.h:174
@ kDTPAppleTalkConnection
Definition: DesktopPrinting.h:173
@ kDTPUSBConnection
Definition: DesktopPrinting.h:175
void DisposeDTPInForegroundUPP(DTPInForegroundUPP userUPP)
#define NewDTPEndNotificationUPP(userRoutine)
Definition: DesktopPrinting.h:324
void InvokeDTPStatusMessageUPP(StringHandle statusStr, DTPStatusMessageUPP userUPP)
Boolean InvokeDTPInForegroundUPP(DTPInForegroundUPP userUPP)
typedef CALLBACK_API(void, DTPAsyncErrorNotificationProcPtr)(StringHandle errStr)
void DisposeDTPAsyncErrorNotificationUPP(DTPAsyncErrorNotificationUPP userUPP)
void DisposeDTPEndNotificationUPP(DTPEndNotificationUPP userUPP)
@ kDTPGestaltStructVersion3
Definition: DesktopPrinting.h:200
@ kDTPGestaltStructVersion2
Definition: DesktopPrinting.h:198
void InvokeDTPEndNotificationUPP(DTPEndNotificationUPP userUPP)
void InvokeDTPAsyncErrorNotificationUPP(StringHandle errStr, DTPAsyncErrorNotificationUPP userUPP)
@ kDTPModemPort
Definition: DesktopPrinting.h:83
@ kDTPPrinterPort
Definition: DesktopPrinting.h:82
void DisposeDTPStatusMessageUPP(DTPStatusMessageUPP userUPP)
#define NewDTPInForegroundUPP(userRoutine)
Definition: DesktopPrinting.h:355
#define NewDTPStatusMessageUPP(userRoutine)
Definition: DesktopPrinting.h:386
@ kDTPSerialPrinterType
Definition: DesktopPrinting.h:70
@ kDTPUSBPrinterType
Definition: DesktopPrinting.h:74
@ kDTPSCSIPrinterType
Definition: DesktopPrinting.h:73
@ kDTPAppleTalkPrinterType
Definition: DesktopPrinting.h:71
@ kDTPTCPIPPrinterType
Definition: DesktopPrinting.h:72
@ aeDTPSyncEventType
Definition: DesktopPrinting.h:240
File Manager (MFS, HFS, and HFS+) Interfaces.
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
#define CALL_ZERO_PARAMETER_UPP(upp, procInfo)
Definition: MixedMode.h:790
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Print Manager Interfaces.
Interface to Quickdraw Graphics.
Definition: DesktopPrinting.h:247
FSSpec dtpSpec
Definition: DesktopPrinting.h:250
OSType dtpEventType
Definition: DesktopPrinting.h:249
Definition: DesktopPrinting.h:103
Definition: DesktopPrinting.h:186
long connectionType
Definition: DesktopPrinting.h:189
Definition: DesktopPrinting.h:205
long dirID
Definition: DesktopPrinting.h:207
OSType driverType
Definition: DesktopPrinting.h:209
Str31 dtpName
Definition: DesktopPrinting.h:208
Boolean current
Definition: DesktopPrinting.h:210
Str32 printerName
Definition: DesktopPrinting.h:211
Str32 zoneName
Definition: DesktopPrinting.h:213
Definition: DesktopPrinting.h:706
Str31 documentName
Definition: DesktopPrinting.h:713
unsigned long timeToPrint
Definition: DesktopPrinting.h:711
short numCopies
Definition: DesktopPrinting.h:709
Str32 printerName
Definition: DesktopPrinting.h:716
Str31 applicationName
Definition: DesktopPrinting.h:714
short numPages
Definition: DesktopPrinting.h:710
short priority
Definition: DesktopPrinting.h:708
Definition: DesktopPrinting.h:130
union DTPPrinterInfo::@895 u
short printerType
Definition: DesktopPrinting.h:132
Definition: DesktopPrinting.h:118
Definition: DesktopPrinting.h:96
Str31 portName
Definition: DesktopPrinting.h:98
Definition: DesktopPrinting.h:111
Definition: DesktopPrinting.h:124
Definition: DesktopPrinting.h:219
Handle theDTPList
Definition: DesktopPrinting.h:222
long reserved
Definition: DesktopPrinting.h:225
Handle theDTPDriverList
Definition: DesktopPrinting.h:223
short numDTPs
Definition: DesktopPrinting.h:221
Definition: Quickdraw.h:326
Definition: PPCToolbox.h:168
Definition: DesktopPrinting.h:670
short flags
Definition: DesktopPrinting.h:672
short numPages
Definition: DesktopPrinting.h:673
short numCopies
Definition: DesktopPrinting.h:674
OSType creator
Definition: DesktopPrinting.h:675
Str31 appName
Definition: DesktopPrinting.h:677
Definition: DesktopPrinting.h:684
long pageOffset[1]
Definition: DesktopPrinting.h:686
Definition: DesktopPrinting.h:659
long pageOffset
Definition: DesktopPrinting.h:662
Picture thePict
Definition: DesktopPrinting.h:661
Definition: DesktopPrinting.h:152
short iError
Definition: DesktopPrinting.h:155
Definition: DesktopPrinting.h:625
short iError
Definition: DesktopPrinting.h:627
DTPInForegroundUPP pInForegroundProc
Definition: DesktopPrinting.h:637
DTPEndNotificationUPP pAsyncEndnotifyProc
Definition: DesktopPrinting.h:635
THPrint hPrint
Definition: DesktopPrinting.h:629
long iReserved2
Definition: DesktopPrinting.h:631
DTPStatusMessageUPP pStatusMessageProc
Definition: DesktopPrinting.h:639
Definition: DesktopPrinting.h:605
DTPEndNotificationUPP pAsyncEndnotifyProc
Definition: DesktopPrinting.h:615
long iReserved2
Definition: DesktopPrinting.h:611
short iError
Definition: DesktopPrinting.h:607
THPrint hPrint
Definition: DesktopPrinting.h:609
DTPInForegroundUPP pDTPInForegroundProc
Definition: DesktopPrinting.h:617
Definition: Printing.h:374