GXPrinting.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:222k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. #define NewGXJobStatusProc(userRoutine)                         NewGXJobStatusUPP(userRoutine)
  2. #define CallGXJobStatusProc(userRoutine, pStatus)               InvokeGXJobStatusUPP(pStatus, userRoutine)
  3. #define Send_GXJobStatus(pStatus) 
  4.           MacSendMessage(0x00000003, pStatus)
  5.  
  6. #define Forward_GXJobStatus(pStatus) 
  7.           ForwardThisMessage((void *) (pStatus))
  8. typedef CALLBACK_API_C( OSErr , GXPrintingEventProcPtr )(EventRecord *evtRecord, Boolean filterEvent);
  9. typedef STACK_UPP_TYPE(GXPrintingEventProcPtr)                  GXPrintingEventUPP;
  10. #if OPAQUE_UPP_TYPES
  11. #if CALL_NOT_IN_CARBON
  12.     EXTERN_API(GXPrintingEventUPP)
  13.     NewGXPrintingEventUPP          (GXPrintingEventProcPtr  userRoutine);
  14.     EXTERN_API(void)
  15.     DisposeGXPrintingEventUPP      (GXPrintingEventUPP      userUPP);
  16.     EXTERN_API(OSErr)
  17.     InvokeGXPrintingEventUPP       (EventRecord *           evtRecord,
  18.                                     Boolean                 filterEvent,
  19.                                     GXPrintingEventUPP      userUPP);
  20. #endif  /* CALL_NOT_IN_CARBON */
  21. #else
  22.     enum { uppGXPrintingEventProcInfo = 0x000001E1 };               /* 2_bytes Func(4_bytes, 1_byte) */
  23.     #define NewGXPrintingEventUPP(userRoutine)                      (GXPrintingEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXPrintingEventProcInfo, GetCurrentArchitecture())
  24.     #define DisposeGXPrintingEventUPP(userUPP)                      DisposeRoutineDescriptor(userUPP)
  25.     #define InvokeGXPrintingEventUPP(evtRecord, filterEvent, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXPrintingEventProcInfo, (evtRecord), (filterEvent))
  26. #endif
  27. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  28. #define NewGXPrintingEventProc(userRoutine)                     NewGXPrintingEventUPP(userRoutine)
  29. #define CallGXPrintingEventProc(userRoutine, evtRecord, filterEvent) InvokeGXPrintingEventUPP(evtRecord, filterEvent, userRoutine)
  30. #define Send_GXPrintingEvent(evtRecord, filterEvent) 
  31.           MacSendMessage(0x00000004, evtRecord, filterEvent)
  32.  
  33. #define Forward_GXPrintingEvent(evtRecord, filterEvent) 
  34.           ForwardThisMessage((void *) (evtRecord), (void *) (filterEvent))
  35. typedef CALLBACK_API_C( OSErr , GXJobDefaultFormatDialogProcPtr )(gxDialogResult *dlgResult);
  36. typedef STACK_UPP_TYPE(GXJobDefaultFormatDialogProcPtr)         GXJobDefaultFormatDialogUPP;
  37. #if OPAQUE_UPP_TYPES
  38. #if CALL_NOT_IN_CARBON
  39.     EXTERN_API(GXJobDefaultFormatDialogUPP)
  40.     NewGXJobDefaultFormatDialogUPP    (GXJobDefaultFormatDialogProcPtr userRoutine);
  41.     EXTERN_API(void)
  42.     DisposeGXJobDefaultFormatDialogUPP    (GXJobDefaultFormatDialogUPP userUPP);
  43.     EXTERN_API(OSErr)
  44.     InvokeGXJobDefaultFormatDialogUPP    (gxDialogResult *  dlgResult,
  45.                                     GXJobDefaultFormatDialogUPP userUPP);
  46. #endif  /* CALL_NOT_IN_CARBON */
  47. #else
  48.     enum { uppGXJobDefaultFormatDialogProcInfo = 0x000000E1 };      /* 2_bytes Func(4_bytes) */
  49.     #define NewGXJobDefaultFormatDialogUPP(userRoutine)             (GXJobDefaultFormatDialogUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobDefaultFormatDialogProcInfo, GetCurrentArchitecture())
  50.     #define DisposeGXJobDefaultFormatDialogUPP(userUPP)             DisposeRoutineDescriptor(userUPP)
  51.     #define InvokeGXJobDefaultFormatDialogUPP(dlgResult, userUPP)   (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXJobDefaultFormatDialogProcInfo, (dlgResult))
  52. #endif
  53. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  54. #define NewGXJobDefaultFormatDialogProc(userRoutine)            NewGXJobDefaultFormatDialogUPP(userRoutine)
  55. #define CallGXJobDefaultFormatDialogProc(userRoutine, dlgResult) InvokeGXJobDefaultFormatDialogUPP(dlgResult, userRoutine)
  56. #define Send_GXJobDefaultFormatDialog(dlgResult) 
  57.           MacSendMessage(0x00000005, dlgResult)
  58.  
  59. #define Forward_GXJobDefaultFormatDialog(dlgResult) 
  60.           ForwardThisMessage((void *) (dlgResult))
  61. typedef CALLBACK_API_C( OSErr , GXFormatDialogProcPtr )(gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult);
  62. typedef STACK_UPP_TYPE(GXFormatDialogProcPtr)                   GXFormatDialogUPP;
  63. #if OPAQUE_UPP_TYPES
  64. #if CALL_NOT_IN_CARBON
  65.     EXTERN_API(GXFormatDialogUPP)
  66.     NewGXFormatDialogUPP           (GXFormatDialogProcPtr   userRoutine);
  67.     EXTERN_API(void)
  68.     DisposeGXFormatDialogUPP       (GXFormatDialogUPP       userUPP);
  69.     EXTERN_API(OSErr)
  70.     InvokeGXFormatDialogUPP        (gxFormat                theFormat,
  71.                                     StringPtr               title,
  72.                                     gxDialogResult *        dlgResult,
  73.                                     GXFormatDialogUPP       userUPP);
  74. #endif  /* CALL_NOT_IN_CARBON */
  75. #else
  76.     enum { uppGXFormatDialogProcInfo = 0x00000FE1 };                /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  77.     #define NewGXFormatDialogUPP(userRoutine)                       (GXFormatDialogUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFormatDialogProcInfo, GetCurrentArchitecture())
  78.     #define DisposeGXFormatDialogUPP(userUPP)                       DisposeRoutineDescriptor(userUPP)
  79.     #define InvokeGXFormatDialogUPP(theFormat, title, dlgResult, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXFormatDialogProcInfo, (theFormat), (title), (dlgResult))
  80. #endif
  81. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  82. #define NewGXFormatDialogProc(userRoutine)                      NewGXFormatDialogUPP(userRoutine)
  83. #define CallGXFormatDialogProc(userRoutine, theFormat, title, dlgResult) InvokeGXFormatDialogUPP(theFormat, title, dlgResult, userRoutine)
  84. #define Send_GXFormatDialog(theFormat, title, dlgResult) 
  85.           MacSendMessage(0x00000006, theFormat, title, dlgResult)
  86.  
  87. #define Forward_GXFormatDialog(theFormat, title, dlgResult) 
  88.           ForwardThisMessage((void *) (theFormat),(void *) (title),(void *) (dlgResult))
  89. typedef CALLBACK_API_C( OSErr , GXJobPrintDialogProcPtr )(gxDialogResult *dlgResult);
  90. typedef STACK_UPP_TYPE(GXJobPrintDialogProcPtr)                 GXJobPrintDialogUPP;
  91. #if OPAQUE_UPP_TYPES
  92. #if CALL_NOT_IN_CARBON
  93.     EXTERN_API(GXJobPrintDialogUPP)
  94.     NewGXJobPrintDialogUPP         (GXJobPrintDialogProcPtr userRoutine);
  95.     EXTERN_API(void)
  96.     DisposeGXJobPrintDialogUPP     (GXJobPrintDialogUPP     userUPP);
  97.     EXTERN_API(OSErr)
  98.     InvokeGXJobPrintDialogUPP      (gxDialogResult *        dlgResult,
  99.                                     GXJobPrintDialogUPP     userUPP);
  100. #endif  /* CALL_NOT_IN_CARBON */
  101. #else
  102.     enum { uppGXJobPrintDialogProcInfo = 0x000000E1 };              /* 2_bytes Func(4_bytes) */
  103.     #define NewGXJobPrintDialogUPP(userRoutine)                     (GXJobPrintDialogUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobPrintDialogProcInfo, GetCurrentArchitecture())
  104.     #define DisposeGXJobPrintDialogUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  105.     #define InvokeGXJobPrintDialogUPP(dlgResult, userUPP)           (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXJobPrintDialogProcInfo, (dlgResult))
  106. #endif
  107. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  108. #define NewGXJobPrintDialogProc(userRoutine)                    NewGXJobPrintDialogUPP(userRoutine)
  109. #define CallGXJobPrintDialogProc(userRoutine, dlgResult)        InvokeGXJobPrintDialogUPP(dlgResult, userRoutine)
  110. #define Send_GXJobPrintDialog(dlgResult) 
  111.           MacSendMessage(0x00000007, dlgResult)
  112.  
  113. #define Forward_GXJobPrintDialog(dlgResult) 
  114.           ForwardThisMessage((void *) (dlgResult))
  115. typedef CALLBACK_API_C( OSErr , GXFilterPanelEventProcPtr )(gxPanelInfoRecord *pHitInfo, Boolean *returnImmed);
  116. typedef STACK_UPP_TYPE(GXFilterPanelEventProcPtr)               GXFilterPanelEventUPP;
  117. #if OPAQUE_UPP_TYPES
  118. #if CALL_NOT_IN_CARBON
  119.     EXTERN_API(GXFilterPanelEventUPP)
  120.     NewGXFilterPanelEventUPP       (GXFilterPanelEventProcPtr userRoutine);
  121.     EXTERN_API(void)
  122.     DisposeGXFilterPanelEventUPP    (GXFilterPanelEventUPP  userUPP);
  123.     EXTERN_API(OSErr)
  124.     InvokeGXFilterPanelEventUPP    (gxPanelInfoRecord *     pHitInfo,
  125.                                     Boolean *               returnImmed,
  126.                                     GXFilterPanelEventUPP   userUPP);
  127. #endif  /* CALL_NOT_IN_CARBON */
  128. #else
  129.     enum { uppGXFilterPanelEventProcInfo = 0x000003E1 };            /* 2_bytes Func(4_bytes, 4_bytes) */
  130.     #define NewGXFilterPanelEventUPP(userRoutine)                   (GXFilterPanelEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFilterPanelEventProcInfo, GetCurrentArchitecture())
  131.     #define DisposeGXFilterPanelEventUPP(userUPP)                   DisposeRoutineDescriptor(userUPP)
  132.     #define InvokeGXFilterPanelEventUPP(pHitInfo, returnImmed, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXFilterPanelEventProcInfo, (pHitInfo), (returnImmed))
  133. #endif
  134. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  135. #define NewGXFilterPanelEventProc(userRoutine)                  NewGXFilterPanelEventUPP(userRoutine)
  136. #define CallGXFilterPanelEventProc(userRoutine, pHitInfo, returnImmed) InvokeGXFilterPanelEventUPP(pHitInfo, returnImmed, userRoutine)
  137. #define Send_GXFilterPanelEvent(pHitInfo, returnImmed) 
  138.           MacSendMessage(0x00000008, pHitInfo, returnImmed)
  139. typedef CALLBACK_API_C( OSErr , GXHandlePanelEventProcPtr )(gxPanelInfoRecord *pHitInfo, gxPanelResult *panelResponse);
  140. typedef STACK_UPP_TYPE(GXHandlePanelEventProcPtr)               GXHandlePanelEventUPP;
  141. #if OPAQUE_UPP_TYPES
  142. #if CALL_NOT_IN_CARBON
  143.     EXTERN_API(GXHandlePanelEventUPP)
  144.     NewGXHandlePanelEventUPP       (GXHandlePanelEventProcPtr userRoutine);
  145.     EXTERN_API(void)
  146.     DisposeGXHandlePanelEventUPP    (GXHandlePanelEventUPP  userUPP);
  147.     EXTERN_API(OSErr)
  148.     InvokeGXHandlePanelEventUPP    (gxPanelInfoRecord *     pHitInfo,
  149.                                     gxPanelResult *         panelResponse,
  150.                                     GXHandlePanelEventUPP   userUPP);
  151. #endif  /* CALL_NOT_IN_CARBON */
  152. #else
  153.     enum { uppGXHandlePanelEventProcInfo = 0x000003E1 };            /* 2_bytes Func(4_bytes, 4_bytes) */
  154.     #define NewGXHandlePanelEventUPP(userRoutine)                   (GXHandlePanelEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandlePanelEventProcInfo, GetCurrentArchitecture())
  155.     #define DisposeGXHandlePanelEventUPP(userUPP)                   DisposeRoutineDescriptor(userUPP)
  156.     #define InvokeGXHandlePanelEventUPP(pHitInfo, panelResponse, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXHandlePanelEventProcInfo, (pHitInfo), (panelResponse))
  157. #endif
  158. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  159. #define NewGXHandlePanelEventProc(userRoutine)                  NewGXHandlePanelEventUPP(userRoutine)
  160. #define CallGXHandlePanelEventProc(userRoutine, pHitInfo, panelResponse) InvokeGXHandlePanelEventUPP(pHitInfo, panelResponse, userRoutine)
  161. #define Send_GXHandlePanelEvent(pHitInfo, panelResponse) 
  162.           MacSendMessage(0x00000009, pHitInfo, panelResponse)
  163. typedef CALLBACK_API_C( OSErr , GXParsePageRangeProcPtr )(StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result);
  164. typedef STACK_UPP_TYPE(GXParsePageRangeProcPtr)                 GXParsePageRangeUPP;
  165. #if OPAQUE_UPP_TYPES
  166. #if CALL_NOT_IN_CARBON
  167.     EXTERN_API(GXParsePageRangeUPP)
  168.     NewGXParsePageRangeUPP         (GXParsePageRangeProcPtr userRoutine);
  169.     EXTERN_API(void)
  170.     DisposeGXParsePageRangeUPP     (GXParsePageRangeUPP     userUPP);
  171.     EXTERN_API(OSErr)
  172.     InvokeGXParsePageRangeUPP      (StringPtr               fromString,
  173.                                     StringPtr               toString,
  174.                                     gxParsePageRangeResult * result,
  175.                                     GXParsePageRangeUPP     userUPP);
  176. #endif  /* CALL_NOT_IN_CARBON */
  177. #else
  178.     enum { uppGXParsePageRangeProcInfo = 0x00000FE1 };              /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  179.     #define NewGXParsePageRangeUPP(userRoutine)                     (GXParsePageRangeUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXParsePageRangeProcInfo, GetCurrentArchitecture())
  180.     #define DisposeGXParsePageRangeUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  181.     #define InvokeGXParsePageRangeUPP(fromString, toString, result, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXParsePageRangeProcInfo, (fromString), (toString), (result))
  182. #endif
  183. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  184. #define NewGXParsePageRangeProc(userRoutine)                    NewGXParsePageRangeUPP(userRoutine)
  185. #define CallGXParsePageRangeProc(userRoutine, fromString, toString, result) InvokeGXParsePageRangeUPP(fromString, toString, result, userRoutine)
  186. #define Send_GXParsePageRange(fromString, toString, result) 
  187.           MacSendMessage(0x0000000A, fromString, toString, result)
  188.  
  189. #define Forward_GXParsePageRange(fromString, toString, result) 
  190.           ForwardThisMessage((void *) (fromString), (void *) (toString), (void *) (result))
  191. typedef CALLBACK_API_C( OSErr , GXDefaultJobProcPtr )(void );
  192. typedef STACK_UPP_TYPE(GXDefaultJobProcPtr)                     GXDefaultJobUPP;
  193. #if OPAQUE_UPP_TYPES
  194. #if CALL_NOT_IN_CARBON
  195.     EXTERN_API(GXDefaultJobUPP)
  196.     NewGXDefaultJobUPP             (GXDefaultJobProcPtr     userRoutine);
  197.     EXTERN_API(void)
  198.     DisposeGXDefaultJobUPP         (GXDefaultJobUPP         userUPP);
  199.     EXTERN_API(OSErr)
  200.     InvokeGXDefaultJobUPP          (GXDefaultJobUPP         userUPP);
  201. #endif  /* CALL_NOT_IN_CARBON */
  202. #else
  203.     enum { uppGXDefaultJobProcInfo = 0x00000021 };                  /* 2_bytes Func() */
  204.     #define NewGXDefaultJobUPP(userRoutine)                         (GXDefaultJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultJobProcInfo, GetCurrentArchitecture())
  205.     #define DisposeGXDefaultJobUPP(userUPP)                         DisposeRoutineDescriptor(userUPP)
  206.     #define InvokeGXDefaultJobUPP(userUPP)                          (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXDefaultJobProcInfo)
  207. #endif
  208. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  209. #define NewGXDefaultJobProc(userRoutine)                        NewGXDefaultJobUPP(userRoutine)
  210. #define CallGXDefaultJobProc(userRoutine)                       InvokeGXDefaultJobUPP(userRoutine)
  211. #define Send_GXDefaultJob() MacSendMessage(0x0000000B)
  212. #define Forward_GXDefaultJob() ForwardThisMessage((void *) (0))
  213. typedef CALLBACK_API_C( OSErr , GXDefaultFormatProcPtr )(gxFormat theFormat);
  214. typedef STACK_UPP_TYPE(GXDefaultFormatProcPtr)                  GXDefaultFormatUPP;
  215. #if OPAQUE_UPP_TYPES
  216. #if CALL_NOT_IN_CARBON
  217.     EXTERN_API(GXDefaultFormatUPP)
  218.     NewGXDefaultFormatUPP          (GXDefaultFormatProcPtr  userRoutine);
  219.     EXTERN_API(void)
  220.     DisposeGXDefaultFormatUPP      (GXDefaultFormatUPP      userUPP);
  221.     EXTERN_API(OSErr)
  222.     InvokeGXDefaultFormatUPP       (gxFormat                theFormat,
  223.                                     GXDefaultFormatUPP      userUPP);
  224. #endif  /* CALL_NOT_IN_CARBON */
  225. #else
  226.     enum { uppGXDefaultFormatProcInfo = 0x000000E1 };               /* 2_bytes Func(4_bytes) */
  227.     #define NewGXDefaultFormatUPP(userRoutine)                      (GXDefaultFormatUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultFormatProcInfo, GetCurrentArchitecture())
  228.     #define DisposeGXDefaultFormatUPP(userUPP)                      DisposeRoutineDescriptor(userUPP)
  229.     #define InvokeGXDefaultFormatUPP(theFormat, userUPP)            (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDefaultFormatProcInfo, (theFormat))
  230. #endif
  231. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  232. #define NewGXDefaultFormatProc(userRoutine)                     NewGXDefaultFormatUPP(userRoutine)
  233. #define CallGXDefaultFormatProc(userRoutine, theFormat)         InvokeGXDefaultFormatUPP(theFormat, userRoutine)
  234. #define Send_GXDefaultFormat(theFormat) 
  235.           MacSendMessage(0x0000000C, theFormat)
  236.  
  237. #define Forward_GXDefaultFormat(theFormat) 
  238.           ForwardThisMessage((void *) (theFormat))
  239. typedef CALLBACK_API_C( OSErr , GXDefaultPaperTypeProcPtr )(gxPaperType thePaperType);
  240. typedef STACK_UPP_TYPE(GXDefaultPaperTypeProcPtr)               GXDefaultPaperTypeUPP;
  241. #if OPAQUE_UPP_TYPES
  242. #if CALL_NOT_IN_CARBON
  243.     EXTERN_API(GXDefaultPaperTypeUPP)
  244.     NewGXDefaultPaperTypeUPP       (GXDefaultPaperTypeProcPtr userRoutine);
  245.     EXTERN_API(void)
  246.     DisposeGXDefaultPaperTypeUPP    (GXDefaultPaperTypeUPP  userUPP);
  247.     EXTERN_API(OSErr)
  248.     InvokeGXDefaultPaperTypeUPP    (gxPaperType             thePaperType,
  249.                                     GXDefaultPaperTypeUPP   userUPP);
  250. #endif  /* CALL_NOT_IN_CARBON */
  251. #else
  252.     enum { uppGXDefaultPaperTypeProcInfo = 0x000000E1 };            /* 2_bytes Func(4_bytes) */
  253.     #define NewGXDefaultPaperTypeUPP(userRoutine)                   (GXDefaultPaperTypeUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultPaperTypeProcInfo, GetCurrentArchitecture())
  254.     #define DisposeGXDefaultPaperTypeUPP(userUPP)                   DisposeRoutineDescriptor(userUPP)
  255.     #define InvokeGXDefaultPaperTypeUPP(thePaperType, userUPP)      (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDefaultPaperTypeProcInfo, (thePaperType))
  256. #endif
  257. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  258. #define NewGXDefaultPaperTypeProc(userRoutine)                  NewGXDefaultPaperTypeUPP(userRoutine)
  259. #define CallGXDefaultPaperTypeProc(userRoutine, thePaperType)   InvokeGXDefaultPaperTypeUPP(thePaperType, userRoutine)
  260. #define Send_GXDefaultPaperType(thePaperType) 
  261.           MacSendMessage(0x0000000D, thePaperType)
  262.  
  263. #define Forward_GXDefaultPaperType(thePaperType) 
  264.           ForwardThisMessage((void *) thePaperType)
  265. typedef CALLBACK_API_C( OSErr , GXDefaultPrinterProcPtr )(gxPrinter thePrinter);
  266. typedef STACK_UPP_TYPE(GXDefaultPrinterProcPtr)                 GXDefaultPrinterUPP;
  267. #if OPAQUE_UPP_TYPES
  268. #if CALL_NOT_IN_CARBON
  269.     EXTERN_API(GXDefaultPrinterUPP)
  270.     NewGXDefaultPrinterUPP         (GXDefaultPrinterProcPtr userRoutine);
  271.     EXTERN_API(void)
  272.     DisposeGXDefaultPrinterUPP     (GXDefaultPrinterUPP     userUPP);
  273.     EXTERN_API(OSErr)
  274.     InvokeGXDefaultPrinterUPP      (gxPrinter               thePrinter,
  275.                                     GXDefaultPrinterUPP     userUPP);
  276. #endif  /* CALL_NOT_IN_CARBON */
  277. #else
  278.     enum { uppGXDefaultPrinterProcInfo = 0x000000E1 };              /* 2_bytes Func(4_bytes) */
  279.     #define NewGXDefaultPrinterUPP(userRoutine)                     (GXDefaultPrinterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultPrinterProcInfo, GetCurrentArchitecture())
  280.     #define DisposeGXDefaultPrinterUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  281.     #define InvokeGXDefaultPrinterUPP(thePrinter, userUPP)          (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDefaultPrinterProcInfo, (thePrinter))
  282. #endif
  283. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  284. #define NewGXDefaultPrinterProc(userRoutine)                    NewGXDefaultPrinterUPP(userRoutine)
  285. #define CallGXDefaultPrinterProc(userRoutine, thePrinter)       InvokeGXDefaultPrinterUPP(thePrinter, userRoutine)
  286. #define Send_GXDefaultPrinter(thePrinter) 
  287.           MacSendMessage(0x0000000E, thePrinter)
  288.  
  289. #define Forward_GXDefaultPrinter(thePrinter) 
  290.           ForwardThisMessage((void *) thePrinter)
  291. typedef CALLBACK_API_C( OSErr , GXCreateSpoolFileProcPtr )(FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile);
  292. typedef STACK_UPP_TYPE(GXCreateSpoolFileProcPtr)                GXCreateSpoolFileUPP;
  293. #if OPAQUE_UPP_TYPES
  294. #if CALL_NOT_IN_CARBON
  295.     EXTERN_API(GXCreateSpoolFileUPP)
  296.     NewGXCreateSpoolFileUPP        (GXCreateSpoolFileProcPtr userRoutine);
  297.     EXTERN_API(void)
  298.     DisposeGXCreateSpoolFileUPP    (GXCreateSpoolFileUPP    userUPP);
  299.     EXTERN_API(OSErr)
  300.     InvokeGXCreateSpoolFileUPP     (FSSpecPtr               pFileSpec,
  301.                                     long                    createOptions,
  302.                                     gxSpoolFile *           theSpoolFile,
  303.                                     GXCreateSpoolFileUPP    userUPP);
  304. #endif  /* CALL_NOT_IN_CARBON */
  305. #else
  306.     enum { uppGXCreateSpoolFileProcInfo = 0x00000FE1 };             /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  307.     #define NewGXCreateSpoolFileUPP(userRoutine)                    (GXCreateSpoolFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCreateSpoolFileProcInfo, GetCurrentArchitecture())
  308.     #define DisposeGXCreateSpoolFileUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
  309.     #define InvokeGXCreateSpoolFileUPP(pFileSpec, createOptions, theSpoolFile, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXCreateSpoolFileProcInfo, (pFileSpec), (createOptions), (theSpoolFile))
  310. #endif
  311. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  312. #define NewGXCreateSpoolFileProc(userRoutine)                   NewGXCreateSpoolFileUPP(userRoutine)
  313. #define CallGXCreateSpoolFileProc(userRoutine, pFileSpec, createOptions, theSpoolFile) InvokeGXCreateSpoolFileUPP(pFileSpec, createOptions, theSpoolFile, userRoutine)
  314. #define Send_GXCreateSpoolFile(pFileSpec, createOptions, theSpoolFile) 
  315.           MacSendMessage(0x0000000F, pFileSpec, createOptions, 
  316.                           theSpoolFile)
  317.  
  318. #define Forward_GXCreateSpoolFile(pFileSpec, createOptions, theSpoolFile) 
  319.           ForwardThisMessage((void *) pFileSpec, (void *) (createOptions), (void *) theSpoolFile)
  320. typedef CALLBACK_API_C( OSErr , GXSpoolPageProcPtr )(gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage);
  321. typedef STACK_UPP_TYPE(GXSpoolPageProcPtr)                      GXSpoolPageUPP;
  322. #if OPAQUE_UPP_TYPES
  323. #if CALL_NOT_IN_CARBON
  324.     EXTERN_API(GXSpoolPageUPP)
  325.     NewGXSpoolPageUPP              (GXSpoolPageProcPtr      userRoutine);
  326.     EXTERN_API(void)
  327.     DisposeGXSpoolPageUPP          (GXSpoolPageUPP          userUPP);
  328.     EXTERN_API(OSErr)
  329.     InvokeGXSpoolPageUPP           (gxSpoolFile             theSpoolFile,
  330.                                     gxFormat                theFormat,
  331.                                     gxShape                 thePage,
  332.                                     GXSpoolPageUPP          userUPP);
  333. #endif  /* CALL_NOT_IN_CARBON */
  334. #else
  335.     enum { uppGXSpoolPageProcInfo = 0x00000FE1 };                   /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  336.     #define NewGXSpoolPageUPP(userRoutine)                          (GXSpoolPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolPageProcInfo, GetCurrentArchitecture())
  337.     #define DisposeGXSpoolPageUPP(userUPP)                          DisposeRoutineDescriptor(userUPP)
  338.     #define InvokeGXSpoolPageUPP(theSpoolFile, theFormat, thePage, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSpoolPageProcInfo, (theSpoolFile), (theFormat), (thePage))
  339. #endif
  340. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  341. #define NewGXSpoolPageProc(userRoutine)                         NewGXSpoolPageUPP(userRoutine)
  342. #define CallGXSpoolPageProc(userRoutine, theSpoolFile, theFormat, thePage) InvokeGXSpoolPageUPP(theSpoolFile, theFormat, thePage, userRoutine)
  343. #define Send_GXSpoolPage(theSpoolFile, theFormat, thePage) 
  344.           MacSendMessage(0x00000010, theSpoolFile, theFormat, thePage)
  345.  
  346. #define Forward_GXSpoolPage(theSpoolFile, theFormat, thePage) 
  347.           ForwardThisMessage((void *) theSpoolFile, (void *) theFormat, (void *) thePage)
  348. typedef CALLBACK_API_C( OSErr , GXSpoolDataProcPtr )(gxSpoolFile theSpoolFile, Ptr data, long *length);
  349. typedef STACK_UPP_TYPE(GXSpoolDataProcPtr)                      GXSpoolDataUPP;
  350. #if OPAQUE_UPP_TYPES
  351. #if CALL_NOT_IN_CARBON
  352.     EXTERN_API(GXSpoolDataUPP)
  353.     NewGXSpoolDataUPP              (GXSpoolDataProcPtr      userRoutine);
  354.     EXTERN_API(void)
  355.     DisposeGXSpoolDataUPP          (GXSpoolDataUPP          userUPP);
  356.     EXTERN_API(OSErr)
  357.     InvokeGXSpoolDataUPP           (gxSpoolFile             theSpoolFile,
  358.                                     Ptr                     data,
  359.                                     long *                  length,
  360.                                     GXSpoolDataUPP          userUPP);
  361. #endif  /* CALL_NOT_IN_CARBON */
  362. #else
  363.     enum { uppGXSpoolDataProcInfo = 0x00000FE1 };                   /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  364.     #define NewGXSpoolDataUPP(userRoutine)                          (GXSpoolDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolDataProcInfo, GetCurrentArchitecture())
  365.     #define DisposeGXSpoolDataUPP(userUPP)                          DisposeRoutineDescriptor(userUPP)
  366.     #define InvokeGXSpoolDataUPP(theSpoolFile, data, length, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSpoolDataProcInfo, (theSpoolFile), (data), (length))
  367. #endif
  368. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  369. #define NewGXSpoolDataProc(userRoutine)                         NewGXSpoolDataUPP(userRoutine)
  370. #define CallGXSpoolDataProc(userRoutine, theSpoolFile, data, length) InvokeGXSpoolDataUPP(theSpoolFile, data, length, userRoutine)
  371. #define Send_GXSpoolData(theSpoolFile, data, length) 
  372.           MacSendMessage(0x00000011, theSpoolFile, data, length)
  373.  
  374. #define Forward_GXSpoolData(theSpoolFile, data, length) 
  375.           ForwardThisMessage((void *) theSpoolFile, (void *) data, (void *) length)
  376. typedef CALLBACK_API_C( OSErr , GXSpoolResourceProcPtr )(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id);
  377. typedef STACK_UPP_TYPE(GXSpoolResourceProcPtr)                  GXSpoolResourceUPP;
  378. #if OPAQUE_UPP_TYPES
  379. #if CALL_NOT_IN_CARBON
  380.     EXTERN_API(GXSpoolResourceUPP)
  381.     NewGXSpoolResourceUPP          (GXSpoolResourceProcPtr  userRoutine);
  382.     EXTERN_API(void)
  383.     DisposeGXSpoolResourceUPP      (GXSpoolResourceUPP      userUPP);
  384.     EXTERN_API(OSErr)
  385.     InvokeGXSpoolResourceUPP       (gxSpoolFile             theSpoolFile,
  386.                                     Handle                  theResource,
  387.                                     ResType                 theType,
  388.                                     long                    id,
  389.                                     GXSpoolResourceUPP      userUPP);
  390. #endif  /* CALL_NOT_IN_CARBON */
  391. #else
  392.     enum { uppGXSpoolResourceProcInfo = 0x00003FE1 };               /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  393.     #define NewGXSpoolResourceUPP(userRoutine)                      (GXSpoolResourceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolResourceProcInfo, GetCurrentArchitecture())
  394.     #define DisposeGXSpoolResourceUPP(userUPP)                      DisposeRoutineDescriptor(userUPP)
  395.     #define InvokeGXSpoolResourceUPP(theSpoolFile, theResource, theType, id, userUPP)  (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXSpoolResourceProcInfo, (theSpoolFile), (theResource), (theType), (id))
  396. #endif
  397. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  398. #define NewGXSpoolResourceProc(userRoutine)                     NewGXSpoolResourceUPP(userRoutine)
  399. #define CallGXSpoolResourceProc(userRoutine, theSpoolFile, theResource, theType, id) InvokeGXSpoolResourceUPP(theSpoolFile, theResource, theType, id, userRoutine)
  400. #define Send_GXSpoolResource(theSpoolFile, theResource, theType, id) 
  401.           MacSendMessage(0x00000012, theSpoolFile, theResource, 
  402.                           theType, id)
  403.  
  404. #define Forward_GXSpoolResource(theSpoolFile, theResource, theType, id) 
  405.           ForwardThisMessage((void *) theSpoolFile, (void *) theResource, 
  406.                                     (void *) theType, (void *) (id))
  407. typedef CALLBACK_API_C( OSErr , GXCompleteSpoolFileProcPtr )(gxSpoolFile theSpoolFile);
  408. typedef STACK_UPP_TYPE(GXCompleteSpoolFileProcPtr)              GXCompleteSpoolFileUPP;
  409. #if OPAQUE_UPP_TYPES
  410. #if CALL_NOT_IN_CARBON
  411.     EXTERN_API(GXCompleteSpoolFileUPP)
  412.     NewGXCompleteSpoolFileUPP      (GXCompleteSpoolFileProcPtr userRoutine);
  413.     EXTERN_API(void)
  414.     DisposeGXCompleteSpoolFileUPP    (GXCompleteSpoolFileUPP userUPP);
  415.     EXTERN_API(OSErr)
  416.     InvokeGXCompleteSpoolFileUPP    (gxSpoolFile            theSpoolFile,
  417.                                     GXCompleteSpoolFileUPP  userUPP);
  418. #endif  /* CALL_NOT_IN_CARBON */
  419. #else
  420.     enum { uppGXCompleteSpoolFileProcInfo = 0x000000E1 };           /* 2_bytes Func(4_bytes) */
  421.     #define NewGXCompleteSpoolFileUPP(userRoutine)                  (GXCompleteSpoolFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCompleteSpoolFileProcInfo, GetCurrentArchitecture())
  422.     #define DisposeGXCompleteSpoolFileUPP(userUPP)                  DisposeRoutineDescriptor(userUPP)
  423.     #define InvokeGXCompleteSpoolFileUPP(theSpoolFile, userUPP)     (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXCompleteSpoolFileProcInfo, (theSpoolFile))
  424. #endif
  425. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  426. #define NewGXCompleteSpoolFileProc(userRoutine)                 NewGXCompleteSpoolFileUPP(userRoutine)
  427. #define CallGXCompleteSpoolFileProc(userRoutine, theSpoolFile)  InvokeGXCompleteSpoolFileUPP(theSpoolFile, userRoutine)
  428. #define Send_GXCompleteSpoolFile(theSpoolFile) 
  429.           MacSendMessage(0x00000013, theSpoolFile)
  430.  
  431. #define Forward_GXCompleteSpoolFile(theSpoolFile) 
  432.           ForwardThisMessage((void *) (theSpoolFile))
  433. typedef CALLBACK_API_C( OSErr , GXCountPagesProcPtr )(gxSpoolFile theSpoolFile, long *numPages);
  434. typedef STACK_UPP_TYPE(GXCountPagesProcPtr)                     GXCountPagesUPP;
  435. #if OPAQUE_UPP_TYPES
  436. #if CALL_NOT_IN_CARBON
  437.     EXTERN_API(GXCountPagesUPP)
  438.     NewGXCountPagesUPP             (GXCountPagesProcPtr     userRoutine);
  439.     EXTERN_API(void)
  440.     DisposeGXCountPagesUPP         (GXCountPagesUPP         userUPP);
  441.     EXTERN_API(OSErr)
  442.     InvokeGXCountPagesUPP          (gxSpoolFile             theSpoolFile,
  443.                                     long *                  numPages,
  444.                                     GXCountPagesUPP         userUPP);
  445. #endif  /* CALL_NOT_IN_CARBON */
  446. #else
  447.     enum { uppGXCountPagesProcInfo = 0x000003E1 };                  /* 2_bytes Func(4_bytes, 4_bytes) */
  448.     #define NewGXCountPagesUPP(userRoutine)                         (GXCountPagesUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCountPagesProcInfo, GetCurrentArchitecture())
  449.     #define DisposeGXCountPagesUPP(userUPP)                         DisposeRoutineDescriptor(userUPP)
  450.     #define InvokeGXCountPagesUPP(theSpoolFile, numPages, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXCountPagesProcInfo, (theSpoolFile), (numPages))
  451. #endif
  452. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  453. #define NewGXCountPagesProc(userRoutine)                        NewGXCountPagesUPP(userRoutine)
  454. #define CallGXCountPagesProc(userRoutine, theSpoolFile, numPages) InvokeGXCountPagesUPP(theSpoolFile, numPages, userRoutine)
  455. #define Send_GXCountPages(theSpoolFile, numPages) 
  456.           MacSendMessage(0x00000014, theSpoolFile, numPages)
  457.  
  458. #define Forward_GXCountPages(theSpoolFile, numPages) 
  459.           ForwardThisMessage((void *) (theSpoolFile), (void *) (numPages))
  460. typedef CALLBACK_API_C( OSErr , GXDespoolPageProcPtr )(gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage, Boolean *formatChanged);
  461. typedef STACK_UPP_TYPE(GXDespoolPageProcPtr)                    GXDespoolPageUPP;
  462. #if OPAQUE_UPP_TYPES
  463. #if CALL_NOT_IN_CARBON
  464.     EXTERN_API(GXDespoolPageUPP)
  465.     NewGXDespoolPageUPP            (GXDespoolPageProcPtr    userRoutine);
  466.     EXTERN_API(void)
  467.     DisposeGXDespoolPageUPP        (GXDespoolPageUPP        userUPP);
  468.     EXTERN_API(OSErr)
  469.     InvokeGXDespoolPageUPP         (gxSpoolFile             theSpoolFile,
  470.                                     long                    numPages,
  471.                                     gxFormat                theFormat,
  472.                                     gxShape *               thePage,
  473.                                     Boolean *               formatChanged,
  474.                                     GXDespoolPageUPP        userUPP);
  475. #endif  /* CALL_NOT_IN_CARBON */
  476. #else
  477.     enum { uppGXDespoolPageProcInfo = 0x0000FFE1 };                 /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  478.     #define NewGXDespoolPageUPP(userRoutine)                        (GXDespoolPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolPageProcInfo, GetCurrentArchitecture())
  479.     #define DisposeGXDespoolPageUPP(userUPP)                        DisposeRoutineDescriptor(userUPP)
  480.     #define InvokeGXDespoolPageUPP(theSpoolFile, numPages, theFormat, thePage, formatChanged, userUPP)  (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppGXDespoolPageProcInfo, (theSpoolFile), (numPages), (theFormat), (thePage), (formatChanged))
  481. #endif
  482. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  483. #define NewGXDespoolPageProc(userRoutine)                       NewGXDespoolPageUPP(userRoutine)
  484. #define CallGXDespoolPageProc(userRoutine, theSpoolFile, numPages, theFormat, thePage, formatChanged) InvokeGXDespoolPageUPP(theSpoolFile, numPages, theFormat, thePage, formatChanged, userRoutine)
  485. #define Send_GXDespoolPage(theSpoolFile, numPages, theFormat, thePage, formatChanged) 
  486.           MacSendMessage(0x00000015, theSpoolFile, numPages, 
  487.                           theFormat, thePage, formatChanged)
  488.  
  489. #define Forward_GXDespoolPage(theSpoolFile, numPages, theFormat, thePage, formatChanged) 
  490.           ForwardThisMessage((void *) (theSpoolFile), (void *) (numPages), (void *) (theFormat), 
  491.                                     (void *) (thePage), (void *) (formatChanged))
  492. typedef CALLBACK_API_C( OSErr , GXDespoolDataProcPtr )(gxSpoolFile theSpoolFile, Ptr data, long *length);
  493. typedef STACK_UPP_TYPE(GXDespoolDataProcPtr)                    GXDespoolDataUPP;
  494. #if OPAQUE_UPP_TYPES
  495. #if CALL_NOT_IN_CARBON
  496.     EXTERN_API(GXDespoolDataUPP)
  497.     NewGXDespoolDataUPP            (GXDespoolDataProcPtr    userRoutine);
  498.     EXTERN_API(void)
  499.     DisposeGXDespoolDataUPP        (GXDespoolDataUPP        userUPP);
  500.     EXTERN_API(OSErr)
  501.     InvokeGXDespoolDataUPP         (gxSpoolFile             theSpoolFile,
  502.                                     Ptr                     data,
  503.                                     long *                  length,
  504.                                     GXDespoolDataUPP        userUPP);
  505. #endif  /* CALL_NOT_IN_CARBON */
  506. #else
  507.     enum { uppGXDespoolDataProcInfo = 0x00000FE1 };                 /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  508.     #define NewGXDespoolDataUPP(userRoutine)                        (GXDespoolDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolDataProcInfo, GetCurrentArchitecture())
  509.     #define DisposeGXDespoolDataUPP(userUPP)                        DisposeRoutineDescriptor(userUPP)
  510.     #define InvokeGXDespoolDataUPP(theSpoolFile, data, length, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXDespoolDataProcInfo, (theSpoolFile), (data), (length))
  511. #endif
  512. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  513. #define NewGXDespoolDataProc(userRoutine)                       NewGXDespoolDataUPP(userRoutine)
  514. #define CallGXDespoolDataProc(userRoutine, theSpoolFile, data, length) InvokeGXDespoolDataUPP(theSpoolFile, data, length, userRoutine)
  515. #define Send_GXDespoolData(theSpoolFile, data, length) 
  516.           MacSendMessage(0x00000016, theSpoolFile, data, length)
  517.  
  518. #define Forward_GXDespoolData(theSpoolFile, data, length) 
  519.           ForwardThisMessage((void *) (theSpoolFile), (void *) (data), (void *) (length))
  520. typedef CALLBACK_API_C( OSErr , GXDespoolResourceProcPtr )(gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource);
  521. typedef STACK_UPP_TYPE(GXDespoolResourceProcPtr)                GXDespoolResourceUPP;
  522. #if OPAQUE_UPP_TYPES
  523. #if CALL_NOT_IN_CARBON
  524.     EXTERN_API(GXDespoolResourceUPP)
  525.     NewGXDespoolResourceUPP        (GXDespoolResourceProcPtr userRoutine);
  526.     EXTERN_API(void)
  527.     DisposeGXDespoolResourceUPP    (GXDespoolResourceUPP    userUPP);
  528.     EXTERN_API(OSErr)
  529.     InvokeGXDespoolResourceUPP     (gxSpoolFile             theSpoolFile,
  530.                                     ResType                 theType,
  531.                                     long                    id,
  532.                                     Handle *                theResource,
  533.                                     GXDespoolResourceUPP    userUPP);
  534. #endif  /* CALL_NOT_IN_CARBON */
  535. #else
  536.     enum { uppGXDespoolResourceProcInfo = 0x00003FE1 };             /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  537.     #define NewGXDespoolResourceUPP(userRoutine)                    (GXDespoolResourceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolResourceProcInfo, GetCurrentArchitecture())
  538.     #define DisposeGXDespoolResourceUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
  539.     #define InvokeGXDespoolResourceUPP(theSpoolFile, theType, id, theResource, userUPP)  (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXDespoolResourceProcInfo, (theSpoolFile), (theType), (id), (theResource))
  540. #endif
  541. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  542. #define NewGXDespoolResourceProc(userRoutine)                   NewGXDespoolResourceUPP(userRoutine)
  543. #define CallGXDespoolResourceProc(userRoutine, theSpoolFile, theType, id, theResource) InvokeGXDespoolResourceUPP(theSpoolFile, theType, id, theResource, userRoutine)
  544. #define Send_GXDespoolResource(theSpoolFile, theType, id, theResource) 
  545.           MacSendMessage(0x00000017, theSpoolFile, theType, 
  546.                           id, theResource)
  547.  
  548. #define Forward_GXDespoolResource(theSpoolFile, theType, id, theResource) 
  549.           ForwardThisMessage((void *) (theSpoolFile), (void *) (theType), (void *) (id), 
  550.                                     (void *) (theResource))
  551. typedef CALLBACK_API_C( OSErr , GXCloseSpoolFileProcPtr )(gxSpoolFile theSpoolFile, long closeOptions);
  552. typedef STACK_UPP_TYPE(GXCloseSpoolFileProcPtr)                 GXCloseSpoolFileUPP;
  553. #if OPAQUE_UPP_TYPES
  554. #if CALL_NOT_IN_CARBON
  555.     EXTERN_API(GXCloseSpoolFileUPP)
  556.     NewGXCloseSpoolFileUPP         (GXCloseSpoolFileProcPtr userRoutine);
  557.     EXTERN_API(void)
  558.     DisposeGXCloseSpoolFileUPP     (GXCloseSpoolFileUPP     userUPP);
  559.     EXTERN_API(OSErr)
  560.     InvokeGXCloseSpoolFileUPP      (gxSpoolFile             theSpoolFile,
  561.                                     long                    closeOptions,
  562.                                     GXCloseSpoolFileUPP     userUPP);
  563. #endif  /* CALL_NOT_IN_CARBON */
  564. #else
  565.     enum { uppGXCloseSpoolFileProcInfo = 0x000003E1 };              /* 2_bytes Func(4_bytes, 4_bytes) */
  566.     #define NewGXCloseSpoolFileUPP(userRoutine)                     (GXCloseSpoolFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCloseSpoolFileProcInfo, GetCurrentArchitecture())
  567.     #define DisposeGXCloseSpoolFileUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  568.     #define InvokeGXCloseSpoolFileUPP(theSpoolFile, closeOptions, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXCloseSpoolFileProcInfo, (theSpoolFile), (closeOptions))
  569. #endif
  570. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  571. #define NewGXCloseSpoolFileProc(userRoutine)                    NewGXCloseSpoolFileUPP(userRoutine)
  572. #define CallGXCloseSpoolFileProc(userRoutine, theSpoolFile, closeOptions) InvokeGXCloseSpoolFileUPP(theSpoolFile, closeOptions, userRoutine)
  573. #define Send_GXCloseSpoolFile(theSpoolFile, closeOptions) 
  574.           MacSendMessage(0x00000018, theSpoolFile, closeOptions)
  575.  
  576. #define Forward_GXCloseSpoolFile(theSpoolFile, closeOptions) 
  577.           ForwardThisMessage((void *) (theSpoolFile), (void *) (closeOptions))
  578. typedef CALLBACK_API_C( OSErr , GXStartJobProcPtr )(StringPtr docName, long pageCount);
  579. typedef STACK_UPP_TYPE(GXStartJobProcPtr)                       GXStartJobUPP;
  580. #if OPAQUE_UPP_TYPES
  581. #if CALL_NOT_IN_CARBON
  582.     EXTERN_API(GXStartJobUPP)
  583.     NewGXStartJobUPP               (GXStartJobProcPtr       userRoutine);
  584.     EXTERN_API(void)
  585.     DisposeGXStartJobUPP           (GXStartJobUPP           userUPP);
  586.     EXTERN_API(OSErr)
  587.     InvokeGXStartJobUPP            (StringPtr               docName,
  588.                                     long                    pageCount,
  589.                                     GXStartJobUPP           userUPP);
  590. #endif  /* CALL_NOT_IN_CARBON */
  591. #else
  592.     enum { uppGXStartJobProcInfo = 0x000003E1 };                    /* 2_bytes Func(4_bytes, 4_bytes) */
  593.     #define NewGXStartJobUPP(userRoutine)                           (GXStartJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartJobProcInfo, GetCurrentArchitecture())
  594.     #define DisposeGXStartJobUPP(userUPP)                           DisposeRoutineDescriptor(userUPP)
  595.     #define InvokeGXStartJobUPP(docName, pageCount, userUPP)        (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXStartJobProcInfo, (docName), (pageCount))
  596. #endif
  597. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  598. #define NewGXStartJobProc(userRoutine)                          NewGXStartJobUPP(userRoutine)
  599. #define CallGXStartJobProc(userRoutine, docName, pageCount)     InvokeGXStartJobUPP(docName, pageCount, userRoutine)
  600. #define Send_GXStartJob(docName, pageCount) 
  601.           MacSendMessage(0x00000019, docName, pageCount)
  602.  
  603. #define Forward_GXStartJob(docName, pageCount) 
  604.           ForwardThisMessage((void *) (docName), (void *) (pageCount))
  605. typedef CALLBACK_API_C( OSErr , GXFinishJobProcPtr )(void );
  606. typedef STACK_UPP_TYPE(GXFinishJobProcPtr)                      GXFinishJobUPP;
  607. #if OPAQUE_UPP_TYPES
  608. #if CALL_NOT_IN_CARBON
  609.     EXTERN_API(GXFinishJobUPP)
  610.     NewGXFinishJobUPP              (GXFinishJobProcPtr      userRoutine);
  611.     EXTERN_API(void)
  612.     DisposeGXFinishJobUPP          (GXFinishJobUPP          userUPP);
  613.     EXTERN_API(OSErr)
  614.     InvokeGXFinishJobUPP           (GXFinishJobUPP          userUPP);
  615. #endif  /* CALL_NOT_IN_CARBON */
  616. #else
  617.     enum { uppGXFinishJobProcInfo = 0x00000021 };                   /* 2_bytes Func() */
  618.     #define NewGXFinishJobUPP(userRoutine)                          (GXFinishJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishJobProcInfo, GetCurrentArchitecture())
  619.     #define DisposeGXFinishJobUPP(userUPP)                          DisposeRoutineDescriptor(userUPP)
  620.     #define InvokeGXFinishJobUPP(userUPP)                           (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXFinishJobProcInfo)
  621. #endif
  622. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  623. #define NewGXFinishJobProc(userRoutine)                         NewGXFinishJobUPP(userRoutine)
  624. #define CallGXFinishJobProc(userRoutine)                        InvokeGXFinishJobUPP(userRoutine)
  625. #define Send_GXFinishJob() MacSendMessage(0x0000001A)
  626. #define Forward_GXFinishJob() ForwardThisMessage((void *) (0))
  627. typedef CALLBACK_API_C( OSErr , GXStartPageProcPtr )(gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList);
  628. typedef STACK_UPP_TYPE(GXStartPageProcPtr)                      GXStartPageUPP;
  629. #if OPAQUE_UPP_TYPES
  630. #if CALL_NOT_IN_CARBON
  631.     EXTERN_API(GXStartPageUPP)
  632.     NewGXStartPageUPP              (GXStartPageProcPtr      userRoutine);
  633.     EXTERN_API(void)
  634.     DisposeGXStartPageUPP          (GXStartPageUPP          userUPP);
  635.     EXTERN_API(OSErr)
  636.     InvokeGXStartPageUPP           (gxFormat                theFormat,
  637.                                     long                    numViewPorts,
  638.                                     gxViewPort *            viewPortList,
  639.                                     GXStartPageUPP          userUPP);
  640. #endif  /* CALL_NOT_IN_CARBON */
  641. #else
  642.     enum { uppGXStartPageProcInfo = 0x00000FE1 };                   /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  643.     #define NewGXStartPageUPP(userRoutine)                          (GXStartPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartPageProcInfo, GetCurrentArchitecture())
  644.     #define DisposeGXStartPageUPP(userUPP)                          DisposeRoutineDescriptor(userUPP)
  645.     #define InvokeGXStartPageUPP(theFormat, numViewPorts, viewPortList, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXStartPageProcInfo, (theFormat), (numViewPorts), (viewPortList))
  646. #endif
  647. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  648. #define NewGXStartPageProc(userRoutine)                         NewGXStartPageUPP(userRoutine)
  649. #define CallGXStartPageProc(userRoutine, theFormat, numViewPorts, viewPortList) InvokeGXStartPageUPP(theFormat, numViewPorts, viewPortList, userRoutine)
  650. #define Send_GXStartPage(theFormat, numViewPorts, viewPortList) 
  651.           MacSendMessage(0x0000001B, theFormat, numViewPorts, viewPortList)
  652.  
  653. #define Forward_GXStartPage(theFormat, numViewPorts, viewPortList) 
  654.           ForwardThisMessage((void *) (theFormat), (void *) (numViewPorts), (void *) (viewPortList))
  655. typedef CALLBACK_API_C( OSErr , GXFinishPageProcPtr )(void );
  656. typedef STACK_UPP_TYPE(GXFinishPageProcPtr)                     GXFinishPageUPP;
  657. #if OPAQUE_UPP_TYPES
  658. #if CALL_NOT_IN_CARBON
  659.     EXTERN_API(GXFinishPageUPP)
  660.     NewGXFinishPageUPP             (GXFinishPageProcPtr     userRoutine);
  661.     EXTERN_API(void)
  662.     DisposeGXFinishPageUPP         (GXFinishPageUPP         userUPP);
  663.     EXTERN_API(OSErr)
  664.     InvokeGXFinishPageUPP          (GXFinishPageUPP         userUPP);
  665. #endif  /* CALL_NOT_IN_CARBON */
  666. #else
  667.     enum { uppGXFinishPageProcInfo = 0x00000021 };                  /* 2_bytes Func() */
  668.     #define NewGXFinishPageUPP(userRoutine)                         (GXFinishPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishPageProcInfo, GetCurrentArchitecture())
  669.     #define DisposeGXFinishPageUPP(userUPP)                         DisposeRoutineDescriptor(userUPP)
  670.     #define InvokeGXFinishPageUPP(userUPP)                          (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXFinishPageProcInfo)
  671. #endif
  672. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  673. #define NewGXFinishPageProc(userRoutine)                        NewGXFinishPageUPP(userRoutine)
  674. #define CallGXFinishPageProc(userRoutine)                       InvokeGXFinishPageUPP(userRoutine)
  675. #define Send_GXFinishPage() MacSendMessage(0x0000001C)
  676. #define Forward_GXFinishPage() ForwardThisMessage((void *) (0))
  677. typedef CALLBACK_API_C( OSErr , GXPrintPageProcPtr )(gxFormat theFormat, gxShape thePage);
  678. typedef STACK_UPP_TYPE(GXPrintPageProcPtr)                      GXPrintPageUPP;
  679. #if OPAQUE_UPP_TYPES
  680. #if CALL_NOT_IN_CARBON
  681.     EXTERN_API(GXPrintPageUPP)
  682.     NewGXPrintPageUPP              (GXPrintPageProcPtr      userRoutine);
  683.     EXTERN_API(void)
  684.     DisposeGXPrintPageUPP          (GXPrintPageUPP          userUPP);
  685.     EXTERN_API(OSErr)
  686.     InvokeGXPrintPageUPP           (gxFormat                theFormat,
  687.                                     gxShape                 thePage,
  688.                                     GXPrintPageUPP          userUPP);
  689. #endif  /* CALL_NOT_IN_CARBON */
  690. #else
  691.     enum { uppGXPrintPageProcInfo = 0x000003E1 };                   /* 2_bytes Func(4_bytes, 4_bytes) */
  692.     #define NewGXPrintPageUPP(userRoutine)                          (GXPrintPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXPrintPageProcInfo, GetCurrentArchitecture())
  693.     #define DisposeGXPrintPageUPP(userUPP)                          DisposeRoutineDescriptor(userUPP)
  694.     #define InvokeGXPrintPageUPP(theFormat, thePage, userUPP)       (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXPrintPageProcInfo, (theFormat), (thePage))
  695. #endif
  696. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  697. #define NewGXPrintPageProc(userRoutine)                         NewGXPrintPageUPP(userRoutine)
  698. #define CallGXPrintPageProc(userRoutine, theFormat, thePage)    InvokeGXPrintPageUPP(theFormat, thePage, userRoutine)
  699. #define Send_GXPrintPage(theFormat, thePage) 
  700.           MacSendMessage(0x0000001D, theFormat, thePage)
  701.  
  702. #define Forward_GXPrintPage(theFormat, thePage) 
  703.           ForwardThisMessage((void *) (theFormat), (void *) (thePage))
  704. typedef CALLBACK_API_C( OSErr , GXSetupImageDataProcPtr )(void *imageData);
  705. typedef STACK_UPP_TYPE(GXSetupImageDataProcPtr)                 GXSetupImageDataUPP;
  706. #if OPAQUE_UPP_TYPES
  707. #if CALL_NOT_IN_CARBON
  708.     EXTERN_API(GXSetupImageDataUPP)
  709.     NewGXSetupImageDataUPP         (GXSetupImageDataProcPtr userRoutine);
  710.     EXTERN_API(void)
  711.     DisposeGXSetupImageDataUPP     (GXSetupImageDataUPP     userUPP);
  712.     EXTERN_API(OSErr)
  713.     InvokeGXSetupImageDataUPP      (void *                  imageData,
  714.                                     GXSetupImageDataUPP     userUPP);
  715. #endif  /* CALL_NOT_IN_CARBON */
  716. #else
  717.     enum { uppGXSetupImageDataProcInfo = 0x000000E1 };              /* 2_bytes Func(4_bytes) */
  718.     #define NewGXSetupImageDataUPP(userRoutine)                     (GXSetupImageDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetupImageDataProcInfo, GetCurrentArchitecture())
  719.     #define DisposeGXSetupImageDataUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  720.     #define InvokeGXSetupImageDataUPP(imageData, userUPP)           (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXSetupImageDataProcInfo, (imageData))
  721. #endif
  722. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  723. #define NewGXSetupImageDataProc(userRoutine)                    NewGXSetupImageDataUPP(userRoutine)
  724. #define CallGXSetupImageDataProc(userRoutine, imageData)        InvokeGXSetupImageDataUPP(imageData, userRoutine)
  725. #define Send_GXSetupImageData(imageData) 
  726.           MacSendMessage(0x0000001E, imageData)
  727.  
  728. #define Forward_GXSetupImageData(imageData) 
  729.           ForwardThisMessage((void *) (imageData))
  730. typedef CALLBACK_API_C( OSErr , GXImageJobProcPtr )(gxSpoolFile theSpoolFile, long *closeOptions);
  731. typedef STACK_UPP_TYPE(GXImageJobProcPtr)                       GXImageJobUPP;
  732. #if OPAQUE_UPP_TYPES
  733. #if CALL_NOT_IN_CARBON
  734.     EXTERN_API(GXImageJobUPP)
  735.     NewGXImageJobUPP               (GXImageJobProcPtr       userRoutine);
  736.     EXTERN_API(void)
  737.     DisposeGXImageJobUPP           (GXImageJobUPP           userUPP);
  738.     EXTERN_API(OSErr)
  739.     InvokeGXImageJobUPP            (gxSpoolFile             theSpoolFile,
  740.                                     long *                  closeOptions,
  741.                                     GXImageJobUPP           userUPP);
  742. #endif  /* CALL_NOT_IN_CARBON */
  743. #else
  744.     enum { uppGXImageJobProcInfo = 0x000003E1 };                    /* 2_bytes Func(4_bytes, 4_bytes) */
  745.     #define NewGXImageJobUPP(userRoutine)                           (GXImageJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImageJobProcInfo, GetCurrentArchitecture())
  746.     #define DisposeGXImageJobUPP(userUPP)                           DisposeRoutineDescriptor(userUPP)
  747.     #define InvokeGXImageJobUPP(theSpoolFile, closeOptions, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXImageJobProcInfo, (theSpoolFile), (closeOptions))
  748. #endif
  749. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  750. #define NewGXImageJobProc(userRoutine)                          NewGXImageJobUPP(userRoutine)
  751. #define CallGXImageJobProc(userRoutine, theSpoolFile, closeOptions) InvokeGXImageJobUPP(theSpoolFile, closeOptions, userRoutine)
  752. #define Send_GXImageJob(theSpoolFile, closeOptions) 
  753.           MacSendMessage(0x0000001F, theSpoolFile, closeOptions)
  754.  
  755. #define Forward_GXImageJob(theSpoolFile, closeOptions) 
  756.           ForwardThisMessage((void *) (theSpoolFile), (void *) (closeOptions))
  757. typedef CALLBACK_API_C( OSErr , GXImageDocumentProcPtr )(gxSpoolFile theSpoolFile, void *imageData);
  758. typedef STACK_UPP_TYPE(GXImageDocumentProcPtr)                  GXImageDocumentUPP;
  759. #if OPAQUE_UPP_TYPES
  760. #if CALL_NOT_IN_CARBON
  761.     EXTERN_API(GXImageDocumentUPP)
  762.     NewGXImageDocumentUPP          (GXImageDocumentProcPtr  userRoutine);
  763.     EXTERN_API(void)
  764.     DisposeGXImageDocumentUPP      (GXImageDocumentUPP      userUPP);
  765.     EXTERN_API(OSErr)
  766.     InvokeGXImageDocumentUPP       (gxSpoolFile             theSpoolFile,
  767.                                     void *                  imageData,
  768.                                     GXImageDocumentUPP      userUPP);
  769. #endif  /* CALL_NOT_IN_CARBON */
  770. #else
  771.     enum { uppGXImageDocumentProcInfo = 0x000003E1 };               /* 2_bytes Func(4_bytes, 4_bytes) */
  772.     #define NewGXImageDocumentUPP(userRoutine)                      (GXImageDocumentUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImageDocumentProcInfo, GetCurrentArchitecture())
  773.     #define DisposeGXImageDocumentUPP(userUPP)                      DisposeRoutineDescriptor(userUPP)
  774.     #define InvokeGXImageDocumentUPP(theSpoolFile, imageData, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXImageDocumentProcInfo, (theSpoolFile), (imageData))
  775. #endif
  776. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  777. #define NewGXImageDocumentProc(userRoutine)                     NewGXImageDocumentUPP(userRoutine)
  778. #define CallGXImageDocumentProc(userRoutine, theSpoolFile, imageData) InvokeGXImageDocumentUPP(theSpoolFile, imageData, userRoutine)
  779. #define Send_GXImageDocument(theSpoolFile, imageData) 
  780.           MacSendMessage(0x00000020, theSpoolFile, imageData)
  781.  
  782. #define Forward_GXImageDocument(theSpoolFile, imageData) 
  783.           ForwardThisMessage((void *) (theSpoolFile), (void *) (imageData))
  784. typedef CALLBACK_API_C( OSErr , GXImagePageProcPtr )(gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData);
  785. typedef STACK_UPP_TYPE(GXImagePageProcPtr)                      GXImagePageUPP;
  786. #if OPAQUE_UPP_TYPES
  787. #if CALL_NOT_IN_CARBON
  788.     EXTERN_API(GXImagePageUPP)
  789.     NewGXImagePageUPP              (GXImagePageProcPtr      userRoutine);
  790.     EXTERN_API(void)
  791.     DisposeGXImagePageUPP          (GXImagePageUPP          userUPP);
  792.     EXTERN_API(OSErr)
  793.     InvokeGXImagePageUPP           (gxSpoolFile             theSpoolFile,
  794.                                     long                    pageNumber,
  795.                                     gxFormat                theFormat,
  796.                                     void *                  imageData,
  797.                                     GXImagePageUPP          userUPP);
  798. #endif  /* CALL_NOT_IN_CARBON */
  799. #else
  800.     enum { uppGXImagePageProcInfo = 0x00003FE1 };                   /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  801.     #define NewGXImagePageUPP(userRoutine)                          (GXImagePageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImagePageProcInfo, GetCurrentArchitecture())
  802.     #define DisposeGXImagePageUPP(userUPP)                          DisposeRoutineDescriptor(userUPP)
  803.     #define InvokeGXImagePageUPP(theSpoolFile, pageNumber, theFormat, imageData, userUPP)  (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXImagePageProcInfo, (theSpoolFile), (pageNumber), (theFormat), (imageData))
  804. #endif
  805. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  806. #define NewGXImagePageProc(userRoutine)                         NewGXImagePageUPP(userRoutine)
  807. #define CallGXImagePageProc(userRoutine, theSpoolFile, pageNumber, theFormat, imageData) InvokeGXImagePageUPP(theSpoolFile, pageNumber, theFormat, imageData, userRoutine)
  808. #define Send_GXImagePage(theSpoolFile, pageNumber, theFormat, imageData) 
  809.           MacSendMessage(0x00000021, theSpoolFile, pageNumber, theFormat, imageData)
  810.  
  811. #define Forward_GXImagePage(theSpoolFile, pageNumber, theFormat, imageData) 
  812.           ForwardThisMessage((void *) (theSpoolFile), (void *) (pageNumber), (void *) (theFormat), 
  813.                                     (void *) (imageData))
  814. typedef CALLBACK_API_C( OSErr , GXRenderPageProcPtr )(gxFormat theFormat, gxShape thePage, gxPageInfoRecord *pageInfo, void *imageData);
  815. typedef STACK_UPP_TYPE(GXRenderPageProcPtr)                     GXRenderPageUPP;
  816. #if OPAQUE_UPP_TYPES
  817. #if CALL_NOT_IN_CARBON
  818.     EXTERN_API(GXRenderPageUPP)
  819.     NewGXRenderPageUPP             (GXRenderPageProcPtr     userRoutine);
  820.     EXTERN_API(void)
  821.     DisposeGXRenderPageUPP         (GXRenderPageUPP         userUPP);
  822.     EXTERN_API(OSErr)
  823.     InvokeGXRenderPageUPP          (gxFormat                theFormat,
  824.                                     gxShape                 thePage,
  825.                                     gxPageInfoRecord *      pageInfo,
  826.                                     void *                  imageData,
  827.                                     GXRenderPageUPP         userUPP);
  828. #endif  /* CALL_NOT_IN_CARBON */
  829. #else
  830.     enum { uppGXRenderPageProcInfo = 0x00003FE1 };                  /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  831.     #define NewGXRenderPageUPP(userRoutine)                         (GXRenderPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXRenderPageProcInfo, GetCurrentArchitecture())
  832.     #define DisposeGXRenderPageUPP(userUPP)                         DisposeRoutineDescriptor(userUPP)
  833.     #define InvokeGXRenderPageUPP(theFormat, thePage, pageInfo, imageData, userUPP)  (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXRenderPageProcInfo, (theFormat), (thePage), (pageInfo), (imageData))
  834. #endif
  835. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  836. #define NewGXRenderPageProc(userRoutine)                        NewGXRenderPageUPP(userRoutine)
  837. #define CallGXRenderPageProc(userRoutine, theFormat, thePage, pageInfo, imageData) InvokeGXRenderPageUPP(theFormat, thePage, pageInfo, imageData, userRoutine)
  838. #define Send_GXRenderPage(theFormat, thePage, pageInfo, imageData) 
  839.           MacSendMessage(0x00000022, theFormat, thePage, pageInfo, imageData)
  840.  
  841. #define Forward_GXRenderPage(theFormat, thePage, pageInfo, imageData) 
  842.           ForwardThisMessage((void *) (theFormat), (void *) (thePage), (void *) (pageInfo), (void *) (imageData))
  843. typedef CALLBACK_API_C( OSErr , GXCreateImageFileProcPtr )(FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile);
  844. typedef STACK_UPP_TYPE(GXCreateImageFileProcPtr)                GXCreateImageFileUPP;
  845. #if OPAQUE_UPP_TYPES
  846. #if CALL_NOT_IN_CARBON
  847.     EXTERN_API(GXCreateImageFileUPP)
  848.     NewGXCreateImageFileUPP        (GXCreateImageFileProcPtr userRoutine);
  849.     EXTERN_API(void)
  850.     DisposeGXCreateImageFileUPP    (GXCreateImageFileUPP    userUPP);
  851.     EXTERN_API(OSErr)
  852.     InvokeGXCreateImageFileUPP     (FSSpecPtr               pFileSpec,
  853.                                     long                    imageFileOptions,
  854.                                     long *                  theImageFile,
  855.                                     GXCreateImageFileUPP    userUPP);
  856. #endif  /* CALL_NOT_IN_CARBON */
  857. #else
  858.     enum { uppGXCreateImageFileProcInfo = 0x00000FE1 };             /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  859.     #define NewGXCreateImageFileUPP(userRoutine)                    (GXCreateImageFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCreateImageFileProcInfo, GetCurrentArchitecture())
  860.     #define DisposeGXCreateImageFileUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
  861.     #define InvokeGXCreateImageFileUPP(pFileSpec, imageFileOptions, theImageFile, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXCreateImageFileProcInfo, (pFileSpec), (imageFileOptions), (theImageFile))
  862. #endif
  863. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  864. #define NewGXCreateImageFileProc(userRoutine)                   NewGXCreateImageFileUPP(userRoutine)
  865. #define CallGXCreateImageFileProc(userRoutine, pFileSpec, imageFileOptions, theImageFile) InvokeGXCreateImageFileUPP(pFileSpec, imageFileOptions, theImageFile, userRoutine)
  866. #define Send_GXCreateImageFile(pFileSpec, imageFileOptions, theImageFile) 
  867.           MacSendMessage(0x00000023, pFileSpec, imageFileOptions, theImageFile)
  868.  
  869. #define Forward_GXCreateImageFile(pFileSpec, imageFileOptions, theImageFile) 
  870.           ForwardThisMessage((void *) (pFileSpec), (void *) (imageFileOptions), (void *) (theImageFile))
  871. typedef CALLBACK_API_C( OSErr , GXOpenConnectionProcPtr )(void );
  872. typedef STACK_UPP_TYPE(GXOpenConnectionProcPtr)                 GXOpenConnectionUPP;
  873. #if OPAQUE_UPP_TYPES
  874. #if CALL_NOT_IN_CARBON
  875.     EXTERN_API(GXOpenConnectionUPP)
  876.     NewGXOpenConnectionUPP         (GXOpenConnectionProcPtr userRoutine);
  877.     EXTERN_API(void)
  878.     DisposeGXOpenConnectionUPP     (GXOpenConnectionUPP     userUPP);
  879.     EXTERN_API(OSErr)
  880.     InvokeGXOpenConnectionUPP      (GXOpenConnectionUPP     userUPP);
  881. #endif  /* CALL_NOT_IN_CARBON */
  882. #else
  883.     enum { uppGXOpenConnectionProcInfo = 0x00000021 };              /* 2_bytes Func() */
  884.     #define NewGXOpenConnectionUPP(userRoutine)                     (GXOpenConnectionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXOpenConnectionProcInfo, GetCurrentArchitecture())
  885.     #define DisposeGXOpenConnectionUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  886.     #define InvokeGXOpenConnectionUPP(userUPP)                      (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXOpenConnectionProcInfo)
  887. #endif
  888. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  889. #define NewGXOpenConnectionProc(userRoutine)                    NewGXOpenConnectionUPP(userRoutine)
  890. #define CallGXOpenConnectionProc(userRoutine)                   InvokeGXOpenConnectionUPP(userRoutine)
  891. #define Send_GXOpenConnection() MacSendMessage(0x00000024)
  892. #define Forward_GXOpenConnection() ForwardThisMessage((void *) (0))
  893. typedef CALLBACK_API_C( OSErr , GXCloseConnectionProcPtr )(void );
  894. typedef STACK_UPP_TYPE(GXCloseConnectionProcPtr)                GXCloseConnectionUPP;
  895. #if OPAQUE_UPP_TYPES
  896. #if CALL_NOT_IN_CARBON
  897.     EXTERN_API(GXCloseConnectionUPP)
  898.     NewGXCloseConnectionUPP        (GXCloseConnectionProcPtr userRoutine);
  899.     EXTERN_API(void)
  900.     DisposeGXCloseConnectionUPP    (GXCloseConnectionUPP    userUPP);
  901.     EXTERN_API(OSErr)
  902.     InvokeGXCloseConnectionUPP     (GXCloseConnectionUPP    userUPP);
  903. #endif  /* CALL_NOT_IN_CARBON */
  904. #else
  905.     enum { uppGXCloseConnectionProcInfo = 0x00000021 };             /* 2_bytes Func() */
  906.     #define NewGXCloseConnectionUPP(userRoutine)                    (GXCloseConnectionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCloseConnectionProcInfo, GetCurrentArchitecture())
  907.     #define DisposeGXCloseConnectionUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
  908.     #define InvokeGXCloseConnectionUPP(userUPP)                     (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCloseConnectionProcInfo)
  909. #endif
  910. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  911. #define NewGXCloseConnectionProc(userRoutine)                   NewGXCloseConnectionUPP(userRoutine)
  912. #define CallGXCloseConnectionProc(userRoutine)                  InvokeGXCloseConnectionUPP(userRoutine)
  913. #define Send_GXCloseConnection() MacSendMessage(0x00000025)
  914. #define Forward_GXCloseConnection() ForwardThisMessage((void *) (0))
  915. typedef CALLBACK_API_C( OSErr , GXStartSendPageProcPtr )(gxFormat theFormat);
  916. typedef STACK_UPP_TYPE(GXStartSendPageProcPtr)                  GXStartSendPageUPP;
  917. #if OPAQUE_UPP_TYPES
  918. #if CALL_NOT_IN_CARBON
  919.     EXTERN_API(GXStartSendPageUPP)
  920.     NewGXStartSendPageUPP          (GXStartSendPageProcPtr  userRoutine);
  921.     EXTERN_API(void)
  922.     DisposeGXStartSendPageUPP      (GXStartSendPageUPP      userUPP);
  923.     EXTERN_API(OSErr)
  924.     InvokeGXStartSendPageUPP       (gxFormat                theFormat,
  925.                                     GXStartSendPageUPP      userUPP);
  926. #endif  /* CALL_NOT_IN_CARBON */
  927. #else
  928.     enum { uppGXStartSendPageProcInfo = 0x000000E1 };               /* 2_bytes Func(4_bytes) */
  929.     #define NewGXStartSendPageUPP(userRoutine)                      (GXStartSendPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartSendPageProcInfo, GetCurrentArchitecture())
  930.     #define DisposeGXStartSendPageUPP(userUPP)                      DisposeRoutineDescriptor(userUPP)
  931.     #define InvokeGXStartSendPageUPP(theFormat, userUPP)            (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXStartSendPageProcInfo, (theFormat))
  932. #endif
  933. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  934. #define NewGXStartSendPageProc(userRoutine)                     NewGXStartSendPageUPP(userRoutine)
  935. #define CallGXStartSendPageProc(userRoutine, theFormat)         InvokeGXStartSendPageUPP(theFormat, userRoutine)
  936. #define Send_GXStartSendPage(theFormat) MacSendMessage(0x00000026, theFormat)
  937. #define Forward_GXStartSendPage(theFormat) ForwardThisMessage((void *) (theFormat))
  938. typedef CALLBACK_API_C( OSErr , GXFinishSendPageProcPtr )(void );
  939. typedef STACK_UPP_TYPE(GXFinishSendPageProcPtr)                 GXFinishSendPageUPP;
  940. #if OPAQUE_UPP_TYPES
  941. #if CALL_NOT_IN_CARBON
  942.     EXTERN_API(GXFinishSendPageUPP)
  943.     NewGXFinishSendPageUPP         (GXFinishSendPageProcPtr userRoutine);
  944.     EXTERN_API(void)
  945.     DisposeGXFinishSendPageUPP     (GXFinishSendPageUPP     userUPP);
  946.     EXTERN_API(OSErr)
  947.     InvokeGXFinishSendPageUPP      (GXFinishSendPageUPP     userUPP);
  948. #endif  /* CALL_NOT_IN_CARBON */
  949. #else
  950.     enum { uppGXFinishSendPageProcInfo = 0x00000021 };              /* 2_bytes Func() */
  951.     #define NewGXFinishSendPageUPP(userRoutine)                     (GXFinishSendPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishSendPageProcInfo, GetCurrentArchitecture())
  952.     #define DisposeGXFinishSendPageUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  953.     #define InvokeGXFinishSendPageUPP(userUPP)                      (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXFinishSendPageProcInfo)
  954. #endif
  955. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  956. #define NewGXFinishSendPageProc(userRoutine)                    NewGXFinishSendPageUPP(userRoutine)
  957. #define CallGXFinishSendPageProc(userRoutine)                   InvokeGXFinishSendPageUPP(userRoutine)
  958. #define Send_GXFinishSendPage() MacSendMessage(0x00000027)
  959. #define Forward_GXFinishSendPage() ForwardThisMessage((void *) (0))
  960. typedef CALLBACK_API_C( OSErr , GXWriteDataProcPtr )(Ptr data, long length);
  961. typedef STACK_UPP_TYPE(GXWriteDataProcPtr)                      GXWriteDataUPP;
  962. #if OPAQUE_UPP_TYPES
  963. #if CALL_NOT_IN_CARBON
  964.     EXTERN_API(GXWriteDataUPP)
  965.     NewGXWriteDataUPP              (GXWriteDataProcPtr      userRoutine);
  966.     EXTERN_API(void)
  967.     DisposeGXWriteDataUPP          (GXWriteDataUPP          userUPP);
  968.     EXTERN_API(OSErr)
  969.     InvokeGXWriteDataUPP           (Ptr                     data,
  970.                                     long                    length,
  971.                                     GXWriteDataUPP          userUPP);
  972. #endif  /* CALL_NOT_IN_CARBON */
  973. #else
  974.     enum { uppGXWriteDataProcInfo = 0x000003E1 };                   /* 2_bytes Func(4_bytes, 4_bytes) */
  975.     #define NewGXWriteDataUPP(userRoutine)                          (GXWriteDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXWriteDataProcInfo, GetCurrentArchitecture())
  976.     #define DisposeGXWriteDataUPP(userUPP)                          DisposeRoutineDescriptor(userUPP)
  977.     #define InvokeGXWriteDataUPP(data, length, userUPP)             (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXWriteDataProcInfo, (data), (length))
  978. #endif
  979. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  980. #define NewGXWriteDataProc(userRoutine)                         NewGXWriteDataUPP(userRoutine)
  981. #define CallGXWriteDataProc(userRoutine, data, length)          InvokeGXWriteDataUPP(data, length, userRoutine)
  982. #define Send_GXWriteData(data, length) MacSendMessage(0x00000028, data, length)
  983. #define Forward_GXWriteData(data, length) ForwardThisMessage((void *) (data), (void *) (length))
  984. typedef CALLBACK_API_C( OSErr , GXBufferDataProcPtr )(Ptr data, long length, long bufferOptions);
  985. typedef STACK_UPP_TYPE(GXBufferDataProcPtr)                     GXBufferDataUPP;
  986. #if OPAQUE_UPP_TYPES
  987. #if CALL_NOT_IN_CARBON
  988.     EXTERN_API(GXBufferDataUPP)
  989.     NewGXBufferDataUPP             (GXBufferDataProcPtr     userRoutine);
  990.     EXTERN_API(void)
  991.     DisposeGXBufferDataUPP         (GXBufferDataUPP         userUPP);
  992.     EXTERN_API(OSErr)
  993.     InvokeGXBufferDataUPP          (Ptr                     data,
  994.                                     long                    length,
  995.                                     long                    bufferOptions,
  996.                                     GXBufferDataUPP         userUPP);
  997. #endif  /* CALL_NOT_IN_CARBON */
  998. #else
  999.     enum { uppGXBufferDataProcInfo = 0x00000FE1 };                  /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  1000.     #define NewGXBufferDataUPP(userRoutine)                         (GXBufferDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXBufferDataProcInfo, GetCurrentArchitecture())
  1001.     #define DisposeGXBufferDataUPP(userUPP)                         DisposeRoutineDescriptor(userUPP)
  1002.     #define InvokeGXBufferDataUPP(data, length, bufferOptions, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXBufferDataProcInfo, (data), (length), (bufferOptions))
  1003. #endif
  1004. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1005. #define NewGXBufferDataProc(userRoutine)                        NewGXBufferDataUPP(userRoutine)
  1006. #define CallGXBufferDataProc(userRoutine, data, length, bufferOptions) InvokeGXBufferDataUPP(data, length, bufferOptions, userRoutine)
  1007. #define Send_GXBufferData(data, length, bufferOptions) 
  1008.           MacSendMessage(0x00000029, data, length, bufferOptions)
  1009.  
  1010. #define Forward_GXBufferData(data, length, bufferOptions) 
  1011.           ForwardThisMessage((void *) (data), (void *) (length), (void *) (bufferOptions))
  1012. typedef CALLBACK_API_C( OSErr , GXDumpBufferProcPtr )(gxPrintingBuffer *theBuffer);
  1013. typedef STACK_UPP_TYPE(GXDumpBufferProcPtr)                     GXDumpBufferUPP;
  1014. #if OPAQUE_UPP_TYPES
  1015. #if CALL_NOT_IN_CARBON
  1016.     EXTERN_API(GXDumpBufferUPP)
  1017.     NewGXDumpBufferUPP             (GXDumpBufferProcPtr     userRoutine);
  1018.     EXTERN_API(void)
  1019.     DisposeGXDumpBufferUPP         (GXDumpBufferUPP         userUPP);
  1020.     EXTERN_API(OSErr)
  1021.     InvokeGXDumpBufferUPP          (gxPrintingBuffer *      theBuffer,
  1022.                                     GXDumpBufferUPP         userUPP);
  1023. #endif  /* CALL_NOT_IN_CARBON */
  1024. #else
  1025.     enum { uppGXDumpBufferProcInfo = 0x000000E1 };                  /* 2_bytes Func(4_bytes) */
  1026.     #define NewGXDumpBufferUPP(userRoutine)                         (GXDumpBufferUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDumpBufferProcInfo, GetCurrentArchitecture())
  1027.     #define DisposeGXDumpBufferUPP(userUPP)                         DisposeRoutineDescriptor(userUPP)
  1028.     #define InvokeGXDumpBufferUPP(theBuffer, userUPP)               (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDumpBufferProcInfo, (theBuffer))
  1029. #endif
  1030. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1031. #define NewGXDumpBufferProc(userRoutine)                        NewGXDumpBufferUPP(userRoutine)
  1032. #define CallGXDumpBufferProc(userRoutine, theBuffer)            InvokeGXDumpBufferUPP(theBuffer, userRoutine)
  1033. #define Send_GXDumpBuffer(theBuffer) MacSendMessage(0x0000002A, theBuffer)
  1034. #define Forward_GXDumpBuffer(theBuffer) ForwardThisMessage((void *) (theBuffer))
  1035. typedef CALLBACK_API_C( OSErr , GXFreeBufferProcPtr )(gxPrintingBuffer *theBuffer);
  1036. typedef STACK_UPP_TYPE(GXFreeBufferProcPtr)                     GXFreeBufferUPP;
  1037. #if OPAQUE_UPP_TYPES
  1038. #if CALL_NOT_IN_CARBON
  1039.     EXTERN_API(GXFreeBufferUPP)
  1040.     NewGXFreeBufferUPP             (GXFreeBufferProcPtr     userRoutine);
  1041.     EXTERN_API(void)
  1042.     DisposeGXFreeBufferUPP         (GXFreeBufferUPP         userUPP);
  1043.     EXTERN_API(OSErr)
  1044.     InvokeGXFreeBufferUPP          (gxPrintingBuffer *      theBuffer,
  1045.                                     GXFreeBufferUPP         userUPP);
  1046. #endif  /* CALL_NOT_IN_CARBON */
  1047. #else
  1048.     enum { uppGXFreeBufferProcInfo = 0x000000E1 };                  /* 2_bytes Func(4_bytes) */
  1049.     #define NewGXFreeBufferUPP(userRoutine)                         (GXFreeBufferUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFreeBufferProcInfo, GetCurrentArchitecture())
  1050.     #define DisposeGXFreeBufferUPP(userUPP)                         DisposeRoutineDescriptor(userUPP)
  1051.     #define InvokeGXFreeBufferUPP(theBuffer, userUPP)               (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXFreeBufferProcInfo, (theBuffer))
  1052. #endif
  1053. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1054. #define NewGXFreeBufferProc(userRoutine)                        NewGXFreeBufferUPP(userRoutine)
  1055. #define CallGXFreeBufferProc(userRoutine, theBuffer)            InvokeGXFreeBufferUPP(theBuffer, userRoutine)
  1056. #define Send_GXFreeBuffer(theBuffer) MacSendMessage(0x0000002B, theBuffer)
  1057. #define Forward_GXFreeBuffer(theBuffer) ForwardThisMessage((void *) (theBuffer))
  1058. typedef CALLBACK_API_C( OSErr , GXCheckStatusProcPtr )(Ptr data, long length, long statusType, gxOwnerSignature owner);
  1059. typedef STACK_UPP_TYPE(GXCheckStatusProcPtr)                    GXCheckStatusUPP;
  1060. #if OPAQUE_UPP_TYPES
  1061. #if CALL_NOT_IN_CARBON
  1062.     EXTERN_API(GXCheckStatusUPP)
  1063.     NewGXCheckStatusUPP            (GXCheckStatusProcPtr    userRoutine);
  1064.     EXTERN_API(void)
  1065.     DisposeGXCheckStatusUPP        (GXCheckStatusUPP        userUPP);
  1066.     EXTERN_API(OSErr)
  1067.     InvokeGXCheckStatusUPP         (Ptr                     data,
  1068.                                     long                    length,
  1069.                                     long                    statusType,
  1070.                                     gxOwnerSignature        owner,
  1071.                                     GXCheckStatusUPP        userUPP);
  1072. #endif  /* CALL_NOT_IN_CARBON */
  1073. #else
  1074.     enum { uppGXCheckStatusProcInfo = 0x00003FE1 };                 /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  1075.     #define NewGXCheckStatusUPP(userRoutine)                        (GXCheckStatusUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCheckStatusProcInfo, GetCurrentArchitecture())
  1076.     #define DisposeGXCheckStatusUPP(userUPP)                        DisposeRoutineDescriptor(userUPP)
  1077.     #define InvokeGXCheckStatusUPP(data, length, statusType, owner, userUPP)  (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXCheckStatusProcInfo, (data), (length), (statusType), (owner))
  1078. #endif
  1079. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1080. #define NewGXCheckStatusProc(userRoutine)                       NewGXCheckStatusUPP(userRoutine)
  1081. #define CallGXCheckStatusProc(userRoutine, data, length, statusType, owner) InvokeGXCheckStatusUPP(data, length, statusType, owner, userRoutine)
  1082. #define Send_GXCheckStatus(data, length, statusType, owner) 
  1083.           MacSendMessage(0x0000002C, data, length, statusType, owner)
  1084.  
  1085. #define Forward_GXCheckStatus(data, length, statusType, owner) 
  1086.           ForwardThisMessage((void *) (data), (void *) (length), (void *) (statusType), (void *) (owner))
  1087. typedef CALLBACK_API_C( OSErr , GXGetDeviceStatusProcPtr )(Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination);
  1088. typedef STACK_UPP_TYPE(GXGetDeviceStatusProcPtr)                GXGetDeviceStatusUPP;
  1089. #if OPAQUE_UPP_TYPES
  1090. #if CALL_NOT_IN_CARBON
  1091.     EXTERN_API(GXGetDeviceStatusUPP)
  1092.     NewGXGetDeviceStatusUPP        (GXGetDeviceStatusProcPtr userRoutine);
  1093.     EXTERN_API(void)
  1094.     DisposeGXGetDeviceStatusUPP    (GXGetDeviceStatusUPP    userUPP);
  1095.     EXTERN_API(OSErr)
  1096.     InvokeGXGetDeviceStatusUPP     (Ptr                     cmdData,
  1097.                                     long                    cmdSize,
  1098.                                     Ptr                     responseData,
  1099.                                     long *                  responseSize,
  1100.                                     Str255                  termination,
  1101.                                     GXGetDeviceStatusUPP    userUPP);
  1102. #endif  /* CALL_NOT_IN_CARBON */
  1103. #else
  1104.     enum { uppGXGetDeviceStatusProcInfo = 0x0000FFE1 };             /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  1105.     #define NewGXGetDeviceStatusUPP(userRoutine)                    (GXGetDeviceStatusUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXGetDeviceStatusProcInfo, GetCurrentArchitecture())
  1106.     #define DisposeGXGetDeviceStatusUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
  1107.     #define InvokeGXGetDeviceStatusUPP(cmdData, cmdSize, responseData, responseSize, termination, userUPP)  (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppGXGetDeviceStatusProcInfo, (cmdData), (cmdSize), (responseData), (responseSize), (termination))
  1108. #endif
  1109. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1110. #define NewGXGetDeviceStatusProc(userRoutine)                   NewGXGetDeviceStatusUPP(userRoutine)
  1111. #define CallGXGetDeviceStatusProc(userRoutine, cmdData, cmdSize, responseData, responseSize, termination) InvokeGXGetDeviceStatusUPP(cmdData, cmdSize, responseData, responseSize, termination, userRoutine)
  1112. #define Send_GXGetDeviceStatus(cmdData, cmdSize, responseData, responseSize, termination) 
  1113.           MacSendMessage(0x0000002D, cmdData, cmdSize, responseData, responseSize, termination)
  1114.  
  1115. #define Forward_GXGetDeviceStatus(cmdData, cmdSize, responseData, responseSize, termination) 
  1116.           ForwardThisMessage((void *) (cmdData), (void *) (cmdSize), (void *) (responseData), 
  1117.                                     (void *) (responseSize), (void *) (termination))
  1118. typedef CALLBACK_API_C( OSErr , GXFetchTaggedDataProcPtr )(ResType theType, long id, Handle *dataHdl, gxOwnerSignature owner);
  1119. typedef STACK_UPP_TYPE(GXFetchTaggedDataProcPtr)                GXFetchTaggedDataUPP;
  1120. #if OPAQUE_UPP_TYPES
  1121. #if CALL_NOT_IN_CARBON
  1122.     EXTERN_API(GXFetchTaggedDataUPP)
  1123.     NewGXFetchTaggedDataUPP        (GXFetchTaggedDataProcPtr userRoutine);
  1124.     EXTERN_API(void)
  1125.     DisposeGXFetchTaggedDataUPP    (GXFetchTaggedDataUPP    userUPP);
  1126.     EXTERN_API(OSErr)
  1127.     InvokeGXFetchTaggedDataUPP     (ResType                 theType,
  1128.                                     long                    id,
  1129.                                     Handle *                dataHdl,
  1130.                                     gxOwnerSignature        owner,
  1131.                                     GXFetchTaggedDataUPP    userUPP);
  1132. #endif  /* CALL_NOT_IN_CARBON */
  1133. #else
  1134.     enum { uppGXFetchTaggedDataProcInfo = 0x00003FE1 };             /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  1135.     #define NewGXFetchTaggedDataUPP(userRoutine)                    (GXFetchTaggedDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFetchTaggedDataProcInfo, GetCurrentArchitecture())
  1136.     #define DisposeGXFetchTaggedDataUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
  1137.     #define InvokeGXFetchTaggedDataUPP(theType, id, dataHdl, owner, userUPP)  (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXFetchTaggedDataProcInfo, (theType), (id), (dataHdl), (owner))
  1138. #endif
  1139. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1140. #define NewGXFetchTaggedDataProc(userRoutine)                   NewGXFetchTaggedDataUPP(userRoutine)
  1141. #define CallGXFetchTaggedDataProc(userRoutine, theType, id, dataHdl, owner) InvokeGXFetchTaggedDataUPP(theType, id, dataHdl, owner, userRoutine)
  1142. #define Send_GXFetchTaggedDriverData(tag, id, pHandle) Send_GXFetchTaggedData(tag, id, pHandle, 'drvr')
  1143. #define Forward_GXFetchTaggedDriverData(tag, id, pHandle) Forward_GXFetchTaggedData(tag, id, pHandle, 'drvr')
  1144. #define Send_GXFetchTaggedData(theType, id, dataHdl, owner) 
  1145.           MacSendMessage(0x0000002E, theType, id, dataHdl, owner)
  1146.  
  1147. #define Forward_GXFetchTaggedData(theType, id, dataHdl, owner) 
  1148.           ForwardThisMessage((void *) (theType), (void *) (id), (void *) (dataHdl), (void *) (owner))
  1149. typedef CALLBACK_API_C( OSErr , GXGetDTPMenuListProcPtr )(MenuHandle menuHdl);
  1150. typedef STACK_UPP_TYPE(GXGetDTPMenuListProcPtr)                 GXGetDTPMenuListUPP;
  1151. #if OPAQUE_UPP_TYPES
  1152. #if CALL_NOT_IN_CARBON
  1153.     EXTERN_API(GXGetDTPMenuListUPP)
  1154.     NewGXGetDTPMenuListUPP         (GXGetDTPMenuListProcPtr userRoutine);
  1155.     EXTERN_API(void)
  1156.     DisposeGXGetDTPMenuListUPP     (GXGetDTPMenuListUPP     userUPP);
  1157.     EXTERN_API(OSErr)
  1158.     InvokeGXGetDTPMenuListUPP      (MenuHandle              menuHdl,
  1159.                                     GXGetDTPMenuListUPP     userUPP);
  1160. #endif  /* CALL_NOT_IN_CARBON */
  1161. #else
  1162.     enum { uppGXGetDTPMenuListProcInfo = 0x000000E1 };              /* 2_bytes Func(4_bytes) */
  1163.     #define NewGXGetDTPMenuListUPP(userRoutine)                     (GXGetDTPMenuListUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXGetDTPMenuListProcInfo, GetCurrentArchitecture())
  1164.     #define DisposeGXGetDTPMenuListUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  1165.     #define InvokeGXGetDTPMenuListUPP(menuHdl, userUPP)             (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXGetDTPMenuListProcInfo, (menuHdl))
  1166. #endif
  1167. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1168. #define NewGXGetDTPMenuListProc(userRoutine)                    NewGXGetDTPMenuListUPP(userRoutine)
  1169. #define CallGXGetDTPMenuListProc(userRoutine, menuHdl)          InvokeGXGetDTPMenuListUPP(menuHdl, userRoutine)
  1170. #define Send_GXGetDTPMenuList(menuHdl) 
  1171.             MacSendMessage(0x0000002F, menuHdl)
  1172.  
  1173. #define Forward_GXGetDTPMenuList(menuHdl) 
  1174.             ForwardThisMessage((void *) (menuHdl))
  1175. typedef CALLBACK_API_C( OSErr , GXDTPMenuSelectProcPtr )(long id);
  1176. typedef STACK_UPP_TYPE(GXDTPMenuSelectProcPtr)                  GXDTPMenuSelectUPP;
  1177. #if OPAQUE_UPP_TYPES
  1178. #if CALL_NOT_IN_CARBON
  1179.     EXTERN_API(GXDTPMenuSelectUPP)
  1180.     NewGXDTPMenuSelectUPP          (GXDTPMenuSelectProcPtr  userRoutine);
  1181.     EXTERN_API(void)
  1182.     DisposeGXDTPMenuSelectUPP      (GXDTPMenuSelectUPP      userUPP);
  1183.     EXTERN_API(OSErr)
  1184.     InvokeGXDTPMenuSelectUPP       (long                    id,
  1185.                                     GXDTPMenuSelectUPP      userUPP);
  1186. #endif  /* CALL_NOT_IN_CARBON */
  1187. #else
  1188.     enum { uppGXDTPMenuSelectProcInfo = 0x000000E1 };               /* 2_bytes Func(4_bytes) */
  1189.     #define NewGXDTPMenuSelectUPP(userRoutine)                      (GXDTPMenuSelectUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDTPMenuSelectProcInfo, GetCurrentArchitecture())
  1190.     #define DisposeGXDTPMenuSelectUPP(userUPP)                      DisposeRoutineDescriptor(userUPP)
  1191.     #define InvokeGXDTPMenuSelectUPP(id, userUPP)                   (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDTPMenuSelectProcInfo, (id))
  1192. #endif
  1193. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1194. #define NewGXDTPMenuSelectProc(userRoutine)                     NewGXDTPMenuSelectUPP(userRoutine)
  1195. #define CallGXDTPMenuSelectProc(userRoutine, id)                InvokeGXDTPMenuSelectUPP(id, userRoutine)
  1196. #define Send_GXDTPMenuSelect(id) 
  1197.             MacSendMessage(0x00000030, id)
  1198.  
  1199. #define Forward_GXDTPMenuSelect(id) 
  1200.             ForwardThisMessage((void *) (id))
  1201. typedef CALLBACK_API_C( OSErr , GXHandleAlertFilterProcPtr )(gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed);
  1202. typedef STACK_UPP_TYPE(GXHandleAlertFilterProcPtr)              GXHandleAlertFilterUPP;
  1203. #if OPAQUE_UPP_TYPES
  1204. #if CALL_NOT_IN_CARBON
  1205.     EXTERN_API(GXHandleAlertFilterUPP)
  1206.     NewGXHandleAlertFilterUPP      (GXHandleAlertFilterProcPtr userRoutine);
  1207.     EXTERN_API(void)
  1208.     DisposeGXHandleAlertFilterUPP    (GXHandleAlertFilterUPP userUPP);
  1209.     EXTERN_API(OSErr)
  1210.     InvokeGXHandleAlertFilterUPP    (gxJob                  theJob,
  1211.                                     gxStatusRecord *        pStatusRec,
  1212.                                     DialogPtr               pDialog,
  1213.                                     EventRecord *           theEvent,
  1214.                                     short *                 itemHit,
  1215.                                     Boolean *               returnImmed,
  1216.                                     GXHandleAlertFilterUPP  userUPP);
  1217. #endif  /* CALL_NOT_IN_CARBON */
  1218. #else
  1219.     enum { uppGXHandleAlertFilterProcInfo = 0x0003FFE1 };           /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  1220.     #define NewGXHandleAlertFilterUPP(userRoutine)                  (GXHandleAlertFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertFilterProcInfo, GetCurrentArchitecture())
  1221.     #define DisposeGXHandleAlertFilterUPP(userUPP)                  DisposeRoutineDescriptor(userUPP)
  1222.     #define InvokeGXHandleAlertFilterUPP(theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed, userUPP)  (OSErr)CALL_SIX_PARAMETER_UPP((userUPP), uppGXHandleAlertFilterProcInfo, (theJob), (pStatusRec), (pDialog), (theEvent), (itemHit), (returnImmed))
  1223. #endif
  1224. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1225. #define NewGXHandleAlertFilterProc(userRoutine)                 NewGXHandleAlertFilterUPP(userRoutine)
  1226. #define CallGXHandleAlertFilterProc(userRoutine, theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed) InvokeGXHandleAlertFilterUPP(theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed, userRoutine)
  1227. #define Send_GXHandleAlertFilter(theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed) 
  1228.             MacSendMessage(0x00000031, theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed)
  1229.  
  1230. #define Forward_GXHandleAlertFilter(theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed) 
  1231.             ForwardThisMessage((void *) (theJob), (void *) (pStatusRec), (void *) (pDialog), (void *) (theEvent), 
  1232.                                      (void *) (itemHit), (void *) (returnImmed))
  1233. typedef CALLBACK_API_C( OSErr , GXJobFormatModeQueryProcPtr )(gxQueryType theQuery, void *srcData, void *dstData);
  1234. typedef STACK_UPP_TYPE(GXJobFormatModeQueryProcPtr)             GXJobFormatModeQueryUPP;
  1235. #if OPAQUE_UPP_TYPES
  1236. #if CALL_NOT_IN_CARBON
  1237.     EXTERN_API(GXJobFormatModeQueryUPP)
  1238.     NewGXJobFormatModeQueryUPP     (GXJobFormatModeQueryProcPtr userRoutine);
  1239.     EXTERN_API(void)
  1240.     DisposeGXJobFormatModeQueryUPP    (GXJobFormatModeQueryUPP userUPP);
  1241.     EXTERN_API(OSErr)
  1242.     InvokeGXJobFormatModeQueryUPP    (gxQueryType           theQuery,
  1243.                                     void *                  srcData,
  1244.                                     void *                  dstData,
  1245.                                     GXJobFormatModeQueryUPP userUPP);
  1246. #endif  /* CALL_NOT_IN_CARBON */
  1247. #else
  1248.     enum { uppGXJobFormatModeQueryProcInfo = 0x00000FE1 };          /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  1249.     #define NewGXJobFormatModeQueryUPP(userRoutine)                 (GXJobFormatModeQueryUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobFormatModeQueryProcInfo, GetCurrentArchitecture())
  1250.     #define DisposeGXJobFormatModeQueryUPP(userUPP)                 DisposeRoutineDescriptor(userUPP)
  1251.     #define InvokeGXJobFormatModeQueryUPP(theQuery, srcData, dstData, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXJobFormatModeQueryProcInfo, (theQuery), (srcData), (dstData))
  1252. #endif
  1253. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1254. #define NewGXJobFormatModeQueryProc(userRoutine)                NewGXJobFormatModeQueryUPP(userRoutine)
  1255. #define CallGXJobFormatModeQueryProc(userRoutine, theQuery, srcData, dstData) InvokeGXJobFormatModeQueryUPP(theQuery, srcData, dstData, userRoutine)
  1256. #define Send_GXJobFormatModeQuery(theQuery, srcData, dstData) 
  1257.           MacSendMessage(0x00000032, theQuery, srcData, dstData)
  1258.  
  1259. #define Forward_GXJobFormatModeQuery(theQuery, srcData, dstData) 
  1260.           ForwardThisMessage((void *) (theQuery), (void *) (srcData), (void *) (dstData))
  1261. typedef CALLBACK_API_C( OSErr , GXWriteStatusToDTPWindowProcPtr )(gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay);
  1262. typedef STACK_UPP_TYPE(GXWriteStatusToDTPWindowProcPtr)         GXWriteStatusToDTPWindowUPP;
  1263. #if OPAQUE_UPP_TYPES
  1264. #if CALL_NOT_IN_CARBON
  1265.     EXTERN_API(GXWriteStatusToDTPWindowUPP)
  1266.     NewGXWriteStatusToDTPWindowUPP    (GXWriteStatusToDTPWindowProcPtr userRoutine);
  1267.     EXTERN_API(void)
  1268.     DisposeGXWriteStatusToDTPWindowUPP    (GXWriteStatusToDTPWindowUPP userUPP);
  1269.     EXTERN_API(OSErr)
  1270.     InvokeGXWriteStatusToDTPWindowUPP    (gxStatusRecord *  pStatusRec,
  1271.                                     gxDisplayRecord *       pDisplay,
  1272.                                     GXWriteStatusToDTPWindowUPP userUPP);
  1273. #endif  /* CALL_NOT_IN_CARBON */
  1274. #else
  1275.     enum { uppGXWriteStatusToDTPWindowProcInfo = 0x000003E1 };      /* 2_bytes Func(4_bytes, 4_bytes) */
  1276.     #define NewGXWriteStatusToDTPWindowUPP(userRoutine)             (GXWriteStatusToDTPWindowUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXWriteStatusToDTPWindowProcInfo, GetCurrentArchitecture())
  1277.     #define DisposeGXWriteStatusToDTPWindowUPP(userUPP)             DisposeRoutineDescriptor(userUPP)
  1278.     #define InvokeGXWriteStatusToDTPWindowUPP(pStatusRec, pDisplay, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXWriteStatusToDTPWindowProcInfo, (pStatusRec), (pDisplay))
  1279. #endif
  1280. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1281. #define NewGXWriteStatusToDTPWindowProc(userRoutine)            NewGXWriteStatusToDTPWindowUPP(userRoutine)
  1282. #define CallGXWriteStatusToDTPWindowProc(userRoutine, pStatusRec, pDisplay) InvokeGXWriteStatusToDTPWindowUPP(pStatusRec, pDisplay, userRoutine)
  1283. #define Send_GXWriteStatusToDTPWindow(pStatusRec, pDisplay) 
  1284.           MacSendMessage(0x00000033, pStatusRec, pDisplay)
  1285.  
  1286. #define Forward_GXWriteStatusToDTPWindow(pStatusRec, pDisplay) 
  1287.           ForwardThisMessage((void *) (pStatusRec), (void *) (pDisplay))
  1288. typedef CALLBACK_API_C( OSErr , GXInitializeStatusAlertProcPtr )(gxStatusRecord *pStatusRec, DialogPtr *pDialog);
  1289. typedef STACK_UPP_TYPE(GXInitializeStatusAlertProcPtr)          GXInitializeStatusAlertUPP;
  1290. #if OPAQUE_UPP_TYPES
  1291. #if CALL_NOT_IN_CARBON
  1292.     EXTERN_API(GXInitializeStatusAlertUPP)
  1293.     NewGXInitializeStatusAlertUPP    (GXInitializeStatusAlertProcPtr userRoutine);
  1294.     EXTERN_API(void)
  1295.     DisposeGXInitializeStatusAlertUPP    (GXInitializeStatusAlertUPP userUPP);
  1296.     EXTERN_API(OSErr)
  1297.     InvokeGXInitializeStatusAlertUPP    (gxStatusRecord *   pStatusRec,
  1298.                                     DialogPtr *             pDialog,
  1299.                                     GXInitializeStatusAlertUPP userUPP);
  1300. #endif  /* CALL_NOT_IN_CARBON */
  1301. #else
  1302.     enum { uppGXInitializeStatusAlertProcInfo = 0x000003E1 };       /* 2_bytes Func(4_bytes, 4_bytes) */
  1303.     #define NewGXInitializeStatusAlertUPP(userRoutine)              (GXInitializeStatusAlertUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXInitializeStatusAlertProcInfo, GetCurrentArchitecture())
  1304.     #define DisposeGXInitializeStatusAlertUPP(userUPP)              DisposeRoutineDescriptor(userUPP)
  1305.     #define InvokeGXInitializeStatusAlertUPP(pStatusRec, pDialog, userUPP)  (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXInitializeStatusAlertProcInfo, (pStatusRec), (pDialog))
  1306. #endif
  1307. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1308. #define NewGXInitializeStatusAlertProc(userRoutine)             NewGXInitializeStatusAlertUPP(userRoutine)
  1309. #define CallGXInitializeStatusAlertProc(userRoutine, pStatusRec, pDialog) InvokeGXInitializeStatusAlertUPP(pStatusRec, pDialog, userRoutine)
  1310. #define Send_GXInitializeStatusAlert(pStatusRec, pDialog) 
  1311.           MacSendMessage(0x00000034, pStatusRec, pDialog)
  1312.  
  1313. #define Forward_GXInitializeStatusAlert(pStatusRec, pDialog) 
  1314.           ForwardThisMessage((void *) (pStatusRec), (void *) (pDialog))
  1315. typedef CALLBACK_API_C( OSErr , GXHandleAlertStatusProcPtr )(gxStatusRecord *pStatusRec);
  1316. typedef STACK_UPP_TYPE(GXHandleAlertStatusProcPtr)              GXHandleAlertStatusUPP;
  1317. #if OPAQUE_UPP_TYPES
  1318. #if CALL_NOT_IN_CARBON
  1319.     EXTERN_API(GXHandleAlertStatusUPP)
  1320.     NewGXHandleAlertStatusUPP      (GXHandleAlertStatusProcPtr userRoutine);
  1321.     EXTERN_API(void)
  1322.     DisposeGXHandleAlertStatusUPP    (GXHandleAlertStatusUPP userUPP);
  1323.     EXTERN_API(OSErr)
  1324.     InvokeGXHandleAlertStatusUPP    (gxStatusRecord *       pStatusRec,
  1325.                                     GXHandleAlertStatusUPP  userUPP);
  1326. #endif  /* CALL_NOT_IN_CARBON */
  1327. #else
  1328.     enum { uppGXHandleAlertStatusProcInfo = 0x000000E1 };           /* 2_bytes Func(4_bytes) */
  1329.     #define NewGXHandleAlertStatusUPP(userRoutine)                  (GXHandleAlertStatusUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertStatusProcInfo, GetCurrentArchitecture())
  1330.     #define DisposeGXHandleAlertStatusUPP(userUPP)                  DisposeRoutineDescriptor(userUPP)
  1331.     #define InvokeGXHandleAlertStatusUPP(pStatusRec, userUPP)       (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXHandleAlertStatusProcInfo, (pStatusRec))
  1332. #endif
  1333. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1334. #define NewGXHandleAlertStatusProc(userRoutine)                 NewGXHandleAlertStatusUPP(userRoutine)
  1335. #define CallGXHandleAlertStatusProc(userRoutine, pStatusRec)    InvokeGXHandleAlertStatusUPP(pStatusRec, userRoutine)
  1336. #define Send_GXHandleAlertStatus(pStatusRec) 
  1337.           MacSendMessage(0x00000035, pStatusRec)
  1338.  
  1339. #define Forward_GXHandleAlertStatus(pStatusRec) 
  1340.           ForwardThisMessage((void *) (pStatusRec))
  1341. typedef CALLBACK_API_C( OSErr , GXHandleAlertEventProcPtr )(gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response);
  1342. typedef STACK_UPP_TYPE(GXHandleAlertEventProcPtr)               GXHandleAlertEventUPP;
  1343. #if OPAQUE_UPP_TYPES
  1344. #if CALL_NOT_IN_CARBON
  1345.     EXTERN_API(GXHandleAlertEventUPP)
  1346.     NewGXHandleAlertEventUPP       (GXHandleAlertEventProcPtr userRoutine);
  1347.     EXTERN_API(void)
  1348.     DisposeGXHandleAlertEventUPP    (GXHandleAlertEventUPP  userUPP);
  1349.     EXTERN_API(OSErr)
  1350.     InvokeGXHandleAlertEventUPP    (gxStatusRecord *        pStatusRec,
  1351.                                     DialogPtr               pDialog,
  1352.                                     EventRecord *           theEvent,
  1353.                                     short *                 response,
  1354.                                     GXHandleAlertEventUPP   userUPP);
  1355. #endif  /* CALL_NOT_IN_CARBON */
  1356. #else
  1357.     enum { uppGXHandleAlertEventProcInfo = 0x00003FE1 };            /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  1358.     #define NewGXHandleAlertEventUPP(userRoutine)                   (GXHandleAlertEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertEventProcInfo, GetCurrentArchitecture())
  1359.     #define DisposeGXHandleAlertEventUPP(userUPP)                   DisposeRoutineDescriptor(userUPP)
  1360.     #define InvokeGXHandleAlertEventUPP(pStatusRec, pDialog, theEvent, response, userUPP)  (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXHandleAlertEventProcInfo, (pStatusRec), (pDialog), (theEvent), (response))
  1361. #endif
  1362. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1363. #define NewGXHandleAlertEventProc(userRoutine)                  NewGXHandleAlertEventUPP(userRoutine)
  1364. #define CallGXHandleAlertEventProc(userRoutine, pStatusRec, pDialog, theEvent, response) InvokeGXHandleAlertEventUPP(pStatusRec, pDialog, theEvent, response, userRoutine)
  1365. #define Send_GXHandleAlertEvent(pStatusRec, pDialog, theEvent, response) 
  1366.           MacSendMessage(0x00000036, pStatusRec, pDialog, theEvent, response)
  1367.  
  1368. #define Forward_GXHandleAlertEvent(pStatusRec, pDialog, theEvent, response) 
  1369.           ForwardThisMessage((void *) (pStatusRec), (void *) (pDialog), 
  1370.                                     (void *) (theEvent), (void *) (response))
  1371. typedef CALLBACK_API_C( void , GXCleanupStartJobProcPtr )(void );
  1372. typedef STACK_UPP_TYPE(GXCleanupStartJobProcPtr)                GXCleanupStartJobUPP;
  1373. #if OPAQUE_UPP_TYPES
  1374. #if CALL_NOT_IN_CARBON
  1375.     EXTERN_API(GXCleanupStartJobUPP)
  1376.     NewGXCleanupStartJobUPP        (GXCleanupStartJobProcPtr userRoutine);
  1377.     EXTERN_API(void)
  1378.     DisposeGXCleanupStartJobUPP    (GXCleanupStartJobUPP    userUPP);
  1379.     EXTERN_API(void)
  1380.     InvokeGXCleanupStartJobUPP     (GXCleanupStartJobUPP    userUPP);
  1381. #endif  /* CALL_NOT_IN_CARBON */
  1382. #else
  1383.     enum { uppGXCleanupStartJobProcInfo = 0x00000001 };             /* no_return_value Func() */
  1384.     #define NewGXCleanupStartJobUPP(userRoutine)                    (GXCleanupStartJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartJobProcInfo, GetCurrentArchitecture())
  1385.     #define DisposeGXCleanupStartJobUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
  1386.     #define InvokeGXCleanupStartJobUPP(userUPP)                     CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCleanupStartJobProcInfo)
  1387. #endif
  1388. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1389. #define NewGXCleanupStartJobProc(userRoutine)                   NewGXCleanupStartJobUPP(userRoutine)
  1390. #define CallGXCleanupStartJobProc(userRoutine)                  InvokeGXCleanupStartJobUPP(userRoutine)
  1391. #define Send_GXCleanupStartJob() ((void) MacSendMessage(0x00000037))
  1392. #define Forward_GXCleanupStartJob() ((void) ForwardThisMessage((void *) (0)))
  1393. typedef CALLBACK_API_C( void , GXCleanupStartPageProcPtr )(void );
  1394. typedef STACK_UPP_TYPE(GXCleanupStartPageProcPtr)               GXCleanupStartPageUPP;
  1395. #if OPAQUE_UPP_TYPES
  1396. #if CALL_NOT_IN_CARBON
  1397.     EXTERN_API(GXCleanupStartPageUPP)
  1398.     NewGXCleanupStartPageUPP       (GXCleanupStartPageProcPtr userRoutine);
  1399.     EXTERN_API(void)
  1400.     DisposeGXCleanupStartPageUPP    (GXCleanupStartPageUPP  userUPP);
  1401.     EXTERN_API(void)
  1402.     InvokeGXCleanupStartPageUPP    (GXCleanupStartPageUPP   userUPP);
  1403. #endif  /* CALL_NOT_IN_CARBON */
  1404. #else
  1405.     enum { uppGXCleanupStartPageProcInfo = 0x00000001 };            /* no_return_value Func() */
  1406.     #define NewGXCleanupStartPageUPP(userRoutine)                   (GXCleanupStartPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartPageProcInfo, GetCurrentArchitecture())
  1407.     #define DisposeGXCleanupStartPageUPP(userUPP)                   DisposeRoutineDescriptor(userUPP)
  1408.     #define InvokeGXCleanupStartPageUPP(userUPP)                    CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCleanupStartPageProcInfo)
  1409. #endif
  1410. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1411. #define NewGXCleanupStartPageProc(userRoutine)                  NewGXCleanupStartPageUPP(userRoutine)
  1412. #define CallGXCleanupStartPageProc(userRoutine)                 InvokeGXCleanupStartPageUPP(userRoutine)
  1413. #define Send_GXCleanupStartPage() ((void) MacSendMessage(0x00000038))
  1414. #define Forward_GXCleanupStartPage() ((void) ForwardThisMessage((void *) (0)))
  1415. typedef CALLBACK_API_C( void , GXCleanupOpenConnectionProcPtr )(void );
  1416. typedef STACK_UPP_TYPE(GXCleanupOpenConnectionProcPtr)          GXCleanupOpenConnectionUPP;
  1417. #if OPAQUE_UPP_TYPES
  1418. #if CALL_NOT_IN_CARBON
  1419.     EXTERN_API(GXCleanupOpenConnectionUPP)
  1420.     NewGXCleanupOpenConnectionUPP    (GXCleanupOpenConnectionProcPtr userRoutine);
  1421.     EXTERN_API(void)
  1422.     DisposeGXCleanupOpenConnectionUPP    (GXCleanupOpenConnectionUPP userUPP);
  1423.     EXTERN_API(void)
  1424.     InvokeGXCleanupOpenConnectionUPP    (GXCleanupOpenConnectionUPP userUPP);
  1425. #endif  /* CALL_NOT_IN_CARBON */
  1426. #else
  1427.     enum { uppGXCleanupOpenConnectionProcInfo = 0x00000001 };       /* no_return_value Func() */
  1428.     #define NewGXCleanupOpenConnectionUPP(userRoutine)              (GXCleanupOpenConnectionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupOpenConnectionProcInfo, GetCurrentArchitecture())
  1429.     #define DisposeGXCleanupOpenConnectionUPP(userUPP)              DisposeRoutineDescriptor(userUPP)
  1430.     #define InvokeGXCleanupOpenConnectionUPP(userUPP)               CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCleanupOpenConnectionProcInfo)
  1431. #endif
  1432. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1433. #define NewGXCleanupOpenConnectionProc(userRoutine)             NewGXCleanupOpenConnectionUPP(userRoutine)
  1434. #define CallGXCleanupOpenConnectionProc(userRoutine)            InvokeGXCleanupOpenConnectionUPP(userRoutine)
  1435. #define Send_GXCleanupOpenConnection() ((void) MacSendMessage(0x00000039))
  1436. #define Forward_GXCleanupOpenConnection() ((void) ForwardThisMessage((void *) (0)))
  1437. typedef CALLBACK_API_C( void , GXCleanupStartSendPageProcPtr )(void );
  1438. typedef STACK_UPP_TYPE(GXCleanupStartSendPageProcPtr)           GXCleanupStartSendPageUPP;
  1439. #if OPAQUE_UPP_TYPES
  1440. #if CALL_NOT_IN_CARBON
  1441.     EXTERN_API(GXCleanupStartSendPageUPP)
  1442.     NewGXCleanupStartSendPageUPP    (GXCleanupStartSendPageProcPtr userRoutine);
  1443.     EXTERN_API(void)
  1444.     DisposeGXCleanupStartSendPageUPP    (GXCleanupStartSendPageUPP userUPP);
  1445.     EXTERN_API(void)
  1446.     InvokeGXCleanupStartSendPageUPP    (GXCleanupStartSendPageUPP userUPP);
  1447. #endif  /* CALL_NOT_IN_CARBON */
  1448. #else
  1449.     enum { uppGXCleanupStartSendPageProcInfo = 0x00000001 };        /* no_return_value Func() */
  1450.     #define NewGXCleanupStartSendPageUPP(userRoutine)               (GXCleanupStartSendPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartSendPageProcInfo, GetCurrentArchitecture())
  1451.     #define DisposeGXCleanupStartSendPageUPP(userUPP)               DisposeRoutineDescriptor(userUPP)
  1452.     #define InvokeGXCleanupStartSendPageUPP(userUPP)                CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCleanupStartSendPageProcInfo)
  1453. #endif
  1454. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1455. #define NewGXCleanupStartSendPageProc(userRoutine)              NewGXCleanupStartSendPageUPP(userRoutine)
  1456. #define CallGXCleanupStartSendPageProc(userRoutine)             InvokeGXCleanupStartSendPageUPP(userRoutine)
  1457. #define Send_GXCleanupStartSendPage()  ((void) MacSendMessage(0x0000003A))
  1458. #define Forward_GXCleanupStartSendPage() ((void) ForwardThisMessage((void *) (0)))
  1459. typedef CALLBACK_API_C( OSErr , GXDefaultDesktopPrinterProcPtr )(Str31 dtpName);
  1460. typedef STACK_UPP_TYPE(GXDefaultDesktopPrinterProcPtr)          GXDefaultDesktopPrinterUPP;
  1461. #if OPAQUE_UPP_TYPES
  1462. #if CALL_NOT_IN_CARBON
  1463.     EXTERN_API(GXDefaultDesktopPrinterUPP)
  1464.     NewGXDefaultDesktopPrinterUPP    (GXDefaultDesktopPrinterProcPtr userRoutine);
  1465.     EXTERN_API(void)
  1466.     DisposeGXDefaultDesktopPrinterUPP    (GXDefaultDesktopPrinterUPP userUPP);
  1467.     EXTERN_API(OSErr)
  1468.     InvokeGXDefaultDesktopPrinterUPP    (Str31              dtpName,
  1469.                                     GXDefaultDesktopPrinterUPP userUPP);
  1470. #endif  /* CALL_NOT_IN_CARBON */
  1471. #else
  1472.     enum { uppGXDefaultDesktopPrinterProcInfo = 0x000000E1 };       /* 2_bytes Func(4_bytes) */
  1473.     #define NewGXDefaultDesktopPrinterUPP(userRoutine)              (GXDefaultDesktopPrinterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultDesktopPrinterProcInfo, GetCurrentArchitecture())
  1474.     #define DisposeGXDefaultDesktopPrinterUPP(userUPP)              DisposeRoutineDescriptor(userUPP)
  1475.     #define InvokeGXDefaultDesktopPrinterUPP(dtpName, userUPP)      (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDefaultDesktopPrinterProcInfo, (dtpName))
  1476. #endif
  1477. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1478. #define NewGXDefaultDesktopPrinterProc(userRoutine)             NewGXDefaultDesktopPrinterUPP(userRoutine)
  1479. #define CallGXDefaultDesktopPrinterProc(userRoutine, dtpName)   InvokeGXDefaultDesktopPrinterUPP(dtpName, userRoutine)
  1480. #define Send_GXDefaultDesktopPrinter(dtpName) MacSendMessage(0x0000003B, dtpName)
  1481. #define Forward_GXDefaultDesktopPrinter(dtpName) ForwardThisMessage((void *) (dtpName))
  1482. typedef CALLBACK_API_C( OSErr , GXCaptureOutputDeviceProcPtr )(Boolean capture);
  1483. typedef STACK_UPP_TYPE(GXCaptureOutputDeviceProcPtr)            GXCaptureOutputDeviceUPP;
  1484. #if OPAQUE_UPP_TYPES
  1485. #if CALL_NOT_IN_CARBON
  1486.     EXTERN_API(GXCaptureOutputDeviceUPP)
  1487.     NewGXCaptureOutputDeviceUPP    (GXCaptureOutputDeviceProcPtr userRoutine);
  1488.     EXTERN_API(void)
  1489.     DisposeGXCaptureOutputDeviceUPP    (GXCaptureOutputDeviceUPP userUPP);
  1490.     EXTERN_API(OSErr)
  1491.     InvokeGXCaptureOutputDeviceUPP    (Boolean              capture,
  1492.                                     GXCaptureOutputDeviceUPP userUPP);
  1493. #endif  /* CALL_NOT_IN_CARBON */
  1494. #else
  1495.     enum { uppGXCaptureOutputDeviceProcInfo = 0x00000061 };         /* 2_bytes Func(1_byte) */
  1496.     #define NewGXCaptureOutputDeviceUPP(userRoutine)                (GXCaptureOutputDeviceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCaptureOutputDeviceProcInfo, GetCurrentArchitecture())
  1497.     #define DisposeGXCaptureOutputDeviceUPP(userUPP)                DisposeRoutineDescriptor(userUPP)
  1498.     #define InvokeGXCaptureOutputDeviceUPP(capture, userUPP)        (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXCaptureOutputDeviceProcInfo, (capture))
  1499. #endif
  1500. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1501. #define NewGXCaptureOutputDeviceProc(userRoutine)               NewGXCaptureOutputDeviceUPP(userRoutine)
  1502. #define CallGXCaptureOutputDeviceProc(userRoutine, capture)     InvokeGXCaptureOutputDeviceUPP(capture, userRoutine)
  1503. #define Send_GXCaptureOutputDevice(capture) MacSendMessage(0x0000003C, capture)
  1504. #define Forward_GXCaptureOutputDevice(capture) ForwardThisMessage((void *) (capture))
  1505. typedef CALLBACK_API_C( OSErr , GXOpenConnectionRetryProcPtr )(ResType theType, void *aVoid, Boolean *retryopenPtr, OSErr anErr);
  1506. typedef STACK_UPP_TYPE(GXOpenConnectionRetryProcPtr)            GXOpenConnectionRetryUPP;
  1507. #if OPAQUE_UPP_TYPES
  1508. #if CALL_NOT_IN_CARBON
  1509.     EXTERN_API(GXOpenConnectionRetryUPP)
  1510.     NewGXOpenConnectionRetryUPP    (GXOpenConnectionRetryProcPtr userRoutine);
  1511.     EXTERN_API(void)
  1512.     DisposeGXOpenConnectionRetryUPP    (GXOpenConnectionRetryUPP userUPP);
  1513.     EXTERN_API(OSErr)
  1514.     InvokeGXOpenConnectionRetryUPP    (ResType              theType,
  1515.                                     void *                  aVoid,
  1516.                                     Boolean *               retryopenPtr,
  1517.                                     OSErr                   anErr,
  1518.                                     GXOpenConnectionRetryUPP userUPP);
  1519. #endif  /* CALL_NOT_IN_CARBON */
  1520. #else
  1521.     enum { uppGXOpenConnectionRetryProcInfo = 0x00002FE1 };         /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 2_bytes) */
  1522.     #define NewGXOpenConnectionRetryUPP(userRoutine)                (GXOpenConnectionRetryUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXOpenConnectionRetryProcInfo, GetCurrentArchitecture())
  1523.     #define DisposeGXOpenConnectionRetryUPP(userUPP)                DisposeRoutineDescriptor(userUPP)
  1524.     #define InvokeGXOpenConnectionRetryUPP(theType, aVoid, retryopenPtr, anErr, userUPP)  (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXOpenConnectionRetryProcInfo, (theType), (aVoid), (retryopenPtr), (anErr))
  1525. #endif
  1526. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1527. #define NewGXOpenConnectionRetryProc(userRoutine)               NewGXOpenConnectionRetryUPP(userRoutine)
  1528. #define CallGXOpenConnectionRetryProc(userRoutine, theType, aVoid, retryopenPtr, anErr) InvokeGXOpenConnectionRetryUPP(theType, aVoid, retryopenPtr, anErr, userRoutine)
  1529. #define Send_GXOpenConnectionRetry(theType, aVoid, retryopenPtr, anErr) 
  1530.           MacSendMessage(0x0000003D, theType, aVoid, retryopenPtr, anErr)
  1531.  
  1532. #define Forward_GXOpenConnectionRetry(theType, aVoid, retryopenPtr, anErr) 
  1533.           ForwardThisMessage((void *) (theType), (void *) (aVoid), (void *) (retryopenPtr), (void *) (anErr))
  1534. typedef CALLBACK_API_C( OSErr , GXExamineSpoolFileProcPtr )(gxSpoolFile theSpoolFile);
  1535. typedef STACK_UPP_TYPE(GXExamineSpoolFileProcPtr)               GXExamineSpoolFileUPP;
  1536. #if OPAQUE_UPP_TYPES
  1537. #if CALL_NOT_IN_CARBON
  1538.     EXTERN_API(GXExamineSpoolFileUPP)
  1539.     NewGXExamineSpoolFileUPP       (GXExamineSpoolFileProcPtr userRoutine);
  1540.     EXTERN_API(void)
  1541.     DisposeGXExamineSpoolFileUPP    (GXExamineSpoolFileUPP  userUPP);
  1542.     EXTERN_API(OSErr)
  1543.     InvokeGXExamineSpoolFileUPP    (gxSpoolFile             theSpoolFile,
  1544.                                     GXExamineSpoolFileUPP   userUPP);
  1545. #endif  /* CALL_NOT_IN_CARBON */
  1546. #else
  1547.     enum { uppGXExamineSpoolFileProcInfo = 0x000000E1 };            /* 2_bytes Func(4_bytes) */
  1548.     #define NewGXExamineSpoolFileUPP(userRoutine)                   (GXExamineSpoolFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXExamineSpoolFileProcInfo, GetCurrentArchitecture())
  1549.     #define DisposeGXExamineSpoolFileUPP(userUPP)                   DisposeRoutineDescriptor(userUPP)
  1550.     #define InvokeGXExamineSpoolFileUPP(theSpoolFile, userUPP)      (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXExamineSpoolFileProcInfo, (theSpoolFile))
  1551. #endif
  1552. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1553. #define NewGXExamineSpoolFileProc(userRoutine)                  NewGXExamineSpoolFileUPP(userRoutine)
  1554. #define CallGXExamineSpoolFileProc(userRoutine, theSpoolFile)   InvokeGXExamineSpoolFileUPP(theSpoolFile, userRoutine)
  1555. #define Send_GXExamineSpoolFile(theSpoolFile) MacSendMessage(0x0000003E, theSpoolFile)
  1556. #define Forward_GXExamineSpoolFile(theSpoolFile) ForwardThisMessage((void *) (theSpoolFile))
  1557. typedef CALLBACK_API_C( OSErr , GXFinishSendPlaneProcPtr )(void );
  1558. typedef STACK_UPP_TYPE(GXFinishSendPlaneProcPtr)                GXFinishSendPlaneUPP;
  1559. #if OPAQUE_UPP_TYPES
  1560. #if CALL_NOT_IN_CARBON
  1561.     EXTERN_API(GXFinishSendPlaneUPP)
  1562.     NewGXFinishSendPlaneUPP        (GXFinishSendPlaneProcPtr userRoutine);
  1563.     EXTERN_API(void)
  1564.     DisposeGXFinishSendPlaneUPP    (GXFinishSendPlaneUPP    userUPP);
  1565.     EXTERN_API(OSErr)
  1566.     InvokeGXFinishSendPlaneUPP     (GXFinishSendPlaneUPP    userUPP);
  1567. #endif  /* CALL_NOT_IN_CARBON */
  1568. #else
  1569.     enum { uppGXFinishSendPlaneProcInfo = 0x00000021 };             /* 2_bytes Func() */
  1570.     #define NewGXFinishSendPlaneUPP(userRoutine)                    (GXFinishSendPlaneUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishSendPlaneProcInfo, GetCurrentArchitecture())
  1571.     #define DisposeGXFinishSendPlaneUPP(userUPP)                    DisposeRoutineDescriptor(userUPP)
  1572.     #define InvokeGXFinishSendPlaneUPP(userUPP)                     (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXFinishSendPlaneProcInfo)
  1573. #endif
  1574. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1575. #define NewGXFinishSendPlaneProc(userRoutine)                   NewGXFinishSendPlaneUPP(userRoutine)
  1576. #define CallGXFinishSendPlaneProc(userRoutine)                  InvokeGXFinishSendPlaneUPP(userRoutine)
  1577. #define Send_GXFinishSendPlane() MacSendMessage(0x0000003F)
  1578. #define Forward_GXFinishSendPlane() ForwardThisMessage((void *) (0))
  1579. typedef CALLBACK_API_C( OSErr , GXDoesPaperFitProcPtr )(gxTrayIndex whichTray, gxPaperType paper, Boolean *fits);
  1580. typedef STACK_UPP_TYPE(GXDoesPaperFitProcPtr)                   GXDoesPaperFitUPP;
  1581. #if OPAQUE_UPP_TYPES
  1582. #if CALL_NOT_IN_CARBON
  1583.     EXTERN_API(GXDoesPaperFitUPP)
  1584.     NewGXDoesPaperFitUPP           (GXDoesPaperFitProcPtr   userRoutine);
  1585.     EXTERN_API(void)
  1586.     DisposeGXDoesPaperFitUPP       (GXDoesPaperFitUPP       userUPP);
  1587.     EXTERN_API(OSErr)
  1588.     InvokeGXDoesPaperFitUPP        (gxTrayIndex             whichTray,
  1589.                                     gxPaperType             paper,
  1590.                                     Boolean *               fits,
  1591.                                     GXDoesPaperFitUPP       userUPP);
  1592. #endif  /* CALL_NOT_IN_CARBON */
  1593. #else
  1594.     enum { uppGXDoesPaperFitProcInfo = 0x00000FE1 };                /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  1595.     #define NewGXDoesPaperFitUPP(userRoutine)                       (GXDoesPaperFitUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDoesPaperFitProcInfo, GetCurrentArchitecture())
  1596.     #define DisposeGXDoesPaperFitUPP(userUPP)                       DisposeRoutineDescriptor(userUPP)
  1597.     #define InvokeGXDoesPaperFitUPP(whichTray, paper, fits, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXDoesPaperFitProcInfo, (whichTray), (paper), (fits))
  1598. #endif
  1599. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1600. #define NewGXDoesPaperFitProc(userRoutine)                      NewGXDoesPaperFitUPP(userRoutine)
  1601. #define CallGXDoesPaperFitProc(userRoutine, whichTray, paper, fits) InvokeGXDoesPaperFitUPP(whichTray, paper, fits, userRoutine)
  1602. #define Send_GXDoesPaperFit(whichTray, paper, fits) 
  1603.           MacSendMessage(0x00000040, whichTray, paper, fits)
  1604.  
  1605. #define Forward_GXDoesPaperFit(whichTray, paper, fits) 
  1606.           ForwardThisMessage((void *) (whichTray), (void *) (paper), (void *) (fits))
  1607. typedef CALLBACK_API_C( OSErr , GXChooserMessageProcPtr )(long message, long caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2);
  1608. typedef STACK_UPP_TYPE(GXChooserMessageProcPtr)                 GXChooserMessageUPP;
  1609. #if OPAQUE_UPP_TYPES
  1610. #if CALL_NOT_IN_CARBON
  1611.     EXTERN_API(GXChooserMessageUPP)
  1612.     NewGXChooserMessageUPP         (GXChooserMessageProcPtr userRoutine);
  1613.     EXTERN_API(void)
  1614.     DisposeGXChooserMessageUPP     (GXChooserMessageUPP     userUPP);
  1615.     EXTERN_API(OSErr)
  1616.     InvokeGXChooserMessageUPP      (long                    message,
  1617.                                     long                    caller,
  1618.                                     StringPtr               objName,
  1619.                                     StringPtr               zoneName,
  1620.                                     ListHandle              theList,
  1621.                                     long                    p2,
  1622.                                     GXChooserMessageUPP     userUPP);
  1623. #endif  /* CALL_NOT_IN_CARBON */
  1624. #else
  1625.     enum { uppGXChooserMessageProcInfo = 0x0003FFE1 };              /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  1626.     #define NewGXChooserMessageUPP(userRoutine)                     (GXChooserMessageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXChooserMessageProcInfo, GetCurrentArchitecture())
  1627.     #define DisposeGXChooserMessageUPP(userUPP)                     DisposeRoutineDescriptor(userUPP)
  1628.     #define InvokeGXChooserMessageUPP(message, caller, objName, zoneName, theList, p2, userUPP)  (OSErr)CALL_SIX_PARAMETER_UPP((userUPP), uppGXChooserMessageProcInfo, (message), (caller), (objName), (zoneName), (theList), (p2))
  1629. #endif
  1630. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1631. #define NewGXChooserMessageProc(userRoutine)                    NewGXChooserMessageUPP(userRoutine)
  1632. #define CallGXChooserMessageProc(userRoutine, message, caller, objName, zoneName, theList, p2) InvokeGXChooserMessageUPP(message, caller, objName, zoneName, theList, p2, userRoutine)
  1633. #define Send_GXChooserMessage(message, caller, objName, zoneName, theList, p2) 
  1634.           MacSendMessage(0x00000041, message, caller, objName, zoneName, theList, p2)
  1635.  
  1636. #define Forward_GXChooserMessage(message, caller, objName, zoneName, theList, p2) 
  1637.           ForwardThisMessage((void *) (message), (void *) (caller), (void *) (objName), 
  1638.                                     (void *) (zoneName), (void *) (theList), (void *) (p2))
  1639. typedef CALLBACK_API_C( OSErr , GXFindPrinterProfileProcPtr )(gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles);
  1640. typedef STACK_UPP_TYPE(GXFindPrinterProfileProcPtr)             GXFindPrinterProfileUPP;
  1641. #if OPAQUE_UPP_TYPES
  1642. #if CALL_NOT_IN_CARBON
  1643.     EXTERN_API(GXFindPrinterProfileUPP)
  1644.     NewGXFindPrinterProfileUPP     (GXFindPrinterProfileProcPtr userRoutine);
  1645.     EXTERN_API(void)
  1646.     DisposeGXFindPrinterProfileUPP    (GXFindPrinterProfileUPP userUPP);
  1647.     EXTERN_API(OSErr)
  1648.     InvokeGXFindPrinterProfileUPP    (gxPrinter             thePrinter,
  1649.                                     void *                  searchData,
  1650.                                     long                    index,
  1651.                                     gxColorProfile *        returnedProfile,
  1652.                                     long *                  numProfiles,
  1653.                                     GXFindPrinterProfileUPP userUPP);
  1654. #endif  /* CALL_NOT_IN_CARBON */
  1655. #else
  1656.     enum { uppGXFindPrinterProfileProcInfo = 0x0000FFE1 };          /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  1657.     #define NewGXFindPrinterProfileUPP(userRoutine)                 (GXFindPrinterProfileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFindPrinterProfileProcInfo, GetCurrentArchitecture())
  1658.     #define DisposeGXFindPrinterProfileUPP(userUPP)                 DisposeRoutineDescriptor(userUPP)
  1659.     #define InvokeGXFindPrinterProfileUPP(thePrinter, searchData, index, returnedProfile, numProfiles, userUPP)  (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppGXFindPrinterProfileProcInfo, (thePrinter), (searchData), (index), (returnedProfile), (numProfiles))
  1660. #endif
  1661. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1662. #define NewGXFindPrinterProfileProc(userRoutine)                NewGXFindPrinterProfileUPP(userRoutine)
  1663. #define CallGXFindPrinterProfileProc(userRoutine, thePrinter, searchData, index, returnedProfile, numProfiles) InvokeGXFindPrinterProfileUPP(thePrinter, searchData, index, returnedProfile, numProfiles, userRoutine)
  1664. #define Send_GXFindPrinterProfile(thePrinter, searchData, index, returnedProfile, numProfiles) 
  1665.           MacSendMessage(0x00000042, thePrinter, searchData, index, returnedProfile, numProfiles)
  1666.  
  1667. #define Forward_GXFindPrinterProfile(thePrinter, searchData, index, returnedProfile, numProfiles) 
  1668.           ForwardThisMessage((void *) (thePrinter), (void *) (searchData), (void *) (index), (void *) (returnedProfile), (void *) (numProfiles))
  1669. typedef CALLBACK_API_C( OSErr , GXFindFormatProfileProcPtr )(gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles);
  1670. typedef STACK_UPP_TYPE(GXFindFormatProfileProcPtr)              GXFindFormatProfileUPP;
  1671. #if OPAQUE_UPP_TYPES
  1672. #if CALL_NOT_IN_CARBON
  1673.     EXTERN_API(GXFindFormatProfileUPP)
  1674.     NewGXFindFormatProfileUPP      (GXFindFormatProfileProcPtr userRoutine);
  1675.     EXTERN_API(void)
  1676.     DisposeGXFindFormatProfileUPP    (GXFindFormatProfileUPP userUPP);
  1677.     EXTERN_API(OSErr)
  1678.     InvokeGXFindFormatProfileUPP    (gxFormat               theFormat,
  1679.                                     void *                  searchData,
  1680.                                     long                    index,
  1681.                                     gxColorProfile *        returnedProfile,
  1682.                                     long *                  numProfiles,
  1683.                                     GXFindFormatProfileUPP  userUPP);
  1684. #endif  /* CALL_NOT_IN_CARBON */
  1685. #else
  1686.     enum { uppGXFindFormatProfileProcInfo = 0x0000FFE1 };           /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  1687.     #define NewGXFindFormatProfileUPP(userRoutine)                  (GXFindFormatProfileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFindFormatProfileProcInfo, GetCurrentArchitecture())
  1688.     #define DisposeGXFindFormatProfileUPP(userUPP)                  DisposeRoutineDescriptor(userUPP)
  1689.     #define InvokeGXFindFormatProfileUPP(theFormat, searchData, index, returnedProfile, numProfiles, userUPP)  (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppGXFindFormatProfileProcInfo, (theFormat), (searchData), (index), (returnedProfile), (numProfiles))
  1690. #endif
  1691. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1692. #define NewGXFindFormatProfileProc(userRoutine)                 NewGXFindFormatProfileUPP(userRoutine)
  1693. #define CallGXFindFormatProfileProc(userRoutine, theFormat, searchData, index, returnedProfile, numProfiles) InvokeGXFindFormatProfileUPP(theFormat, searchData, index, returnedProfile, numProfiles, userRoutine)
  1694. #define Send_GXFindFormatProfile(theFormat, searchData, index, returnedProfile, numProfiles) 
  1695.           MacSendMessage(0x00000043, theFormat, searchData, index, returnedProfile, numProfiles)
  1696.  
  1697. #define Forward_GXFindFormatProfile(theFormat, searchData, index, returnedProfile, numProfiles) 
  1698.           ForwardThisMessage((void *) (theFormat), (void *) (searchData), (void *) (index), (void *) (returnedProfile), 
  1699.                                     (void *) (numProfiles))
  1700. typedef CALLBACK_API_C( OSErr , GXSetPrinterProfileProcPtr )(gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile);
  1701. typedef STACK_UPP_TYPE(GXSetPrinterProfileProcPtr)              GXSetPrinterProfileUPP;
  1702. #if OPAQUE_UPP_TYPES
  1703. #if CALL_NOT_IN_CARBON
  1704.     EXTERN_API(GXSetPrinterProfileUPP)
  1705.     NewGXSetPrinterProfileUPP      (GXSetPrinterProfileProcPtr userRoutine);
  1706.     EXTERN_API(void)
  1707.     DisposeGXSetPrinterProfileUPP    (GXSetPrinterProfileUPP userUPP);
  1708.     EXTERN_API(OSErr)
  1709.     InvokeGXSetPrinterProfileUPP    (gxPrinter              thePrinter,
  1710.                                     gxColorProfile          oldProfile,
  1711.                                     gxColorProfile          newProfile,
  1712.                                     GXSetPrinterProfileUPP  userUPP);
  1713. #endif  /* CALL_NOT_IN_CARBON */
  1714. #else
  1715.     enum { uppGXSetPrinterProfileProcInfo = 0x00000FE1 };           /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  1716.     #define NewGXSetPrinterProfileUPP(userRoutine)                  (GXSetPrinterProfileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetPrinterProfileProcInfo, GetCurrentArchitecture())
  1717.     #define DisposeGXSetPrinterProfileUPP(userUPP)                  DisposeRoutineDescriptor(userUPP)
  1718.     #define InvokeGXSetPrinterProfileUPP(thePrinter, oldProfile, newProfile, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSetPrinterProfileProcInfo, (thePrinter), (oldProfile), (newProfile))
  1719. #endif
  1720. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1721. #define NewGXSetPrinterProfileProc(userRoutine)                 NewGXSetPrinterProfileUPP(userRoutine)
  1722. #define CallGXSetPrinterProfileProc(userRoutine, thePrinter, oldProfile, newProfile) InvokeGXSetPrinterProfileUPP(thePrinter, oldProfile, newProfile, userRoutine)
  1723. #define Send_GXSetPrinterProfile(thePrinter, oldProfile, newProfile) 
  1724.           MacSendMessage(0x00000044, thePrinter, oldProfile, newProfile)
  1725.  
  1726. #define Forward_GXSetPrinterProfile(thePrinter, oldProfile, newProfile) 
  1727.           ForwardThisMessage((void *) (thePrinter), (void *) (oldProfile), (void *) (newProfile))
  1728. typedef CALLBACK_API_C( OSErr , GXSetFormatProfileProcPtr )(gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile);
  1729. typedef STACK_UPP_TYPE(GXSetFormatProfileProcPtr)               GXSetFormatProfileUPP;
  1730. #if OPAQUE_UPP_TYPES
  1731. #if CALL_NOT_IN_CARBON
  1732.     EXTERN_API(GXSetFormatProfileUPP)
  1733.     NewGXSetFormatProfileUPP       (GXSetFormatProfileProcPtr userRoutine);
  1734.     EXTERN_API(void)
  1735.     DisposeGXSetFormatProfileUPP    (GXSetFormatProfileUPP  userUPP);
  1736.     EXTERN_API(OSErr)
  1737.     InvokeGXSetFormatProfileUPP    (gxFormat                theFormat,
  1738.                                     gxColorProfile          oldProfile,
  1739.                                     gxColorProfile          newProfile,
  1740.                                     GXSetFormatProfileUPP   userUPP);
  1741. #endif  /* CALL_NOT_IN_CARBON */
  1742. #else
  1743.     enum { uppGXSetFormatProfileProcInfo = 0x00000FE1 };            /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  1744.     #define NewGXSetFormatProfileUPP(userRoutine)                   (GXSetFormatProfileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetFormatProfileProcInfo, GetCurrentArchitecture())
  1745.     #define DisposeGXSetFormatProfileUPP(userUPP)                   DisposeRoutineDescriptor(userUPP)
  1746.     #define InvokeGXSetFormatProfileUPP(theFormat, oldProfile, newProfile, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSetFormatProfileProcInfo, (theFormat), (oldProfile), (newProfile))
  1747. #endif
  1748. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1749. #define NewGXSetFormatProfileProc(userRoutine)                  NewGXSetFormatProfileUPP(userRoutine)
  1750. #define CallGXSetFormatProfileProc(userRoutine, theFormat, oldProfile, newProfile) InvokeGXSetFormatProfileUPP(theFormat, oldProfile, newProfile, userRoutine)
  1751. #define Send_GXSetFormatProfile(theFormat, oldProfile, newProfile) 
  1752.           MacSendMessage(0x00000045, theFormat, oldProfile, newProfile)
  1753.  
  1754. #define Forward_GXSetFormatProfile(theFormat, oldProfile, newProfile) 
  1755.           ForwardThisMessage((void *) (theFormat), (void *) (oldProfile), (void *) (newProfile))
  1756. typedef CALLBACK_API_C( OSErr , GXHandleAltDestinationProcPtr )(Boolean *userCancels);
  1757. typedef STACK_UPP_TYPE(GXHandleAltDestinationProcPtr)           GXHandleAltDestinationUPP;
  1758. #if OPAQUE_UPP_TYPES
  1759. #if CALL_NOT_IN_CARBON
  1760.     EXTERN_API(GXHandleAltDestinationUPP)
  1761.     NewGXHandleAltDestinationUPP    (GXHandleAltDestinationProcPtr userRoutine);
  1762.     EXTERN_API(void)
  1763.     DisposeGXHandleAltDestinationUPP    (GXHandleAltDestinationUPP userUPP);
  1764.     EXTERN_API(OSErr)
  1765.     InvokeGXHandleAltDestinationUPP    (Boolean *           userCancels,
  1766.                                     GXHandleAltDestinationUPP userUPP);
  1767. #endif  /* CALL_NOT_IN_CARBON */
  1768. #else
  1769.     enum { uppGXHandleAltDestinationProcInfo = 0x000000E1 };        /* 2_bytes Func(4_bytes) */
  1770.     #define NewGXHandleAltDestinationUPP(userRoutine)               (GXHandleAltDestinationUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAltDestinationProcInfo, GetCurrentArchitecture())
  1771.     #define DisposeGXHandleAltDestinationUPP(userUPP)               DisposeRoutineDescriptor(userUPP)
  1772.     #define InvokeGXHandleAltDestinationUPP(userCancels, userUPP)   (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXHandleAltDestinationProcInfo, (userCancels))
  1773. #endif
  1774. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1775. #define NewGXHandleAltDestinationProc(userRoutine)              NewGXHandleAltDestinationUPP(userRoutine)
  1776. #define CallGXHandleAltDestinationProc(userRoutine, userCancels) InvokeGXHandleAltDestinationUPP(userCancels, userRoutine)
  1777. #define Send_GXHandleAltDestination(userCancels) MacSendMessage(0x00000046, userCancels)
  1778. #define Forward_GXHandleAltDestination(userCancels) ForwardThisMessage((void *) (userCancels))
  1779. typedef CALLBACK_API_C( OSErr , GXSetupPageImageDataProcPtr )(gxFormat theFormat, gxShape thePage, void *imageData);
  1780. typedef STACK_UPP_TYPE(GXSetupPageImageDataProcPtr)             GXSetupPageImageDataUPP;
  1781. #if OPAQUE_UPP_TYPES
  1782. #if CALL_NOT_IN_CARBON
  1783.     EXTERN_API(GXSetupPageImageDataUPP)
  1784.     NewGXSetupPageImageDataUPP     (GXSetupPageImageDataProcPtr userRoutine);
  1785.     EXTERN_API(void)
  1786.     DisposeGXSetupPageImageDataUPP    (GXSetupPageImageDataUPP userUPP);
  1787.     EXTERN_API(OSErr)
  1788.     InvokeGXSetupPageImageDataUPP    (gxFormat              theFormat,
  1789.                                     gxShape                 thePage,
  1790.                                     void *                  imageData,
  1791.                                     GXSetupPageImageDataUPP userUPP);
  1792. #endif  /* CALL_NOT_IN_CARBON */
  1793. #else
  1794.     enum { uppGXSetupPageImageDataProcInfo = 0x00000FE1 };          /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
  1795.     #define NewGXSetupPageImageDataUPP(userRoutine)                 (GXSetupPageImageDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetupPageImageDataProcInfo, GetCurrentArchitecture())
  1796.     #define DisposeGXSetupPageImageDataUPP(userUPP)                 DisposeRoutineDescriptor(userUPP)
  1797.     #define InvokeGXSetupPageImageDataUPP(theFormat, thePage, imageData, userUPP)  (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSetupPageImageDataProcInfo, (theFormat), (thePage), (imageData))
  1798. #endif
  1799. /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
  1800. #define NewGXSetupPageImageDataProc(userRoutine)                NewGXSetupPageImageDataUPP(userRoutine)
  1801. #define CallGXSetupPageImageDataProc(userRoutine, theFormat, thePage, imageData) InvokeGXSetupPageImageDataUPP(theFormat, thePage, imageData, userRoutine)
  1802. #define Send_GXSetupPageImageData(theFormat, thePage, imageData) 
  1803.           MacSendMessage(0x00000047, theFormat, thePage, imageData)
  1804.  
  1805. #define Forward_GXSetupPageImageData(theFormat, thePage, imageData) 
  1806.           ForwardThisMessage((void *) (theFormat), (void *) (thePage), (void *) (imageData))
  1807. /*******************************************************************
  1808.                 Start of old "GXPrintingErrors.h/a/p" interface file.
  1809.         ********************************************************************/
  1810. enum {
  1811.     gxPrintingResultBase        = -510                          /*First QuickDraw GX printing error code.*/
  1812. };
  1813. /*RESULT CODES FOR QUICKDRAW GX PRINTING OPERATIONS*/
  1814. enum {
  1815.     gxAioTimeout                = (gxPrintingResultBase),       /*-510 : Timeout condition occurred during operation*/
  1816.     gxAioBadRqstState           = (gxPrintingResultBase - 1),   /*-511 : Async I/O request in invalid state for operation*/
  1817.     gxAioBadConn                = (gxPrintingResultBase - 2),   /*-512 : Invalid Async I/O connection refnum*/
  1818.     gxAioInvalidXfer            = (gxPrintingResultBase - 3),   /*-513 : Read data transfer structure contained bad values*/
  1819.     gxAioNoRqstBlks             = (gxPrintingResultBase - 4),   /*-514 : No available request blocks to process request*/
  1820.     gxAioNoDataXfer             = (gxPrintingResultBase - 5),   /*-515 : Data transfer structure pointer not specified*/
  1821.     gxAioTooManyAutos           = (gxPrintingResultBase - 6),   /*-516 : Auto status request already active*/
  1822.     gxAioNoAutoStat             = (gxPrintingResultBase - 7),   /*-517 : Connection not configured for auto status*/
  1823.     gxAioBadRqstID              = (gxPrintingResultBase - 8),   /*-518 : Invalid I/O request identifier*/
  1824.     gxAioCantKill               = (gxPrintingResultBase - 9),   /*-519 : Comm. protocol doesn't support I/O term*/
  1825.     gxAioAlreadyExists          = (gxPrintingResultBase - 10),  /*-520 : Protocol spec. data already specified*/
  1826.     gxAioCantFind               = (gxPrintingResultBase - 11),  /*-521 : Protocol spec. data does not exist*/
  1827.     gxAioDeviceDisconn          = (gxPrintingResultBase - 12),  /*-522 : Machine disconnected from printer*/
  1828.     gxAioNotImplemented         = (gxPrintingResultBase - 13),  /*-523 : Function not implemented*/
  1829.     gxAioOpenPending            = (gxPrintingResultBase - 14),  /*-524 : Opening a connection for protocol, but another open pending*/
  1830.     gxAioNoProtocolData         = (gxPrintingResultBase - 15),  /*-525 : No protocol specific data specified in request*/
  1831.     gxAioRqstKilled             = (gxPrintingResultBase - 16),  /*-526 : I/O request was terminated*/
  1832.     gxBadBaudRate               = (gxPrintingResultBase - 17),  /*-527 : Invalid baud rate specified*/
  1833.     gxBadParity                 = (gxPrintingResultBase - 18),  /*-528 : Invalid parity specified*/
  1834.     gxBadStopBits               = (gxPrintingResultBase - 19),  /*-529 : Invalid stop bits specified*/
  1835.     gxBadDataBits               = (gxPrintingResultBase - 20),  /*-530 : Invalid data bits specified*/
  1836.     gxBadPrinterName            = (gxPrintingResultBase - 21),  /*-531 : Bad printer name specified*/
  1837.     gxAioBadMsgType             = (gxPrintingResultBase - 22),  /*-532 : Bad masType field in transfer info structure*/
  1838.     gxAioCantFindDevice         = (gxPrintingResultBase - 23),  /*-533 : Cannot locate target device*/
  1839.     gxAioOutOfSeq               = (gxPrintingResultBase - 24),  /*-534 : Non-atomic SCSI requests submitted out of sequence*/
  1840.     gxPrIOAbortErr              = (gxPrintingResultBase - 25),  /*-535 : I/O operation aborted*/
  1841.     gxPrUserAbortErr            = (gxPrintingResultBase - 26),  /*-536 : User aborted*/
  1842.     gxCantAddPanelsNowErr       = (gxPrintingResultBase - 27),  /*-537 : Can only add panels during driver switch or dialog setup*/
  1843.     gxBadxdtlKeyErr             = (gxPrintingResultBase - 28),  /*-538 : Unknown key for xdtl - must be radiobutton, etc*/
  1844.     gxXdtlItemOutOfRangeErr     = (gxPrintingResultBase - 29),  /*-539 : Referenced item does not belong to panel*/
  1845.     gxNoActionButtonErr         = (gxPrintingResultBase - 30),  /*-540 : Action button is nil*/
  1846.     gxTitlesTooLongErr          = (gxPrintingResultBase - 31),  /*-541 : Length of buttons exceeds alert maximum width*/
  1847.     gxUnknownAlertVersionErr    = (gxPrintingResultBase - 32),  /*-542 : Bad version for printing alerts*/
  1848.     gxGBBufferTooSmallErr       = (gxPrintingResultBase - 33),  /*-543 : Buffer too small.*/
  1849.     gxInvalidPenTable           = (gxPrintingResultBase - 34),  /*-544 : Invalid vector driver pen table.*/
  1850.     gxIncompletePrintFileErr    = (gxPrintingResultBase - 35),  /*-545 : Print file was not completely spooled*/
  1851.     gxCrashedPrintFileErr       = (gxPrintingResultBase - 36),  /*-546 : Print file is corrupted*/
  1852.     gxInvalidPrintFileVersion   = (gxPrintingResultBase - 37),  /*-547 : Print file is incompatible with current QuickDraw GX version*/
  1853.     gxSegmentLoadFailedErr      = (gxPrintingResultBase - 38),  /*-548 : Segment loader error*/
  1854.     gxExtensionNotFoundErr      = (gxPrintingResultBase - 39),  /*-549 : Requested printing extension could not be found*/
  1855.     gxDriverVersionErr          = (gxPrintingResultBase - 40),  /*-550 : Driver too new for current version of QuickDraw GX*/
  1856.     gxImagingSystemVersionErr   = (gxPrintingResultBase - 41),  /*-551 : Imaging system too new for current version of QuickDraw GX*/
  1857.     gxFlattenVersionTooNew      = (gxPrintingResultBase - 42),  /*-552 : Flattened object format too new for current version of QDGX*/
  1858.     gxPaperTypeNotFound         = (gxPrintingResultBase - 43),  /*-553 : Requested papertype could not be found*/
  1859.     gxNoSuchPTGroup             = (gxPrintingResultBase - 44),  /*-554 : Requested papertype group could not be found*/
  1860.     gxNotEnoughPrinterMemory    = (gxPrintingResultBase - 45),  /*-555 : Printer does not have enough memory for fonts in document*/
  1861.     gxDuplicatePanelNameErr     = (gxPrintingResultBase - 46),  /*-556 : Attempt to add more than 10 panels with the same name*/
  1862.     gxExtensionVersionErr       = (gxPrintingResultBase - 47)   /*-557 : Extension too new for current version of QuickDraw GX*/
  1863. };
  1864. #if PRAGMA_STRUCT_ALIGN
  1865.     #pragma options align=reset
  1866. #elif PRAGMA_STRUCT_PACKPUSH
  1867.     #pragma pack(pop)
  1868. #elif PRAGMA_STRUCT_PACK
  1869.     #pragma pack()
  1870. #endif
  1871. #ifdef PRAGMA_IMPORT_OFF
  1872. #pragma import off
  1873. #elif PRAGMA_IMPORT
  1874. #pragma import reset
  1875. #endif
  1876. #ifdef __cplusplus
  1877. }
  1878. #endif
  1879. #endif /* __GXPRINTING__ */