GXPrinting.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:222k
- #define NewGXJobStatusProc(userRoutine) NewGXJobStatusUPP(userRoutine)
- #define CallGXJobStatusProc(userRoutine, pStatus) InvokeGXJobStatusUPP(pStatus, userRoutine)
- #define Send_GXJobStatus(pStatus)
- MacSendMessage(0x00000003, pStatus)
-
- #define Forward_GXJobStatus(pStatus)
- ForwardThisMessage((void *) (pStatus))
- typedef CALLBACK_API_C( OSErr , GXPrintingEventProcPtr )(EventRecord *evtRecord, Boolean filterEvent);
- typedef STACK_UPP_TYPE(GXPrintingEventProcPtr) GXPrintingEventUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXPrintingEventUPP)
- NewGXPrintingEventUPP (GXPrintingEventProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXPrintingEventUPP (GXPrintingEventUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXPrintingEventUPP (EventRecord * evtRecord,
- Boolean filterEvent,
- GXPrintingEventUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXPrintingEventProcInfo = 0x000001E1 }; /* 2_bytes Func(4_bytes, 1_byte) */
- #define NewGXPrintingEventUPP(userRoutine) (GXPrintingEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXPrintingEventProcInfo, GetCurrentArchitecture())
- #define DisposeGXPrintingEventUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXPrintingEventUPP(evtRecord, filterEvent, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXPrintingEventProcInfo, (evtRecord), (filterEvent))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXPrintingEventProc(userRoutine) NewGXPrintingEventUPP(userRoutine)
- #define CallGXPrintingEventProc(userRoutine, evtRecord, filterEvent) InvokeGXPrintingEventUPP(evtRecord, filterEvent, userRoutine)
- #define Send_GXPrintingEvent(evtRecord, filterEvent)
- MacSendMessage(0x00000004, evtRecord, filterEvent)
-
- #define Forward_GXPrintingEvent(evtRecord, filterEvent)
- ForwardThisMessage((void *) (evtRecord), (void *) (filterEvent))
- typedef CALLBACK_API_C( OSErr , GXJobDefaultFormatDialogProcPtr )(gxDialogResult *dlgResult);
- typedef STACK_UPP_TYPE(GXJobDefaultFormatDialogProcPtr) GXJobDefaultFormatDialogUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXJobDefaultFormatDialogUPP)
- NewGXJobDefaultFormatDialogUPP (GXJobDefaultFormatDialogProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXJobDefaultFormatDialogUPP (GXJobDefaultFormatDialogUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXJobDefaultFormatDialogUPP (gxDialogResult * dlgResult,
- GXJobDefaultFormatDialogUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXJobDefaultFormatDialogProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXJobDefaultFormatDialogUPP(userRoutine) (GXJobDefaultFormatDialogUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobDefaultFormatDialogProcInfo, GetCurrentArchitecture())
- #define DisposeGXJobDefaultFormatDialogUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXJobDefaultFormatDialogUPP(dlgResult, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXJobDefaultFormatDialogProcInfo, (dlgResult))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXJobDefaultFormatDialogProc(userRoutine) NewGXJobDefaultFormatDialogUPP(userRoutine)
- #define CallGXJobDefaultFormatDialogProc(userRoutine, dlgResult) InvokeGXJobDefaultFormatDialogUPP(dlgResult, userRoutine)
- #define Send_GXJobDefaultFormatDialog(dlgResult)
- MacSendMessage(0x00000005, dlgResult)
-
- #define Forward_GXJobDefaultFormatDialog(dlgResult)
- ForwardThisMessage((void *) (dlgResult))
- typedef CALLBACK_API_C( OSErr , GXFormatDialogProcPtr )(gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult);
- typedef STACK_UPP_TYPE(GXFormatDialogProcPtr) GXFormatDialogUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFormatDialogUPP)
- NewGXFormatDialogUPP (GXFormatDialogProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFormatDialogUPP (GXFormatDialogUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFormatDialogUPP (gxFormat theFormat,
- StringPtr title,
- gxDialogResult * dlgResult,
- GXFormatDialogUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFormatDialogProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXFormatDialogUPP(userRoutine) (GXFormatDialogUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFormatDialogProcInfo, GetCurrentArchitecture())
- #define DisposeGXFormatDialogUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFormatDialogUPP(theFormat, title, dlgResult, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXFormatDialogProcInfo, (theFormat), (title), (dlgResult))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFormatDialogProc(userRoutine) NewGXFormatDialogUPP(userRoutine)
- #define CallGXFormatDialogProc(userRoutine, theFormat, title, dlgResult) InvokeGXFormatDialogUPP(theFormat, title, dlgResult, userRoutine)
- #define Send_GXFormatDialog(theFormat, title, dlgResult)
- MacSendMessage(0x00000006, theFormat, title, dlgResult)
-
- #define Forward_GXFormatDialog(theFormat, title, dlgResult)
- ForwardThisMessage((void *) (theFormat),(void *) (title),(void *) (dlgResult))
- typedef CALLBACK_API_C( OSErr , GXJobPrintDialogProcPtr )(gxDialogResult *dlgResult);
- typedef STACK_UPP_TYPE(GXJobPrintDialogProcPtr) GXJobPrintDialogUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXJobPrintDialogUPP)
- NewGXJobPrintDialogUPP (GXJobPrintDialogProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXJobPrintDialogUPP (GXJobPrintDialogUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXJobPrintDialogUPP (gxDialogResult * dlgResult,
- GXJobPrintDialogUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXJobPrintDialogProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXJobPrintDialogUPP(userRoutine) (GXJobPrintDialogUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobPrintDialogProcInfo, GetCurrentArchitecture())
- #define DisposeGXJobPrintDialogUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXJobPrintDialogUPP(dlgResult, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXJobPrintDialogProcInfo, (dlgResult))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXJobPrintDialogProc(userRoutine) NewGXJobPrintDialogUPP(userRoutine)
- #define CallGXJobPrintDialogProc(userRoutine, dlgResult) InvokeGXJobPrintDialogUPP(dlgResult, userRoutine)
- #define Send_GXJobPrintDialog(dlgResult)
- MacSendMessage(0x00000007, dlgResult)
-
- #define Forward_GXJobPrintDialog(dlgResult)
- ForwardThisMessage((void *) (dlgResult))
- typedef CALLBACK_API_C( OSErr , GXFilterPanelEventProcPtr )(gxPanelInfoRecord *pHitInfo, Boolean *returnImmed);
- typedef STACK_UPP_TYPE(GXFilterPanelEventProcPtr) GXFilterPanelEventUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFilterPanelEventUPP)
- NewGXFilterPanelEventUPP (GXFilterPanelEventProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFilterPanelEventUPP (GXFilterPanelEventUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFilterPanelEventUPP (gxPanelInfoRecord * pHitInfo,
- Boolean * returnImmed,
- GXFilterPanelEventUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFilterPanelEventProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXFilterPanelEventUPP(userRoutine) (GXFilterPanelEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFilterPanelEventProcInfo, GetCurrentArchitecture())
- #define DisposeGXFilterPanelEventUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFilterPanelEventUPP(pHitInfo, returnImmed, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXFilterPanelEventProcInfo, (pHitInfo), (returnImmed))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFilterPanelEventProc(userRoutine) NewGXFilterPanelEventUPP(userRoutine)
- #define CallGXFilterPanelEventProc(userRoutine, pHitInfo, returnImmed) InvokeGXFilterPanelEventUPP(pHitInfo, returnImmed, userRoutine)
- #define Send_GXFilterPanelEvent(pHitInfo, returnImmed)
- MacSendMessage(0x00000008, pHitInfo, returnImmed)
- typedef CALLBACK_API_C( OSErr , GXHandlePanelEventProcPtr )(gxPanelInfoRecord *pHitInfo, gxPanelResult *panelResponse);
- typedef STACK_UPP_TYPE(GXHandlePanelEventProcPtr) GXHandlePanelEventUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXHandlePanelEventUPP)
- NewGXHandlePanelEventUPP (GXHandlePanelEventProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXHandlePanelEventUPP (GXHandlePanelEventUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXHandlePanelEventUPP (gxPanelInfoRecord * pHitInfo,
- gxPanelResult * panelResponse,
- GXHandlePanelEventUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXHandlePanelEventProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXHandlePanelEventUPP(userRoutine) (GXHandlePanelEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandlePanelEventProcInfo, GetCurrentArchitecture())
- #define DisposeGXHandlePanelEventUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXHandlePanelEventUPP(pHitInfo, panelResponse, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXHandlePanelEventProcInfo, (pHitInfo), (panelResponse))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXHandlePanelEventProc(userRoutine) NewGXHandlePanelEventUPP(userRoutine)
- #define CallGXHandlePanelEventProc(userRoutine, pHitInfo, panelResponse) InvokeGXHandlePanelEventUPP(pHitInfo, panelResponse, userRoutine)
- #define Send_GXHandlePanelEvent(pHitInfo, panelResponse)
- MacSendMessage(0x00000009, pHitInfo, panelResponse)
- typedef CALLBACK_API_C( OSErr , GXParsePageRangeProcPtr )(StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result);
- typedef STACK_UPP_TYPE(GXParsePageRangeProcPtr) GXParsePageRangeUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXParsePageRangeUPP)
- NewGXParsePageRangeUPP (GXParsePageRangeProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXParsePageRangeUPP (GXParsePageRangeUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXParsePageRangeUPP (StringPtr fromString,
- StringPtr toString,
- gxParsePageRangeResult * result,
- GXParsePageRangeUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXParsePageRangeProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXParsePageRangeUPP(userRoutine) (GXParsePageRangeUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXParsePageRangeProcInfo, GetCurrentArchitecture())
- #define DisposeGXParsePageRangeUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXParsePageRangeUPP(fromString, toString, result, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXParsePageRangeProcInfo, (fromString), (toString), (result))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXParsePageRangeProc(userRoutine) NewGXParsePageRangeUPP(userRoutine)
- #define CallGXParsePageRangeProc(userRoutine, fromString, toString, result) InvokeGXParsePageRangeUPP(fromString, toString, result, userRoutine)
- #define Send_GXParsePageRange(fromString, toString, result)
- MacSendMessage(0x0000000A, fromString, toString, result)
-
- #define Forward_GXParsePageRange(fromString, toString, result)
- ForwardThisMessage((void *) (fromString), (void *) (toString), (void *) (result))
- typedef CALLBACK_API_C( OSErr , GXDefaultJobProcPtr )(void );
- typedef STACK_UPP_TYPE(GXDefaultJobProcPtr) GXDefaultJobUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDefaultJobUPP)
- NewGXDefaultJobUPP (GXDefaultJobProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDefaultJobUPP (GXDefaultJobUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDefaultJobUPP (GXDefaultJobUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDefaultJobProcInfo = 0x00000021 }; /* 2_bytes Func() */
- #define NewGXDefaultJobUPP(userRoutine) (GXDefaultJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultJobProcInfo, GetCurrentArchitecture())
- #define DisposeGXDefaultJobUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDefaultJobUPP(userUPP) (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXDefaultJobProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDefaultJobProc(userRoutine) NewGXDefaultJobUPP(userRoutine)
- #define CallGXDefaultJobProc(userRoutine) InvokeGXDefaultJobUPP(userRoutine)
- #define Send_GXDefaultJob() MacSendMessage(0x0000000B)
- #define Forward_GXDefaultJob() ForwardThisMessage((void *) (0))
- typedef CALLBACK_API_C( OSErr , GXDefaultFormatProcPtr )(gxFormat theFormat);
- typedef STACK_UPP_TYPE(GXDefaultFormatProcPtr) GXDefaultFormatUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDefaultFormatUPP)
- NewGXDefaultFormatUPP (GXDefaultFormatProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDefaultFormatUPP (GXDefaultFormatUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDefaultFormatUPP (gxFormat theFormat,
- GXDefaultFormatUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDefaultFormatProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXDefaultFormatUPP(userRoutine) (GXDefaultFormatUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultFormatProcInfo, GetCurrentArchitecture())
- #define DisposeGXDefaultFormatUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDefaultFormatUPP(theFormat, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDefaultFormatProcInfo, (theFormat))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDefaultFormatProc(userRoutine) NewGXDefaultFormatUPP(userRoutine)
- #define CallGXDefaultFormatProc(userRoutine, theFormat) InvokeGXDefaultFormatUPP(theFormat, userRoutine)
- #define Send_GXDefaultFormat(theFormat)
- MacSendMessage(0x0000000C, theFormat)
-
- #define Forward_GXDefaultFormat(theFormat)
- ForwardThisMessage((void *) (theFormat))
- typedef CALLBACK_API_C( OSErr , GXDefaultPaperTypeProcPtr )(gxPaperType thePaperType);
- typedef STACK_UPP_TYPE(GXDefaultPaperTypeProcPtr) GXDefaultPaperTypeUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDefaultPaperTypeUPP)
- NewGXDefaultPaperTypeUPP (GXDefaultPaperTypeProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDefaultPaperTypeUPP (GXDefaultPaperTypeUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDefaultPaperTypeUPP (gxPaperType thePaperType,
- GXDefaultPaperTypeUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDefaultPaperTypeProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXDefaultPaperTypeUPP(userRoutine) (GXDefaultPaperTypeUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultPaperTypeProcInfo, GetCurrentArchitecture())
- #define DisposeGXDefaultPaperTypeUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDefaultPaperTypeUPP(thePaperType, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDefaultPaperTypeProcInfo, (thePaperType))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDefaultPaperTypeProc(userRoutine) NewGXDefaultPaperTypeUPP(userRoutine)
- #define CallGXDefaultPaperTypeProc(userRoutine, thePaperType) InvokeGXDefaultPaperTypeUPP(thePaperType, userRoutine)
- #define Send_GXDefaultPaperType(thePaperType)
- MacSendMessage(0x0000000D, thePaperType)
-
- #define Forward_GXDefaultPaperType(thePaperType)
- ForwardThisMessage((void *) thePaperType)
- typedef CALLBACK_API_C( OSErr , GXDefaultPrinterProcPtr )(gxPrinter thePrinter);
- typedef STACK_UPP_TYPE(GXDefaultPrinterProcPtr) GXDefaultPrinterUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDefaultPrinterUPP)
- NewGXDefaultPrinterUPP (GXDefaultPrinterProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDefaultPrinterUPP (GXDefaultPrinterUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDefaultPrinterUPP (gxPrinter thePrinter,
- GXDefaultPrinterUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDefaultPrinterProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXDefaultPrinterUPP(userRoutine) (GXDefaultPrinterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultPrinterProcInfo, GetCurrentArchitecture())
- #define DisposeGXDefaultPrinterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDefaultPrinterUPP(thePrinter, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDefaultPrinterProcInfo, (thePrinter))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDefaultPrinterProc(userRoutine) NewGXDefaultPrinterUPP(userRoutine)
- #define CallGXDefaultPrinterProc(userRoutine, thePrinter) InvokeGXDefaultPrinterUPP(thePrinter, userRoutine)
- #define Send_GXDefaultPrinter(thePrinter)
- MacSendMessage(0x0000000E, thePrinter)
-
- #define Forward_GXDefaultPrinter(thePrinter)
- ForwardThisMessage((void *) thePrinter)
- typedef CALLBACK_API_C( OSErr , GXCreateSpoolFileProcPtr )(FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile);
- typedef STACK_UPP_TYPE(GXCreateSpoolFileProcPtr) GXCreateSpoolFileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCreateSpoolFileUPP)
- NewGXCreateSpoolFileUPP (GXCreateSpoolFileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCreateSpoolFileUPP (GXCreateSpoolFileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXCreateSpoolFileUPP (FSSpecPtr pFileSpec,
- long createOptions,
- gxSpoolFile * theSpoolFile,
- GXCreateSpoolFileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCreateSpoolFileProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXCreateSpoolFileUPP(userRoutine) (GXCreateSpoolFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCreateSpoolFileProcInfo, GetCurrentArchitecture())
- #define DisposeGXCreateSpoolFileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCreateSpoolFileUPP(pFileSpec, createOptions, theSpoolFile, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXCreateSpoolFileProcInfo, (pFileSpec), (createOptions), (theSpoolFile))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCreateSpoolFileProc(userRoutine) NewGXCreateSpoolFileUPP(userRoutine)
- #define CallGXCreateSpoolFileProc(userRoutine, pFileSpec, createOptions, theSpoolFile) InvokeGXCreateSpoolFileUPP(pFileSpec, createOptions, theSpoolFile, userRoutine)
- #define Send_GXCreateSpoolFile(pFileSpec, createOptions, theSpoolFile)
- MacSendMessage(0x0000000F, pFileSpec, createOptions,
- theSpoolFile)
-
- #define Forward_GXCreateSpoolFile(pFileSpec, createOptions, theSpoolFile)
- ForwardThisMessage((void *) pFileSpec, (void *) (createOptions), (void *) theSpoolFile)
- typedef CALLBACK_API_C( OSErr , GXSpoolPageProcPtr )(gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage);
- typedef STACK_UPP_TYPE(GXSpoolPageProcPtr) GXSpoolPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXSpoolPageUPP)
- NewGXSpoolPageUPP (GXSpoolPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXSpoolPageUPP (GXSpoolPageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXSpoolPageUPP (gxSpoolFile theSpoolFile,
- gxFormat theFormat,
- gxShape thePage,
- GXSpoolPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXSpoolPageProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXSpoolPageUPP(userRoutine) (GXSpoolPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXSpoolPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXSpoolPageUPP(theSpoolFile, theFormat, thePage, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSpoolPageProcInfo, (theSpoolFile), (theFormat), (thePage))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXSpoolPageProc(userRoutine) NewGXSpoolPageUPP(userRoutine)
- #define CallGXSpoolPageProc(userRoutine, theSpoolFile, theFormat, thePage) InvokeGXSpoolPageUPP(theSpoolFile, theFormat, thePage, userRoutine)
- #define Send_GXSpoolPage(theSpoolFile, theFormat, thePage)
- MacSendMessage(0x00000010, theSpoolFile, theFormat, thePage)
-
- #define Forward_GXSpoolPage(theSpoolFile, theFormat, thePage)
- ForwardThisMessage((void *) theSpoolFile, (void *) theFormat, (void *) thePage)
- typedef CALLBACK_API_C( OSErr , GXSpoolDataProcPtr )(gxSpoolFile theSpoolFile, Ptr data, long *length);
- typedef STACK_UPP_TYPE(GXSpoolDataProcPtr) GXSpoolDataUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXSpoolDataUPP)
- NewGXSpoolDataUPP (GXSpoolDataProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXSpoolDataUPP (GXSpoolDataUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXSpoolDataUPP (gxSpoolFile theSpoolFile,
- Ptr data,
- long * length,
- GXSpoolDataUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXSpoolDataProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXSpoolDataUPP(userRoutine) (GXSpoolDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolDataProcInfo, GetCurrentArchitecture())
- #define DisposeGXSpoolDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXSpoolDataUPP(theSpoolFile, data, length, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSpoolDataProcInfo, (theSpoolFile), (data), (length))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXSpoolDataProc(userRoutine) NewGXSpoolDataUPP(userRoutine)
- #define CallGXSpoolDataProc(userRoutine, theSpoolFile, data, length) InvokeGXSpoolDataUPP(theSpoolFile, data, length, userRoutine)
- #define Send_GXSpoolData(theSpoolFile, data, length)
- MacSendMessage(0x00000011, theSpoolFile, data, length)
-
- #define Forward_GXSpoolData(theSpoolFile, data, length)
- ForwardThisMessage((void *) theSpoolFile, (void *) data, (void *) length)
- typedef CALLBACK_API_C( OSErr , GXSpoolResourceProcPtr )(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id);
- typedef STACK_UPP_TYPE(GXSpoolResourceProcPtr) GXSpoolResourceUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXSpoolResourceUPP)
- NewGXSpoolResourceUPP (GXSpoolResourceProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXSpoolResourceUPP (GXSpoolResourceUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXSpoolResourceUPP (gxSpoolFile theSpoolFile,
- Handle theResource,
- ResType theType,
- long id,
- GXSpoolResourceUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXSpoolResourceProcInfo = 0x00003FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXSpoolResourceUPP(userRoutine) (GXSpoolResourceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSpoolResourceProcInfo, GetCurrentArchitecture())
- #define DisposeGXSpoolResourceUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXSpoolResourceUPP(theSpoolFile, theResource, theType, id, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXSpoolResourceProcInfo, (theSpoolFile), (theResource), (theType), (id))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXSpoolResourceProc(userRoutine) NewGXSpoolResourceUPP(userRoutine)
- #define CallGXSpoolResourceProc(userRoutine, theSpoolFile, theResource, theType, id) InvokeGXSpoolResourceUPP(theSpoolFile, theResource, theType, id, userRoutine)
- #define Send_GXSpoolResource(theSpoolFile, theResource, theType, id)
- MacSendMessage(0x00000012, theSpoolFile, theResource,
- theType, id)
-
- #define Forward_GXSpoolResource(theSpoolFile, theResource, theType, id)
- ForwardThisMessage((void *) theSpoolFile, (void *) theResource,
- (void *) theType, (void *) (id))
- typedef CALLBACK_API_C( OSErr , GXCompleteSpoolFileProcPtr )(gxSpoolFile theSpoolFile);
- typedef STACK_UPP_TYPE(GXCompleteSpoolFileProcPtr) GXCompleteSpoolFileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCompleteSpoolFileUPP)
- NewGXCompleteSpoolFileUPP (GXCompleteSpoolFileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCompleteSpoolFileUPP (GXCompleteSpoolFileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXCompleteSpoolFileUPP (gxSpoolFile theSpoolFile,
- GXCompleteSpoolFileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCompleteSpoolFileProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXCompleteSpoolFileUPP(userRoutine) (GXCompleteSpoolFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCompleteSpoolFileProcInfo, GetCurrentArchitecture())
- #define DisposeGXCompleteSpoolFileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCompleteSpoolFileUPP(theSpoolFile, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXCompleteSpoolFileProcInfo, (theSpoolFile))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCompleteSpoolFileProc(userRoutine) NewGXCompleteSpoolFileUPP(userRoutine)
- #define CallGXCompleteSpoolFileProc(userRoutine, theSpoolFile) InvokeGXCompleteSpoolFileUPP(theSpoolFile, userRoutine)
- #define Send_GXCompleteSpoolFile(theSpoolFile)
- MacSendMessage(0x00000013, theSpoolFile)
-
- #define Forward_GXCompleteSpoolFile(theSpoolFile)
- ForwardThisMessage((void *) (theSpoolFile))
- typedef CALLBACK_API_C( OSErr , GXCountPagesProcPtr )(gxSpoolFile theSpoolFile, long *numPages);
- typedef STACK_UPP_TYPE(GXCountPagesProcPtr) GXCountPagesUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCountPagesUPP)
- NewGXCountPagesUPP (GXCountPagesProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCountPagesUPP (GXCountPagesUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXCountPagesUPP (gxSpoolFile theSpoolFile,
- long * numPages,
- GXCountPagesUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCountPagesProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXCountPagesUPP(userRoutine) (GXCountPagesUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCountPagesProcInfo, GetCurrentArchitecture())
- #define DisposeGXCountPagesUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCountPagesUPP(theSpoolFile, numPages, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXCountPagesProcInfo, (theSpoolFile), (numPages))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCountPagesProc(userRoutine) NewGXCountPagesUPP(userRoutine)
- #define CallGXCountPagesProc(userRoutine, theSpoolFile, numPages) InvokeGXCountPagesUPP(theSpoolFile, numPages, userRoutine)
- #define Send_GXCountPages(theSpoolFile, numPages)
- MacSendMessage(0x00000014, theSpoolFile, numPages)
-
- #define Forward_GXCountPages(theSpoolFile, numPages)
- ForwardThisMessage((void *) (theSpoolFile), (void *) (numPages))
- typedef CALLBACK_API_C( OSErr , GXDespoolPageProcPtr )(gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage, Boolean *formatChanged);
- typedef STACK_UPP_TYPE(GXDespoolPageProcPtr) GXDespoolPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDespoolPageUPP)
- NewGXDespoolPageUPP (GXDespoolPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDespoolPageUPP (GXDespoolPageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDespoolPageUPP (gxSpoolFile theSpoolFile,
- long numPages,
- gxFormat theFormat,
- gxShape * thePage,
- Boolean * formatChanged,
- GXDespoolPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDespoolPageProcInfo = 0x0000FFE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXDespoolPageUPP(userRoutine) (GXDespoolPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXDespoolPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDespoolPageUPP(theSpoolFile, numPages, theFormat, thePage, formatChanged, userUPP) (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppGXDespoolPageProcInfo, (theSpoolFile), (numPages), (theFormat), (thePage), (formatChanged))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDespoolPageProc(userRoutine) NewGXDespoolPageUPP(userRoutine)
- #define CallGXDespoolPageProc(userRoutine, theSpoolFile, numPages, theFormat, thePage, formatChanged) InvokeGXDespoolPageUPP(theSpoolFile, numPages, theFormat, thePage, formatChanged, userRoutine)
- #define Send_GXDespoolPage(theSpoolFile, numPages, theFormat, thePage, formatChanged)
- MacSendMessage(0x00000015, theSpoolFile, numPages,
- theFormat, thePage, formatChanged)
-
- #define Forward_GXDespoolPage(theSpoolFile, numPages, theFormat, thePage, formatChanged)
- ForwardThisMessage((void *) (theSpoolFile), (void *) (numPages), (void *) (theFormat),
- (void *) (thePage), (void *) (formatChanged))
- typedef CALLBACK_API_C( OSErr , GXDespoolDataProcPtr )(gxSpoolFile theSpoolFile, Ptr data, long *length);
- typedef STACK_UPP_TYPE(GXDespoolDataProcPtr) GXDespoolDataUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDespoolDataUPP)
- NewGXDespoolDataUPP (GXDespoolDataProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDespoolDataUPP (GXDespoolDataUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDespoolDataUPP (gxSpoolFile theSpoolFile,
- Ptr data,
- long * length,
- GXDespoolDataUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDespoolDataProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXDespoolDataUPP(userRoutine) (GXDespoolDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolDataProcInfo, GetCurrentArchitecture())
- #define DisposeGXDespoolDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDespoolDataUPP(theSpoolFile, data, length, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXDespoolDataProcInfo, (theSpoolFile), (data), (length))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDespoolDataProc(userRoutine) NewGXDespoolDataUPP(userRoutine)
- #define CallGXDespoolDataProc(userRoutine, theSpoolFile, data, length) InvokeGXDespoolDataUPP(theSpoolFile, data, length, userRoutine)
- #define Send_GXDespoolData(theSpoolFile, data, length)
- MacSendMessage(0x00000016, theSpoolFile, data, length)
-
- #define Forward_GXDespoolData(theSpoolFile, data, length)
- ForwardThisMessage((void *) (theSpoolFile), (void *) (data), (void *) (length))
- typedef CALLBACK_API_C( OSErr , GXDespoolResourceProcPtr )(gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource);
- typedef STACK_UPP_TYPE(GXDespoolResourceProcPtr) GXDespoolResourceUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDespoolResourceUPP)
- NewGXDespoolResourceUPP (GXDespoolResourceProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDespoolResourceUPP (GXDespoolResourceUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDespoolResourceUPP (gxSpoolFile theSpoolFile,
- ResType theType,
- long id,
- Handle * theResource,
- GXDespoolResourceUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDespoolResourceProcInfo = 0x00003FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXDespoolResourceUPP(userRoutine) (GXDespoolResourceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDespoolResourceProcInfo, GetCurrentArchitecture())
- #define DisposeGXDespoolResourceUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDespoolResourceUPP(theSpoolFile, theType, id, theResource, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXDespoolResourceProcInfo, (theSpoolFile), (theType), (id), (theResource))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDespoolResourceProc(userRoutine) NewGXDespoolResourceUPP(userRoutine)
- #define CallGXDespoolResourceProc(userRoutine, theSpoolFile, theType, id, theResource) InvokeGXDespoolResourceUPP(theSpoolFile, theType, id, theResource, userRoutine)
- #define Send_GXDespoolResource(theSpoolFile, theType, id, theResource)
- MacSendMessage(0x00000017, theSpoolFile, theType,
- id, theResource)
-
- #define Forward_GXDespoolResource(theSpoolFile, theType, id, theResource)
- ForwardThisMessage((void *) (theSpoolFile), (void *) (theType), (void *) (id),
- (void *) (theResource))
- typedef CALLBACK_API_C( OSErr , GXCloseSpoolFileProcPtr )(gxSpoolFile theSpoolFile, long closeOptions);
- typedef STACK_UPP_TYPE(GXCloseSpoolFileProcPtr) GXCloseSpoolFileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCloseSpoolFileUPP)
- NewGXCloseSpoolFileUPP (GXCloseSpoolFileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCloseSpoolFileUPP (GXCloseSpoolFileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXCloseSpoolFileUPP (gxSpoolFile theSpoolFile,
- long closeOptions,
- GXCloseSpoolFileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCloseSpoolFileProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXCloseSpoolFileUPP(userRoutine) (GXCloseSpoolFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCloseSpoolFileProcInfo, GetCurrentArchitecture())
- #define DisposeGXCloseSpoolFileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCloseSpoolFileUPP(theSpoolFile, closeOptions, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXCloseSpoolFileProcInfo, (theSpoolFile), (closeOptions))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCloseSpoolFileProc(userRoutine) NewGXCloseSpoolFileUPP(userRoutine)
- #define CallGXCloseSpoolFileProc(userRoutine, theSpoolFile, closeOptions) InvokeGXCloseSpoolFileUPP(theSpoolFile, closeOptions, userRoutine)
- #define Send_GXCloseSpoolFile(theSpoolFile, closeOptions)
- MacSendMessage(0x00000018, theSpoolFile, closeOptions)
-
- #define Forward_GXCloseSpoolFile(theSpoolFile, closeOptions)
- ForwardThisMessage((void *) (theSpoolFile), (void *) (closeOptions))
- typedef CALLBACK_API_C( OSErr , GXStartJobProcPtr )(StringPtr docName, long pageCount);
- typedef STACK_UPP_TYPE(GXStartJobProcPtr) GXStartJobUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXStartJobUPP)
- NewGXStartJobUPP (GXStartJobProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXStartJobUPP (GXStartJobUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXStartJobUPP (StringPtr docName,
- long pageCount,
- GXStartJobUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXStartJobProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXStartJobUPP(userRoutine) (GXStartJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartJobProcInfo, GetCurrentArchitecture())
- #define DisposeGXStartJobUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXStartJobUPP(docName, pageCount, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXStartJobProcInfo, (docName), (pageCount))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXStartJobProc(userRoutine) NewGXStartJobUPP(userRoutine)
- #define CallGXStartJobProc(userRoutine, docName, pageCount) InvokeGXStartJobUPP(docName, pageCount, userRoutine)
- #define Send_GXStartJob(docName, pageCount)
- MacSendMessage(0x00000019, docName, pageCount)
-
- #define Forward_GXStartJob(docName, pageCount)
- ForwardThisMessage((void *) (docName), (void *) (pageCount))
- typedef CALLBACK_API_C( OSErr , GXFinishJobProcPtr )(void );
- typedef STACK_UPP_TYPE(GXFinishJobProcPtr) GXFinishJobUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFinishJobUPP)
- NewGXFinishJobUPP (GXFinishJobProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFinishJobUPP (GXFinishJobUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFinishJobUPP (GXFinishJobUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFinishJobProcInfo = 0x00000021 }; /* 2_bytes Func() */
- #define NewGXFinishJobUPP(userRoutine) (GXFinishJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishJobProcInfo, GetCurrentArchitecture())
- #define DisposeGXFinishJobUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFinishJobUPP(userUPP) (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXFinishJobProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFinishJobProc(userRoutine) NewGXFinishJobUPP(userRoutine)
- #define CallGXFinishJobProc(userRoutine) InvokeGXFinishJobUPP(userRoutine)
- #define Send_GXFinishJob() MacSendMessage(0x0000001A)
- #define Forward_GXFinishJob() ForwardThisMessage((void *) (0))
- typedef CALLBACK_API_C( OSErr , GXStartPageProcPtr )(gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList);
- typedef STACK_UPP_TYPE(GXStartPageProcPtr) GXStartPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXStartPageUPP)
- NewGXStartPageUPP (GXStartPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXStartPageUPP (GXStartPageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXStartPageUPP (gxFormat theFormat,
- long numViewPorts,
- gxViewPort * viewPortList,
- GXStartPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXStartPageProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXStartPageUPP(userRoutine) (GXStartPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXStartPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXStartPageUPP(theFormat, numViewPorts, viewPortList, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXStartPageProcInfo, (theFormat), (numViewPorts), (viewPortList))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXStartPageProc(userRoutine) NewGXStartPageUPP(userRoutine)
- #define CallGXStartPageProc(userRoutine, theFormat, numViewPorts, viewPortList) InvokeGXStartPageUPP(theFormat, numViewPorts, viewPortList, userRoutine)
- #define Send_GXStartPage(theFormat, numViewPorts, viewPortList)
- MacSendMessage(0x0000001B, theFormat, numViewPorts, viewPortList)
-
- #define Forward_GXStartPage(theFormat, numViewPorts, viewPortList)
- ForwardThisMessage((void *) (theFormat), (void *) (numViewPorts), (void *) (viewPortList))
- typedef CALLBACK_API_C( OSErr , GXFinishPageProcPtr )(void );
- typedef STACK_UPP_TYPE(GXFinishPageProcPtr) GXFinishPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFinishPageUPP)
- NewGXFinishPageUPP (GXFinishPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFinishPageUPP (GXFinishPageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFinishPageUPP (GXFinishPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFinishPageProcInfo = 0x00000021 }; /* 2_bytes Func() */
- #define NewGXFinishPageUPP(userRoutine) (GXFinishPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXFinishPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFinishPageUPP(userUPP) (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXFinishPageProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFinishPageProc(userRoutine) NewGXFinishPageUPP(userRoutine)
- #define CallGXFinishPageProc(userRoutine) InvokeGXFinishPageUPP(userRoutine)
- #define Send_GXFinishPage() MacSendMessage(0x0000001C)
- #define Forward_GXFinishPage() ForwardThisMessage((void *) (0))
- typedef CALLBACK_API_C( OSErr , GXPrintPageProcPtr )(gxFormat theFormat, gxShape thePage);
- typedef STACK_UPP_TYPE(GXPrintPageProcPtr) GXPrintPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXPrintPageUPP)
- NewGXPrintPageUPP (GXPrintPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXPrintPageUPP (GXPrintPageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXPrintPageUPP (gxFormat theFormat,
- gxShape thePage,
- GXPrintPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXPrintPageProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXPrintPageUPP(userRoutine) (GXPrintPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXPrintPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXPrintPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXPrintPageUPP(theFormat, thePage, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXPrintPageProcInfo, (theFormat), (thePage))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXPrintPageProc(userRoutine) NewGXPrintPageUPP(userRoutine)
- #define CallGXPrintPageProc(userRoutine, theFormat, thePage) InvokeGXPrintPageUPP(theFormat, thePage, userRoutine)
- #define Send_GXPrintPage(theFormat, thePage)
- MacSendMessage(0x0000001D, theFormat, thePage)
-
- #define Forward_GXPrintPage(theFormat, thePage)
- ForwardThisMessage((void *) (theFormat), (void *) (thePage))
- typedef CALLBACK_API_C( OSErr , GXSetupImageDataProcPtr )(void *imageData);
- typedef STACK_UPP_TYPE(GXSetupImageDataProcPtr) GXSetupImageDataUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXSetupImageDataUPP)
- NewGXSetupImageDataUPP (GXSetupImageDataProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXSetupImageDataUPP (GXSetupImageDataUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXSetupImageDataUPP (void * imageData,
- GXSetupImageDataUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXSetupImageDataProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXSetupImageDataUPP(userRoutine) (GXSetupImageDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetupImageDataProcInfo, GetCurrentArchitecture())
- #define DisposeGXSetupImageDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXSetupImageDataUPP(imageData, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXSetupImageDataProcInfo, (imageData))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXSetupImageDataProc(userRoutine) NewGXSetupImageDataUPP(userRoutine)
- #define CallGXSetupImageDataProc(userRoutine, imageData) InvokeGXSetupImageDataUPP(imageData, userRoutine)
- #define Send_GXSetupImageData(imageData)
- MacSendMessage(0x0000001E, imageData)
-
- #define Forward_GXSetupImageData(imageData)
- ForwardThisMessage((void *) (imageData))
- typedef CALLBACK_API_C( OSErr , GXImageJobProcPtr )(gxSpoolFile theSpoolFile, long *closeOptions);
- typedef STACK_UPP_TYPE(GXImageJobProcPtr) GXImageJobUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXImageJobUPP)
- NewGXImageJobUPP (GXImageJobProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXImageJobUPP (GXImageJobUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXImageJobUPP (gxSpoolFile theSpoolFile,
- long * closeOptions,
- GXImageJobUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXImageJobProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXImageJobUPP(userRoutine) (GXImageJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImageJobProcInfo, GetCurrentArchitecture())
- #define DisposeGXImageJobUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXImageJobUPP(theSpoolFile, closeOptions, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXImageJobProcInfo, (theSpoolFile), (closeOptions))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXImageJobProc(userRoutine) NewGXImageJobUPP(userRoutine)
- #define CallGXImageJobProc(userRoutine, theSpoolFile, closeOptions) InvokeGXImageJobUPP(theSpoolFile, closeOptions, userRoutine)
- #define Send_GXImageJob(theSpoolFile, closeOptions)
- MacSendMessage(0x0000001F, theSpoolFile, closeOptions)
-
- #define Forward_GXImageJob(theSpoolFile, closeOptions)
- ForwardThisMessage((void *) (theSpoolFile), (void *) (closeOptions))
- typedef CALLBACK_API_C( OSErr , GXImageDocumentProcPtr )(gxSpoolFile theSpoolFile, void *imageData);
- typedef STACK_UPP_TYPE(GXImageDocumentProcPtr) GXImageDocumentUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXImageDocumentUPP)
- NewGXImageDocumentUPP (GXImageDocumentProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXImageDocumentUPP (GXImageDocumentUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXImageDocumentUPP (gxSpoolFile theSpoolFile,
- void * imageData,
- GXImageDocumentUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXImageDocumentProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXImageDocumentUPP(userRoutine) (GXImageDocumentUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImageDocumentProcInfo, GetCurrentArchitecture())
- #define DisposeGXImageDocumentUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXImageDocumentUPP(theSpoolFile, imageData, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXImageDocumentProcInfo, (theSpoolFile), (imageData))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXImageDocumentProc(userRoutine) NewGXImageDocumentUPP(userRoutine)
- #define CallGXImageDocumentProc(userRoutine, theSpoolFile, imageData) InvokeGXImageDocumentUPP(theSpoolFile, imageData, userRoutine)
- #define Send_GXImageDocument(theSpoolFile, imageData)
- MacSendMessage(0x00000020, theSpoolFile, imageData)
-
- #define Forward_GXImageDocument(theSpoolFile, imageData)
- ForwardThisMessage((void *) (theSpoolFile), (void *) (imageData))
- typedef CALLBACK_API_C( OSErr , GXImagePageProcPtr )(gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData);
- typedef STACK_UPP_TYPE(GXImagePageProcPtr) GXImagePageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXImagePageUPP)
- NewGXImagePageUPP (GXImagePageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXImagePageUPP (GXImagePageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXImagePageUPP (gxSpoolFile theSpoolFile,
- long pageNumber,
- gxFormat theFormat,
- void * imageData,
- GXImagePageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXImagePageProcInfo = 0x00003FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXImagePageUPP(userRoutine) (GXImagePageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXImagePageProcInfo, GetCurrentArchitecture())
- #define DisposeGXImagePageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXImagePageUPP(theSpoolFile, pageNumber, theFormat, imageData, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXImagePageProcInfo, (theSpoolFile), (pageNumber), (theFormat), (imageData))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXImagePageProc(userRoutine) NewGXImagePageUPP(userRoutine)
- #define CallGXImagePageProc(userRoutine, theSpoolFile, pageNumber, theFormat, imageData) InvokeGXImagePageUPP(theSpoolFile, pageNumber, theFormat, imageData, userRoutine)
- #define Send_GXImagePage(theSpoolFile, pageNumber, theFormat, imageData)
- MacSendMessage(0x00000021, theSpoolFile, pageNumber, theFormat, imageData)
-
- #define Forward_GXImagePage(theSpoolFile, pageNumber, theFormat, imageData)
- ForwardThisMessage((void *) (theSpoolFile), (void *) (pageNumber), (void *) (theFormat),
- (void *) (imageData))
- typedef CALLBACK_API_C( OSErr , GXRenderPageProcPtr )(gxFormat theFormat, gxShape thePage, gxPageInfoRecord *pageInfo, void *imageData);
- typedef STACK_UPP_TYPE(GXRenderPageProcPtr) GXRenderPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXRenderPageUPP)
- NewGXRenderPageUPP (GXRenderPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXRenderPageUPP (GXRenderPageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXRenderPageUPP (gxFormat theFormat,
- gxShape thePage,
- gxPageInfoRecord * pageInfo,
- void * imageData,
- GXRenderPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXRenderPageProcInfo = 0x00003FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXRenderPageUPP(userRoutine) (GXRenderPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXRenderPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXRenderPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXRenderPageUPP(theFormat, thePage, pageInfo, imageData, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXRenderPageProcInfo, (theFormat), (thePage), (pageInfo), (imageData))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXRenderPageProc(userRoutine) NewGXRenderPageUPP(userRoutine)
- #define CallGXRenderPageProc(userRoutine, theFormat, thePage, pageInfo, imageData) InvokeGXRenderPageUPP(theFormat, thePage, pageInfo, imageData, userRoutine)
- #define Send_GXRenderPage(theFormat, thePage, pageInfo, imageData)
- MacSendMessage(0x00000022, theFormat, thePage, pageInfo, imageData)
-
- #define Forward_GXRenderPage(theFormat, thePage, pageInfo, imageData)
- ForwardThisMessage((void *) (theFormat), (void *) (thePage), (void *) (pageInfo), (void *) (imageData))
- typedef CALLBACK_API_C( OSErr , GXCreateImageFileProcPtr )(FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile);
- typedef STACK_UPP_TYPE(GXCreateImageFileProcPtr) GXCreateImageFileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCreateImageFileUPP)
- NewGXCreateImageFileUPP (GXCreateImageFileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCreateImageFileUPP (GXCreateImageFileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXCreateImageFileUPP (FSSpecPtr pFileSpec,
- long imageFileOptions,
- long * theImageFile,
- GXCreateImageFileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCreateImageFileProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXCreateImageFileUPP(userRoutine) (GXCreateImageFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCreateImageFileProcInfo, GetCurrentArchitecture())
- #define DisposeGXCreateImageFileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCreateImageFileUPP(pFileSpec, imageFileOptions, theImageFile, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXCreateImageFileProcInfo, (pFileSpec), (imageFileOptions), (theImageFile))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCreateImageFileProc(userRoutine) NewGXCreateImageFileUPP(userRoutine)
- #define CallGXCreateImageFileProc(userRoutine, pFileSpec, imageFileOptions, theImageFile) InvokeGXCreateImageFileUPP(pFileSpec, imageFileOptions, theImageFile, userRoutine)
- #define Send_GXCreateImageFile(pFileSpec, imageFileOptions, theImageFile)
- MacSendMessage(0x00000023, pFileSpec, imageFileOptions, theImageFile)
-
- #define Forward_GXCreateImageFile(pFileSpec, imageFileOptions, theImageFile)
- ForwardThisMessage((void *) (pFileSpec), (void *) (imageFileOptions), (void *) (theImageFile))
- typedef CALLBACK_API_C( OSErr , GXOpenConnectionProcPtr )(void );
- typedef STACK_UPP_TYPE(GXOpenConnectionProcPtr) GXOpenConnectionUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXOpenConnectionUPP)
- NewGXOpenConnectionUPP (GXOpenConnectionProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXOpenConnectionUPP (GXOpenConnectionUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXOpenConnectionUPP (GXOpenConnectionUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXOpenConnectionProcInfo = 0x00000021 }; /* 2_bytes Func() */
- #define NewGXOpenConnectionUPP(userRoutine) (GXOpenConnectionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXOpenConnectionProcInfo, GetCurrentArchitecture())
- #define DisposeGXOpenConnectionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXOpenConnectionUPP(userUPP) (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXOpenConnectionProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXOpenConnectionProc(userRoutine) NewGXOpenConnectionUPP(userRoutine)
- #define CallGXOpenConnectionProc(userRoutine) InvokeGXOpenConnectionUPP(userRoutine)
- #define Send_GXOpenConnection() MacSendMessage(0x00000024)
- #define Forward_GXOpenConnection() ForwardThisMessage((void *) (0))
- typedef CALLBACK_API_C( OSErr , GXCloseConnectionProcPtr )(void );
- typedef STACK_UPP_TYPE(GXCloseConnectionProcPtr) GXCloseConnectionUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCloseConnectionUPP)
- NewGXCloseConnectionUPP (GXCloseConnectionProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCloseConnectionUPP (GXCloseConnectionUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXCloseConnectionUPP (GXCloseConnectionUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCloseConnectionProcInfo = 0x00000021 }; /* 2_bytes Func() */
- #define NewGXCloseConnectionUPP(userRoutine) (GXCloseConnectionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCloseConnectionProcInfo, GetCurrentArchitecture())
- #define DisposeGXCloseConnectionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCloseConnectionUPP(userUPP) (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCloseConnectionProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCloseConnectionProc(userRoutine) NewGXCloseConnectionUPP(userRoutine)
- #define CallGXCloseConnectionProc(userRoutine) InvokeGXCloseConnectionUPP(userRoutine)
- #define Send_GXCloseConnection() MacSendMessage(0x00000025)
- #define Forward_GXCloseConnection() ForwardThisMessage((void *) (0))
- typedef CALLBACK_API_C( OSErr , GXStartSendPageProcPtr )(gxFormat theFormat);
- typedef STACK_UPP_TYPE(GXStartSendPageProcPtr) GXStartSendPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXStartSendPageUPP)
- NewGXStartSendPageUPP (GXStartSendPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXStartSendPageUPP (GXStartSendPageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXStartSendPageUPP (gxFormat theFormat,
- GXStartSendPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXStartSendPageProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXStartSendPageUPP(userRoutine) (GXStartSendPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXStartSendPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXStartSendPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXStartSendPageUPP(theFormat, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXStartSendPageProcInfo, (theFormat))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXStartSendPageProc(userRoutine) NewGXStartSendPageUPP(userRoutine)
- #define CallGXStartSendPageProc(userRoutine, theFormat) InvokeGXStartSendPageUPP(theFormat, userRoutine)
- #define Send_GXStartSendPage(theFormat) MacSendMessage(0x00000026, theFormat)
- #define Forward_GXStartSendPage(theFormat) ForwardThisMessage((void *) (theFormat))
- typedef CALLBACK_API_C( OSErr , GXFinishSendPageProcPtr )(void );
- typedef STACK_UPP_TYPE(GXFinishSendPageProcPtr) GXFinishSendPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFinishSendPageUPP)
- NewGXFinishSendPageUPP (GXFinishSendPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFinishSendPageUPP (GXFinishSendPageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFinishSendPageUPP (GXFinishSendPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFinishSendPageProcInfo = 0x00000021 }; /* 2_bytes Func() */
- #define NewGXFinishSendPageUPP(userRoutine) (GXFinishSendPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishSendPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXFinishSendPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFinishSendPageUPP(userUPP) (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXFinishSendPageProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFinishSendPageProc(userRoutine) NewGXFinishSendPageUPP(userRoutine)
- #define CallGXFinishSendPageProc(userRoutine) InvokeGXFinishSendPageUPP(userRoutine)
- #define Send_GXFinishSendPage() MacSendMessage(0x00000027)
- #define Forward_GXFinishSendPage() ForwardThisMessage((void *) (0))
- typedef CALLBACK_API_C( OSErr , GXWriteDataProcPtr )(Ptr data, long length);
- typedef STACK_UPP_TYPE(GXWriteDataProcPtr) GXWriteDataUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXWriteDataUPP)
- NewGXWriteDataUPP (GXWriteDataProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXWriteDataUPP (GXWriteDataUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXWriteDataUPP (Ptr data,
- long length,
- GXWriteDataUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXWriteDataProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXWriteDataUPP(userRoutine) (GXWriteDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXWriteDataProcInfo, GetCurrentArchitecture())
- #define DisposeGXWriteDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXWriteDataUPP(data, length, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXWriteDataProcInfo, (data), (length))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXWriteDataProc(userRoutine) NewGXWriteDataUPP(userRoutine)
- #define CallGXWriteDataProc(userRoutine, data, length) InvokeGXWriteDataUPP(data, length, userRoutine)
- #define Send_GXWriteData(data, length) MacSendMessage(0x00000028, data, length)
- #define Forward_GXWriteData(data, length) ForwardThisMessage((void *) (data), (void *) (length))
- typedef CALLBACK_API_C( OSErr , GXBufferDataProcPtr )(Ptr data, long length, long bufferOptions);
- typedef STACK_UPP_TYPE(GXBufferDataProcPtr) GXBufferDataUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXBufferDataUPP)
- NewGXBufferDataUPP (GXBufferDataProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXBufferDataUPP (GXBufferDataUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXBufferDataUPP (Ptr data,
- long length,
- long bufferOptions,
- GXBufferDataUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXBufferDataProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXBufferDataUPP(userRoutine) (GXBufferDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXBufferDataProcInfo, GetCurrentArchitecture())
- #define DisposeGXBufferDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXBufferDataUPP(data, length, bufferOptions, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXBufferDataProcInfo, (data), (length), (bufferOptions))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXBufferDataProc(userRoutine) NewGXBufferDataUPP(userRoutine)
- #define CallGXBufferDataProc(userRoutine, data, length, bufferOptions) InvokeGXBufferDataUPP(data, length, bufferOptions, userRoutine)
- #define Send_GXBufferData(data, length, bufferOptions)
- MacSendMessage(0x00000029, data, length, bufferOptions)
-
- #define Forward_GXBufferData(data, length, bufferOptions)
- ForwardThisMessage((void *) (data), (void *) (length), (void *) (bufferOptions))
- typedef CALLBACK_API_C( OSErr , GXDumpBufferProcPtr )(gxPrintingBuffer *theBuffer);
- typedef STACK_UPP_TYPE(GXDumpBufferProcPtr) GXDumpBufferUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDumpBufferUPP)
- NewGXDumpBufferUPP (GXDumpBufferProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDumpBufferUPP (GXDumpBufferUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDumpBufferUPP (gxPrintingBuffer * theBuffer,
- GXDumpBufferUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDumpBufferProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXDumpBufferUPP(userRoutine) (GXDumpBufferUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDumpBufferProcInfo, GetCurrentArchitecture())
- #define DisposeGXDumpBufferUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDumpBufferUPP(theBuffer, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDumpBufferProcInfo, (theBuffer))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDumpBufferProc(userRoutine) NewGXDumpBufferUPP(userRoutine)
- #define CallGXDumpBufferProc(userRoutine, theBuffer) InvokeGXDumpBufferUPP(theBuffer, userRoutine)
- #define Send_GXDumpBuffer(theBuffer) MacSendMessage(0x0000002A, theBuffer)
- #define Forward_GXDumpBuffer(theBuffer) ForwardThisMessage((void *) (theBuffer))
- typedef CALLBACK_API_C( OSErr , GXFreeBufferProcPtr )(gxPrintingBuffer *theBuffer);
- typedef STACK_UPP_TYPE(GXFreeBufferProcPtr) GXFreeBufferUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFreeBufferUPP)
- NewGXFreeBufferUPP (GXFreeBufferProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFreeBufferUPP (GXFreeBufferUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFreeBufferUPP (gxPrintingBuffer * theBuffer,
- GXFreeBufferUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFreeBufferProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXFreeBufferUPP(userRoutine) (GXFreeBufferUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFreeBufferProcInfo, GetCurrentArchitecture())
- #define DisposeGXFreeBufferUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFreeBufferUPP(theBuffer, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXFreeBufferProcInfo, (theBuffer))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFreeBufferProc(userRoutine) NewGXFreeBufferUPP(userRoutine)
- #define CallGXFreeBufferProc(userRoutine, theBuffer) InvokeGXFreeBufferUPP(theBuffer, userRoutine)
- #define Send_GXFreeBuffer(theBuffer) MacSendMessage(0x0000002B, theBuffer)
- #define Forward_GXFreeBuffer(theBuffer) ForwardThisMessage((void *) (theBuffer))
- typedef CALLBACK_API_C( OSErr , GXCheckStatusProcPtr )(Ptr data, long length, long statusType, gxOwnerSignature owner);
- typedef STACK_UPP_TYPE(GXCheckStatusProcPtr) GXCheckStatusUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCheckStatusUPP)
- NewGXCheckStatusUPP (GXCheckStatusProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCheckStatusUPP (GXCheckStatusUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXCheckStatusUPP (Ptr data,
- long length,
- long statusType,
- gxOwnerSignature owner,
- GXCheckStatusUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCheckStatusProcInfo = 0x00003FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXCheckStatusUPP(userRoutine) (GXCheckStatusUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCheckStatusProcInfo, GetCurrentArchitecture())
- #define DisposeGXCheckStatusUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCheckStatusUPP(data, length, statusType, owner, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXCheckStatusProcInfo, (data), (length), (statusType), (owner))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCheckStatusProc(userRoutine) NewGXCheckStatusUPP(userRoutine)
- #define CallGXCheckStatusProc(userRoutine, data, length, statusType, owner) InvokeGXCheckStatusUPP(data, length, statusType, owner, userRoutine)
- #define Send_GXCheckStatus(data, length, statusType, owner)
- MacSendMessage(0x0000002C, data, length, statusType, owner)
-
- #define Forward_GXCheckStatus(data, length, statusType, owner)
- ForwardThisMessage((void *) (data), (void *) (length), (void *) (statusType), (void *) (owner))
- typedef CALLBACK_API_C( OSErr , GXGetDeviceStatusProcPtr )(Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination);
- typedef STACK_UPP_TYPE(GXGetDeviceStatusProcPtr) GXGetDeviceStatusUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXGetDeviceStatusUPP)
- NewGXGetDeviceStatusUPP (GXGetDeviceStatusProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXGetDeviceStatusUPP (GXGetDeviceStatusUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXGetDeviceStatusUPP (Ptr cmdData,
- long cmdSize,
- Ptr responseData,
- long * responseSize,
- Str255 termination,
- GXGetDeviceStatusUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXGetDeviceStatusProcInfo = 0x0000FFE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXGetDeviceStatusUPP(userRoutine) (GXGetDeviceStatusUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXGetDeviceStatusProcInfo, GetCurrentArchitecture())
- #define DisposeGXGetDeviceStatusUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXGetDeviceStatusUPP(cmdData, cmdSize, responseData, responseSize, termination, userUPP) (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppGXGetDeviceStatusProcInfo, (cmdData), (cmdSize), (responseData), (responseSize), (termination))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXGetDeviceStatusProc(userRoutine) NewGXGetDeviceStatusUPP(userRoutine)
- #define CallGXGetDeviceStatusProc(userRoutine, cmdData, cmdSize, responseData, responseSize, termination) InvokeGXGetDeviceStatusUPP(cmdData, cmdSize, responseData, responseSize, termination, userRoutine)
- #define Send_GXGetDeviceStatus(cmdData, cmdSize, responseData, responseSize, termination)
- MacSendMessage(0x0000002D, cmdData, cmdSize, responseData, responseSize, termination)
-
- #define Forward_GXGetDeviceStatus(cmdData, cmdSize, responseData, responseSize, termination)
- ForwardThisMessage((void *) (cmdData), (void *) (cmdSize), (void *) (responseData),
- (void *) (responseSize), (void *) (termination))
- typedef CALLBACK_API_C( OSErr , GXFetchTaggedDataProcPtr )(ResType theType, long id, Handle *dataHdl, gxOwnerSignature owner);
- typedef STACK_UPP_TYPE(GXFetchTaggedDataProcPtr) GXFetchTaggedDataUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFetchTaggedDataUPP)
- NewGXFetchTaggedDataUPP (GXFetchTaggedDataProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFetchTaggedDataUPP (GXFetchTaggedDataUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFetchTaggedDataUPP (ResType theType,
- long id,
- Handle * dataHdl,
- gxOwnerSignature owner,
- GXFetchTaggedDataUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFetchTaggedDataProcInfo = 0x00003FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXFetchTaggedDataUPP(userRoutine) (GXFetchTaggedDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFetchTaggedDataProcInfo, GetCurrentArchitecture())
- #define DisposeGXFetchTaggedDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFetchTaggedDataUPP(theType, id, dataHdl, owner, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXFetchTaggedDataProcInfo, (theType), (id), (dataHdl), (owner))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFetchTaggedDataProc(userRoutine) NewGXFetchTaggedDataUPP(userRoutine)
- #define CallGXFetchTaggedDataProc(userRoutine, theType, id, dataHdl, owner) InvokeGXFetchTaggedDataUPP(theType, id, dataHdl, owner, userRoutine)
- #define Send_GXFetchTaggedDriverData(tag, id, pHandle) Send_GXFetchTaggedData(tag, id, pHandle, 'drvr')
- #define Forward_GXFetchTaggedDriverData(tag, id, pHandle) Forward_GXFetchTaggedData(tag, id, pHandle, 'drvr')
- #define Send_GXFetchTaggedData(theType, id, dataHdl, owner)
- MacSendMessage(0x0000002E, theType, id, dataHdl, owner)
-
- #define Forward_GXFetchTaggedData(theType, id, dataHdl, owner)
- ForwardThisMessage((void *) (theType), (void *) (id), (void *) (dataHdl), (void *) (owner))
- typedef CALLBACK_API_C( OSErr , GXGetDTPMenuListProcPtr )(MenuHandle menuHdl);
- typedef STACK_UPP_TYPE(GXGetDTPMenuListProcPtr) GXGetDTPMenuListUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXGetDTPMenuListUPP)
- NewGXGetDTPMenuListUPP (GXGetDTPMenuListProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXGetDTPMenuListUPP (GXGetDTPMenuListUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXGetDTPMenuListUPP (MenuHandle menuHdl,
- GXGetDTPMenuListUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXGetDTPMenuListProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXGetDTPMenuListUPP(userRoutine) (GXGetDTPMenuListUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXGetDTPMenuListProcInfo, GetCurrentArchitecture())
- #define DisposeGXGetDTPMenuListUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXGetDTPMenuListUPP(menuHdl, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXGetDTPMenuListProcInfo, (menuHdl))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXGetDTPMenuListProc(userRoutine) NewGXGetDTPMenuListUPP(userRoutine)
- #define CallGXGetDTPMenuListProc(userRoutine, menuHdl) InvokeGXGetDTPMenuListUPP(menuHdl, userRoutine)
- #define Send_GXGetDTPMenuList(menuHdl)
- MacSendMessage(0x0000002F, menuHdl)
-
- #define Forward_GXGetDTPMenuList(menuHdl)
- ForwardThisMessage((void *) (menuHdl))
- typedef CALLBACK_API_C( OSErr , GXDTPMenuSelectProcPtr )(long id);
- typedef STACK_UPP_TYPE(GXDTPMenuSelectProcPtr) GXDTPMenuSelectUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDTPMenuSelectUPP)
- NewGXDTPMenuSelectUPP (GXDTPMenuSelectProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDTPMenuSelectUPP (GXDTPMenuSelectUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDTPMenuSelectUPP (long id,
- GXDTPMenuSelectUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDTPMenuSelectProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXDTPMenuSelectUPP(userRoutine) (GXDTPMenuSelectUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDTPMenuSelectProcInfo, GetCurrentArchitecture())
- #define DisposeGXDTPMenuSelectUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDTPMenuSelectUPP(id, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDTPMenuSelectProcInfo, (id))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDTPMenuSelectProc(userRoutine) NewGXDTPMenuSelectUPP(userRoutine)
- #define CallGXDTPMenuSelectProc(userRoutine, id) InvokeGXDTPMenuSelectUPP(id, userRoutine)
- #define Send_GXDTPMenuSelect(id)
- MacSendMessage(0x00000030, id)
-
- #define Forward_GXDTPMenuSelect(id)
- ForwardThisMessage((void *) (id))
- typedef CALLBACK_API_C( OSErr , GXHandleAlertFilterProcPtr )(gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed);
- typedef STACK_UPP_TYPE(GXHandleAlertFilterProcPtr) GXHandleAlertFilterUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXHandleAlertFilterUPP)
- NewGXHandleAlertFilterUPP (GXHandleAlertFilterProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXHandleAlertFilterUPP (GXHandleAlertFilterUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXHandleAlertFilterUPP (gxJob theJob,
- gxStatusRecord * pStatusRec,
- DialogPtr pDialog,
- EventRecord * theEvent,
- short * itemHit,
- Boolean * returnImmed,
- GXHandleAlertFilterUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXHandleAlertFilterProcInfo = 0x0003FFE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXHandleAlertFilterUPP(userRoutine) (GXHandleAlertFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertFilterProcInfo, GetCurrentArchitecture())
- #define DisposeGXHandleAlertFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXHandleAlertFilterUPP(theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed, userUPP) (OSErr)CALL_SIX_PARAMETER_UPP((userUPP), uppGXHandleAlertFilterProcInfo, (theJob), (pStatusRec), (pDialog), (theEvent), (itemHit), (returnImmed))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXHandleAlertFilterProc(userRoutine) NewGXHandleAlertFilterUPP(userRoutine)
- #define CallGXHandleAlertFilterProc(userRoutine, theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed) InvokeGXHandleAlertFilterUPP(theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed, userRoutine)
- #define Send_GXHandleAlertFilter(theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed)
- MacSendMessage(0x00000031, theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed)
-
- #define Forward_GXHandleAlertFilter(theJob, pStatusRec, pDialog, theEvent, itemHit, returnImmed)
- ForwardThisMessage((void *) (theJob), (void *) (pStatusRec), (void *) (pDialog), (void *) (theEvent),
- (void *) (itemHit), (void *) (returnImmed))
- typedef CALLBACK_API_C( OSErr , GXJobFormatModeQueryProcPtr )(gxQueryType theQuery, void *srcData, void *dstData);
- typedef STACK_UPP_TYPE(GXJobFormatModeQueryProcPtr) GXJobFormatModeQueryUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXJobFormatModeQueryUPP)
- NewGXJobFormatModeQueryUPP (GXJobFormatModeQueryProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXJobFormatModeQueryUPP (GXJobFormatModeQueryUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXJobFormatModeQueryUPP (gxQueryType theQuery,
- void * srcData,
- void * dstData,
- GXJobFormatModeQueryUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXJobFormatModeQueryProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXJobFormatModeQueryUPP(userRoutine) (GXJobFormatModeQueryUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXJobFormatModeQueryProcInfo, GetCurrentArchitecture())
- #define DisposeGXJobFormatModeQueryUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXJobFormatModeQueryUPP(theQuery, srcData, dstData, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXJobFormatModeQueryProcInfo, (theQuery), (srcData), (dstData))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXJobFormatModeQueryProc(userRoutine) NewGXJobFormatModeQueryUPP(userRoutine)
- #define CallGXJobFormatModeQueryProc(userRoutine, theQuery, srcData, dstData) InvokeGXJobFormatModeQueryUPP(theQuery, srcData, dstData, userRoutine)
- #define Send_GXJobFormatModeQuery(theQuery, srcData, dstData)
- MacSendMessage(0x00000032, theQuery, srcData, dstData)
-
- #define Forward_GXJobFormatModeQuery(theQuery, srcData, dstData)
- ForwardThisMessage((void *) (theQuery), (void *) (srcData), (void *) (dstData))
- typedef CALLBACK_API_C( OSErr , GXWriteStatusToDTPWindowProcPtr )(gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay);
- typedef STACK_UPP_TYPE(GXWriteStatusToDTPWindowProcPtr) GXWriteStatusToDTPWindowUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXWriteStatusToDTPWindowUPP)
- NewGXWriteStatusToDTPWindowUPP (GXWriteStatusToDTPWindowProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXWriteStatusToDTPWindowUPP (GXWriteStatusToDTPWindowUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXWriteStatusToDTPWindowUPP (gxStatusRecord * pStatusRec,
- gxDisplayRecord * pDisplay,
- GXWriteStatusToDTPWindowUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXWriteStatusToDTPWindowProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXWriteStatusToDTPWindowUPP(userRoutine) (GXWriteStatusToDTPWindowUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXWriteStatusToDTPWindowProcInfo, GetCurrentArchitecture())
- #define DisposeGXWriteStatusToDTPWindowUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXWriteStatusToDTPWindowUPP(pStatusRec, pDisplay, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXWriteStatusToDTPWindowProcInfo, (pStatusRec), (pDisplay))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXWriteStatusToDTPWindowProc(userRoutine) NewGXWriteStatusToDTPWindowUPP(userRoutine)
- #define CallGXWriteStatusToDTPWindowProc(userRoutine, pStatusRec, pDisplay) InvokeGXWriteStatusToDTPWindowUPP(pStatusRec, pDisplay, userRoutine)
- #define Send_GXWriteStatusToDTPWindow(pStatusRec, pDisplay)
- MacSendMessage(0x00000033, pStatusRec, pDisplay)
-
- #define Forward_GXWriteStatusToDTPWindow(pStatusRec, pDisplay)
- ForwardThisMessage((void *) (pStatusRec), (void *) (pDisplay))
- typedef CALLBACK_API_C( OSErr , GXInitializeStatusAlertProcPtr )(gxStatusRecord *pStatusRec, DialogPtr *pDialog);
- typedef STACK_UPP_TYPE(GXInitializeStatusAlertProcPtr) GXInitializeStatusAlertUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXInitializeStatusAlertUPP)
- NewGXInitializeStatusAlertUPP (GXInitializeStatusAlertProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXInitializeStatusAlertUPP (GXInitializeStatusAlertUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXInitializeStatusAlertUPP (gxStatusRecord * pStatusRec,
- DialogPtr * pDialog,
- GXInitializeStatusAlertUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXInitializeStatusAlertProcInfo = 0x000003E1 }; /* 2_bytes Func(4_bytes, 4_bytes) */
- #define NewGXInitializeStatusAlertUPP(userRoutine) (GXInitializeStatusAlertUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXInitializeStatusAlertProcInfo, GetCurrentArchitecture())
- #define DisposeGXInitializeStatusAlertUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXInitializeStatusAlertUPP(pStatusRec, pDialog, userUPP) (OSErr)CALL_TWO_PARAMETER_UPP((userUPP), uppGXInitializeStatusAlertProcInfo, (pStatusRec), (pDialog))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXInitializeStatusAlertProc(userRoutine) NewGXInitializeStatusAlertUPP(userRoutine)
- #define CallGXInitializeStatusAlertProc(userRoutine, pStatusRec, pDialog) InvokeGXInitializeStatusAlertUPP(pStatusRec, pDialog, userRoutine)
- #define Send_GXInitializeStatusAlert(pStatusRec, pDialog)
- MacSendMessage(0x00000034, pStatusRec, pDialog)
-
- #define Forward_GXInitializeStatusAlert(pStatusRec, pDialog)
- ForwardThisMessage((void *) (pStatusRec), (void *) (pDialog))
- typedef CALLBACK_API_C( OSErr , GXHandleAlertStatusProcPtr )(gxStatusRecord *pStatusRec);
- typedef STACK_UPP_TYPE(GXHandleAlertStatusProcPtr) GXHandleAlertStatusUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXHandleAlertStatusUPP)
- NewGXHandleAlertStatusUPP (GXHandleAlertStatusProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXHandleAlertStatusUPP (GXHandleAlertStatusUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXHandleAlertStatusUPP (gxStatusRecord * pStatusRec,
- GXHandleAlertStatusUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXHandleAlertStatusProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXHandleAlertStatusUPP(userRoutine) (GXHandleAlertStatusUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertStatusProcInfo, GetCurrentArchitecture())
- #define DisposeGXHandleAlertStatusUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXHandleAlertStatusUPP(pStatusRec, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXHandleAlertStatusProcInfo, (pStatusRec))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXHandleAlertStatusProc(userRoutine) NewGXHandleAlertStatusUPP(userRoutine)
- #define CallGXHandleAlertStatusProc(userRoutine, pStatusRec) InvokeGXHandleAlertStatusUPP(pStatusRec, userRoutine)
- #define Send_GXHandleAlertStatus(pStatusRec)
- MacSendMessage(0x00000035, pStatusRec)
-
- #define Forward_GXHandleAlertStatus(pStatusRec)
- ForwardThisMessage((void *) (pStatusRec))
- typedef CALLBACK_API_C( OSErr , GXHandleAlertEventProcPtr )(gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response);
- typedef STACK_UPP_TYPE(GXHandleAlertEventProcPtr) GXHandleAlertEventUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXHandleAlertEventUPP)
- NewGXHandleAlertEventUPP (GXHandleAlertEventProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXHandleAlertEventUPP (GXHandleAlertEventUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXHandleAlertEventUPP (gxStatusRecord * pStatusRec,
- DialogPtr pDialog,
- EventRecord * theEvent,
- short * response,
- GXHandleAlertEventUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXHandleAlertEventProcInfo = 0x00003FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXHandleAlertEventUPP(userRoutine) (GXHandleAlertEventUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAlertEventProcInfo, GetCurrentArchitecture())
- #define DisposeGXHandleAlertEventUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXHandleAlertEventUPP(pStatusRec, pDialog, theEvent, response, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXHandleAlertEventProcInfo, (pStatusRec), (pDialog), (theEvent), (response))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXHandleAlertEventProc(userRoutine) NewGXHandleAlertEventUPP(userRoutine)
- #define CallGXHandleAlertEventProc(userRoutine, pStatusRec, pDialog, theEvent, response) InvokeGXHandleAlertEventUPP(pStatusRec, pDialog, theEvent, response, userRoutine)
- #define Send_GXHandleAlertEvent(pStatusRec, pDialog, theEvent, response)
- MacSendMessage(0x00000036, pStatusRec, pDialog, theEvent, response)
-
- #define Forward_GXHandleAlertEvent(pStatusRec, pDialog, theEvent, response)
- ForwardThisMessage((void *) (pStatusRec), (void *) (pDialog),
- (void *) (theEvent), (void *) (response))
- typedef CALLBACK_API_C( void , GXCleanupStartJobProcPtr )(void );
- typedef STACK_UPP_TYPE(GXCleanupStartJobProcPtr) GXCleanupStartJobUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCleanupStartJobUPP)
- NewGXCleanupStartJobUPP (GXCleanupStartJobProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCleanupStartJobUPP (GXCleanupStartJobUPP userUPP);
- EXTERN_API(void)
- InvokeGXCleanupStartJobUPP (GXCleanupStartJobUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCleanupStartJobProcInfo = 0x00000001 }; /* no_return_value Func() */
- #define NewGXCleanupStartJobUPP(userRoutine) (GXCleanupStartJobUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartJobProcInfo, GetCurrentArchitecture())
- #define DisposeGXCleanupStartJobUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCleanupStartJobUPP(userUPP) CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCleanupStartJobProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCleanupStartJobProc(userRoutine) NewGXCleanupStartJobUPP(userRoutine)
- #define CallGXCleanupStartJobProc(userRoutine) InvokeGXCleanupStartJobUPP(userRoutine)
- #define Send_GXCleanupStartJob() ((void) MacSendMessage(0x00000037))
- #define Forward_GXCleanupStartJob() ((void) ForwardThisMessage((void *) (0)))
- typedef CALLBACK_API_C( void , GXCleanupStartPageProcPtr )(void );
- typedef STACK_UPP_TYPE(GXCleanupStartPageProcPtr) GXCleanupStartPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCleanupStartPageUPP)
- NewGXCleanupStartPageUPP (GXCleanupStartPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCleanupStartPageUPP (GXCleanupStartPageUPP userUPP);
- EXTERN_API(void)
- InvokeGXCleanupStartPageUPP (GXCleanupStartPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCleanupStartPageProcInfo = 0x00000001 }; /* no_return_value Func() */
- #define NewGXCleanupStartPageUPP(userRoutine) (GXCleanupStartPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXCleanupStartPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCleanupStartPageUPP(userUPP) CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCleanupStartPageProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCleanupStartPageProc(userRoutine) NewGXCleanupStartPageUPP(userRoutine)
- #define CallGXCleanupStartPageProc(userRoutine) InvokeGXCleanupStartPageUPP(userRoutine)
- #define Send_GXCleanupStartPage() ((void) MacSendMessage(0x00000038))
- #define Forward_GXCleanupStartPage() ((void) ForwardThisMessage((void *) (0)))
- typedef CALLBACK_API_C( void , GXCleanupOpenConnectionProcPtr )(void );
- typedef STACK_UPP_TYPE(GXCleanupOpenConnectionProcPtr) GXCleanupOpenConnectionUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCleanupOpenConnectionUPP)
- NewGXCleanupOpenConnectionUPP (GXCleanupOpenConnectionProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCleanupOpenConnectionUPP (GXCleanupOpenConnectionUPP userUPP);
- EXTERN_API(void)
- InvokeGXCleanupOpenConnectionUPP (GXCleanupOpenConnectionUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCleanupOpenConnectionProcInfo = 0x00000001 }; /* no_return_value Func() */
- #define NewGXCleanupOpenConnectionUPP(userRoutine) (GXCleanupOpenConnectionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupOpenConnectionProcInfo, GetCurrentArchitecture())
- #define DisposeGXCleanupOpenConnectionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCleanupOpenConnectionUPP(userUPP) CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCleanupOpenConnectionProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCleanupOpenConnectionProc(userRoutine) NewGXCleanupOpenConnectionUPP(userRoutine)
- #define CallGXCleanupOpenConnectionProc(userRoutine) InvokeGXCleanupOpenConnectionUPP(userRoutine)
- #define Send_GXCleanupOpenConnection() ((void) MacSendMessage(0x00000039))
- #define Forward_GXCleanupOpenConnection() ((void) ForwardThisMessage((void *) (0)))
- typedef CALLBACK_API_C( void , GXCleanupStartSendPageProcPtr )(void );
- typedef STACK_UPP_TYPE(GXCleanupStartSendPageProcPtr) GXCleanupStartSendPageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCleanupStartSendPageUPP)
- NewGXCleanupStartSendPageUPP (GXCleanupStartSendPageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCleanupStartSendPageUPP (GXCleanupStartSendPageUPP userUPP);
- EXTERN_API(void)
- InvokeGXCleanupStartSendPageUPP (GXCleanupStartSendPageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCleanupStartSendPageProcInfo = 0x00000001 }; /* no_return_value Func() */
- #define NewGXCleanupStartSendPageUPP(userRoutine) (GXCleanupStartSendPageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCleanupStartSendPageProcInfo, GetCurrentArchitecture())
- #define DisposeGXCleanupStartSendPageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCleanupStartSendPageUPP(userUPP) CALL_ZERO_PARAMETER_UPP((userUPP), uppGXCleanupStartSendPageProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCleanupStartSendPageProc(userRoutine) NewGXCleanupStartSendPageUPP(userRoutine)
- #define CallGXCleanupStartSendPageProc(userRoutine) InvokeGXCleanupStartSendPageUPP(userRoutine)
- #define Send_GXCleanupStartSendPage() ((void) MacSendMessage(0x0000003A))
- #define Forward_GXCleanupStartSendPage() ((void) ForwardThisMessage((void *) (0)))
- typedef CALLBACK_API_C( OSErr , GXDefaultDesktopPrinterProcPtr )(Str31 dtpName);
- typedef STACK_UPP_TYPE(GXDefaultDesktopPrinterProcPtr) GXDefaultDesktopPrinterUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDefaultDesktopPrinterUPP)
- NewGXDefaultDesktopPrinterUPP (GXDefaultDesktopPrinterProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDefaultDesktopPrinterUPP (GXDefaultDesktopPrinterUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDefaultDesktopPrinterUPP (Str31 dtpName,
- GXDefaultDesktopPrinterUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDefaultDesktopPrinterProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXDefaultDesktopPrinterUPP(userRoutine) (GXDefaultDesktopPrinterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDefaultDesktopPrinterProcInfo, GetCurrentArchitecture())
- #define DisposeGXDefaultDesktopPrinterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDefaultDesktopPrinterUPP(dtpName, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXDefaultDesktopPrinterProcInfo, (dtpName))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDefaultDesktopPrinterProc(userRoutine) NewGXDefaultDesktopPrinterUPP(userRoutine)
- #define CallGXDefaultDesktopPrinterProc(userRoutine, dtpName) InvokeGXDefaultDesktopPrinterUPP(dtpName, userRoutine)
- #define Send_GXDefaultDesktopPrinter(dtpName) MacSendMessage(0x0000003B, dtpName)
- #define Forward_GXDefaultDesktopPrinter(dtpName) ForwardThisMessage((void *) (dtpName))
- typedef CALLBACK_API_C( OSErr , GXCaptureOutputDeviceProcPtr )(Boolean capture);
- typedef STACK_UPP_TYPE(GXCaptureOutputDeviceProcPtr) GXCaptureOutputDeviceUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXCaptureOutputDeviceUPP)
- NewGXCaptureOutputDeviceUPP (GXCaptureOutputDeviceProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXCaptureOutputDeviceUPP (GXCaptureOutputDeviceUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXCaptureOutputDeviceUPP (Boolean capture,
- GXCaptureOutputDeviceUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXCaptureOutputDeviceProcInfo = 0x00000061 }; /* 2_bytes Func(1_byte) */
- #define NewGXCaptureOutputDeviceUPP(userRoutine) (GXCaptureOutputDeviceUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXCaptureOutputDeviceProcInfo, GetCurrentArchitecture())
- #define DisposeGXCaptureOutputDeviceUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXCaptureOutputDeviceUPP(capture, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXCaptureOutputDeviceProcInfo, (capture))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXCaptureOutputDeviceProc(userRoutine) NewGXCaptureOutputDeviceUPP(userRoutine)
- #define CallGXCaptureOutputDeviceProc(userRoutine, capture) InvokeGXCaptureOutputDeviceUPP(capture, userRoutine)
- #define Send_GXCaptureOutputDevice(capture) MacSendMessage(0x0000003C, capture)
- #define Forward_GXCaptureOutputDevice(capture) ForwardThisMessage((void *) (capture))
- typedef CALLBACK_API_C( OSErr , GXOpenConnectionRetryProcPtr )(ResType theType, void *aVoid, Boolean *retryopenPtr, OSErr anErr);
- typedef STACK_UPP_TYPE(GXOpenConnectionRetryProcPtr) GXOpenConnectionRetryUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXOpenConnectionRetryUPP)
- NewGXOpenConnectionRetryUPP (GXOpenConnectionRetryProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXOpenConnectionRetryUPP (GXOpenConnectionRetryUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXOpenConnectionRetryUPP (ResType theType,
- void * aVoid,
- Boolean * retryopenPtr,
- OSErr anErr,
- GXOpenConnectionRetryUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXOpenConnectionRetryProcInfo = 0x00002FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 2_bytes) */
- #define NewGXOpenConnectionRetryUPP(userRoutine) (GXOpenConnectionRetryUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXOpenConnectionRetryProcInfo, GetCurrentArchitecture())
- #define DisposeGXOpenConnectionRetryUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXOpenConnectionRetryUPP(theType, aVoid, retryopenPtr, anErr, userUPP) (OSErr)CALL_FOUR_PARAMETER_UPP((userUPP), uppGXOpenConnectionRetryProcInfo, (theType), (aVoid), (retryopenPtr), (anErr))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXOpenConnectionRetryProc(userRoutine) NewGXOpenConnectionRetryUPP(userRoutine)
- #define CallGXOpenConnectionRetryProc(userRoutine, theType, aVoid, retryopenPtr, anErr) InvokeGXOpenConnectionRetryUPP(theType, aVoid, retryopenPtr, anErr, userRoutine)
- #define Send_GXOpenConnectionRetry(theType, aVoid, retryopenPtr, anErr)
- MacSendMessage(0x0000003D, theType, aVoid, retryopenPtr, anErr)
-
- #define Forward_GXOpenConnectionRetry(theType, aVoid, retryopenPtr, anErr)
- ForwardThisMessage((void *) (theType), (void *) (aVoid), (void *) (retryopenPtr), (void *) (anErr))
- typedef CALLBACK_API_C( OSErr , GXExamineSpoolFileProcPtr )(gxSpoolFile theSpoolFile);
- typedef STACK_UPP_TYPE(GXExamineSpoolFileProcPtr) GXExamineSpoolFileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXExamineSpoolFileUPP)
- NewGXExamineSpoolFileUPP (GXExamineSpoolFileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXExamineSpoolFileUPP (GXExamineSpoolFileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXExamineSpoolFileUPP (gxSpoolFile theSpoolFile,
- GXExamineSpoolFileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXExamineSpoolFileProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXExamineSpoolFileUPP(userRoutine) (GXExamineSpoolFileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXExamineSpoolFileProcInfo, GetCurrentArchitecture())
- #define DisposeGXExamineSpoolFileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXExamineSpoolFileUPP(theSpoolFile, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXExamineSpoolFileProcInfo, (theSpoolFile))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXExamineSpoolFileProc(userRoutine) NewGXExamineSpoolFileUPP(userRoutine)
- #define CallGXExamineSpoolFileProc(userRoutine, theSpoolFile) InvokeGXExamineSpoolFileUPP(theSpoolFile, userRoutine)
- #define Send_GXExamineSpoolFile(theSpoolFile) MacSendMessage(0x0000003E, theSpoolFile)
- #define Forward_GXExamineSpoolFile(theSpoolFile) ForwardThisMessage((void *) (theSpoolFile))
- typedef CALLBACK_API_C( OSErr , GXFinishSendPlaneProcPtr )(void );
- typedef STACK_UPP_TYPE(GXFinishSendPlaneProcPtr) GXFinishSendPlaneUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFinishSendPlaneUPP)
- NewGXFinishSendPlaneUPP (GXFinishSendPlaneProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFinishSendPlaneUPP (GXFinishSendPlaneUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFinishSendPlaneUPP (GXFinishSendPlaneUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFinishSendPlaneProcInfo = 0x00000021 }; /* 2_bytes Func() */
- #define NewGXFinishSendPlaneUPP(userRoutine) (GXFinishSendPlaneUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFinishSendPlaneProcInfo, GetCurrentArchitecture())
- #define DisposeGXFinishSendPlaneUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFinishSendPlaneUPP(userUPP) (OSErr)CALL_ZERO_PARAMETER_UPP((userUPP), uppGXFinishSendPlaneProcInfo)
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFinishSendPlaneProc(userRoutine) NewGXFinishSendPlaneUPP(userRoutine)
- #define CallGXFinishSendPlaneProc(userRoutine) InvokeGXFinishSendPlaneUPP(userRoutine)
- #define Send_GXFinishSendPlane() MacSendMessage(0x0000003F)
- #define Forward_GXFinishSendPlane() ForwardThisMessage((void *) (0))
- typedef CALLBACK_API_C( OSErr , GXDoesPaperFitProcPtr )(gxTrayIndex whichTray, gxPaperType paper, Boolean *fits);
- typedef STACK_UPP_TYPE(GXDoesPaperFitProcPtr) GXDoesPaperFitUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXDoesPaperFitUPP)
- NewGXDoesPaperFitUPP (GXDoesPaperFitProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXDoesPaperFitUPP (GXDoesPaperFitUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXDoesPaperFitUPP (gxTrayIndex whichTray,
- gxPaperType paper,
- Boolean * fits,
- GXDoesPaperFitUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXDoesPaperFitProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXDoesPaperFitUPP(userRoutine) (GXDoesPaperFitUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXDoesPaperFitProcInfo, GetCurrentArchitecture())
- #define DisposeGXDoesPaperFitUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXDoesPaperFitUPP(whichTray, paper, fits, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXDoesPaperFitProcInfo, (whichTray), (paper), (fits))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXDoesPaperFitProc(userRoutine) NewGXDoesPaperFitUPP(userRoutine)
- #define CallGXDoesPaperFitProc(userRoutine, whichTray, paper, fits) InvokeGXDoesPaperFitUPP(whichTray, paper, fits, userRoutine)
- #define Send_GXDoesPaperFit(whichTray, paper, fits)
- MacSendMessage(0x00000040, whichTray, paper, fits)
-
- #define Forward_GXDoesPaperFit(whichTray, paper, fits)
- ForwardThisMessage((void *) (whichTray), (void *) (paper), (void *) (fits))
- typedef CALLBACK_API_C( OSErr , GXChooserMessageProcPtr )(long message, long caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2);
- typedef STACK_UPP_TYPE(GXChooserMessageProcPtr) GXChooserMessageUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXChooserMessageUPP)
- NewGXChooserMessageUPP (GXChooserMessageProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXChooserMessageUPP (GXChooserMessageUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXChooserMessageUPP (long message,
- long caller,
- StringPtr objName,
- StringPtr zoneName,
- ListHandle theList,
- long p2,
- GXChooserMessageUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXChooserMessageProcInfo = 0x0003FFE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXChooserMessageUPP(userRoutine) (GXChooserMessageUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXChooserMessageProcInfo, GetCurrentArchitecture())
- #define DisposeGXChooserMessageUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXChooserMessageUPP(message, caller, objName, zoneName, theList, p2, userUPP) (OSErr)CALL_SIX_PARAMETER_UPP((userUPP), uppGXChooserMessageProcInfo, (message), (caller), (objName), (zoneName), (theList), (p2))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXChooserMessageProc(userRoutine) NewGXChooserMessageUPP(userRoutine)
- #define CallGXChooserMessageProc(userRoutine, message, caller, objName, zoneName, theList, p2) InvokeGXChooserMessageUPP(message, caller, objName, zoneName, theList, p2, userRoutine)
- #define Send_GXChooserMessage(message, caller, objName, zoneName, theList, p2)
- MacSendMessage(0x00000041, message, caller, objName, zoneName, theList, p2)
-
- #define Forward_GXChooserMessage(message, caller, objName, zoneName, theList, p2)
- ForwardThisMessage((void *) (message), (void *) (caller), (void *) (objName),
- (void *) (zoneName), (void *) (theList), (void *) (p2))
- typedef CALLBACK_API_C( OSErr , GXFindPrinterProfileProcPtr )(gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles);
- typedef STACK_UPP_TYPE(GXFindPrinterProfileProcPtr) GXFindPrinterProfileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFindPrinterProfileUPP)
- NewGXFindPrinterProfileUPP (GXFindPrinterProfileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFindPrinterProfileUPP (GXFindPrinterProfileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFindPrinterProfileUPP (gxPrinter thePrinter,
- void * searchData,
- long index,
- gxColorProfile * returnedProfile,
- long * numProfiles,
- GXFindPrinterProfileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFindPrinterProfileProcInfo = 0x0000FFE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXFindPrinterProfileUPP(userRoutine) (GXFindPrinterProfileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFindPrinterProfileProcInfo, GetCurrentArchitecture())
- #define DisposeGXFindPrinterProfileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFindPrinterProfileUPP(thePrinter, searchData, index, returnedProfile, numProfiles, userUPP) (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppGXFindPrinterProfileProcInfo, (thePrinter), (searchData), (index), (returnedProfile), (numProfiles))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFindPrinterProfileProc(userRoutine) NewGXFindPrinterProfileUPP(userRoutine)
- #define CallGXFindPrinterProfileProc(userRoutine, thePrinter, searchData, index, returnedProfile, numProfiles) InvokeGXFindPrinterProfileUPP(thePrinter, searchData, index, returnedProfile, numProfiles, userRoutine)
- #define Send_GXFindPrinterProfile(thePrinter, searchData, index, returnedProfile, numProfiles)
- MacSendMessage(0x00000042, thePrinter, searchData, index, returnedProfile, numProfiles)
-
- #define Forward_GXFindPrinterProfile(thePrinter, searchData, index, returnedProfile, numProfiles)
- ForwardThisMessage((void *) (thePrinter), (void *) (searchData), (void *) (index), (void *) (returnedProfile), (void *) (numProfiles))
- typedef CALLBACK_API_C( OSErr , GXFindFormatProfileProcPtr )(gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles);
- typedef STACK_UPP_TYPE(GXFindFormatProfileProcPtr) GXFindFormatProfileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXFindFormatProfileUPP)
- NewGXFindFormatProfileUPP (GXFindFormatProfileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXFindFormatProfileUPP (GXFindFormatProfileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXFindFormatProfileUPP (gxFormat theFormat,
- void * searchData,
- long index,
- gxColorProfile * returnedProfile,
- long * numProfiles,
- GXFindFormatProfileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXFindFormatProfileProcInfo = 0x0000FFE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
- #define NewGXFindFormatProfileUPP(userRoutine) (GXFindFormatProfileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXFindFormatProfileProcInfo, GetCurrentArchitecture())
- #define DisposeGXFindFormatProfileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXFindFormatProfileUPP(theFormat, searchData, index, returnedProfile, numProfiles, userUPP) (OSErr)CALL_FIVE_PARAMETER_UPP((userUPP), uppGXFindFormatProfileProcInfo, (theFormat), (searchData), (index), (returnedProfile), (numProfiles))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXFindFormatProfileProc(userRoutine) NewGXFindFormatProfileUPP(userRoutine)
- #define CallGXFindFormatProfileProc(userRoutine, theFormat, searchData, index, returnedProfile, numProfiles) InvokeGXFindFormatProfileUPP(theFormat, searchData, index, returnedProfile, numProfiles, userRoutine)
- #define Send_GXFindFormatProfile(theFormat, searchData, index, returnedProfile, numProfiles)
- MacSendMessage(0x00000043, theFormat, searchData, index, returnedProfile, numProfiles)
-
- #define Forward_GXFindFormatProfile(theFormat, searchData, index, returnedProfile, numProfiles)
- ForwardThisMessage((void *) (theFormat), (void *) (searchData), (void *) (index), (void *) (returnedProfile),
- (void *) (numProfiles))
- typedef CALLBACK_API_C( OSErr , GXSetPrinterProfileProcPtr )(gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile);
- typedef STACK_UPP_TYPE(GXSetPrinterProfileProcPtr) GXSetPrinterProfileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXSetPrinterProfileUPP)
- NewGXSetPrinterProfileUPP (GXSetPrinterProfileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXSetPrinterProfileUPP (GXSetPrinterProfileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXSetPrinterProfileUPP (gxPrinter thePrinter,
- gxColorProfile oldProfile,
- gxColorProfile newProfile,
- GXSetPrinterProfileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXSetPrinterProfileProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXSetPrinterProfileUPP(userRoutine) (GXSetPrinterProfileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetPrinterProfileProcInfo, GetCurrentArchitecture())
- #define DisposeGXSetPrinterProfileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXSetPrinterProfileUPP(thePrinter, oldProfile, newProfile, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSetPrinterProfileProcInfo, (thePrinter), (oldProfile), (newProfile))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXSetPrinterProfileProc(userRoutine) NewGXSetPrinterProfileUPP(userRoutine)
- #define CallGXSetPrinterProfileProc(userRoutine, thePrinter, oldProfile, newProfile) InvokeGXSetPrinterProfileUPP(thePrinter, oldProfile, newProfile, userRoutine)
- #define Send_GXSetPrinterProfile(thePrinter, oldProfile, newProfile)
- MacSendMessage(0x00000044, thePrinter, oldProfile, newProfile)
-
- #define Forward_GXSetPrinterProfile(thePrinter, oldProfile, newProfile)
- ForwardThisMessage((void *) (thePrinter), (void *) (oldProfile), (void *) (newProfile))
- typedef CALLBACK_API_C( OSErr , GXSetFormatProfileProcPtr )(gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile);
- typedef STACK_UPP_TYPE(GXSetFormatProfileProcPtr) GXSetFormatProfileUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXSetFormatProfileUPP)
- NewGXSetFormatProfileUPP (GXSetFormatProfileProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXSetFormatProfileUPP (GXSetFormatProfileUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXSetFormatProfileUPP (gxFormat theFormat,
- gxColorProfile oldProfile,
- gxColorProfile newProfile,
- GXSetFormatProfileUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXSetFormatProfileProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXSetFormatProfileUPP(userRoutine) (GXSetFormatProfileUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetFormatProfileProcInfo, GetCurrentArchitecture())
- #define DisposeGXSetFormatProfileUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXSetFormatProfileUPP(theFormat, oldProfile, newProfile, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSetFormatProfileProcInfo, (theFormat), (oldProfile), (newProfile))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXSetFormatProfileProc(userRoutine) NewGXSetFormatProfileUPP(userRoutine)
- #define CallGXSetFormatProfileProc(userRoutine, theFormat, oldProfile, newProfile) InvokeGXSetFormatProfileUPP(theFormat, oldProfile, newProfile, userRoutine)
- #define Send_GXSetFormatProfile(theFormat, oldProfile, newProfile)
- MacSendMessage(0x00000045, theFormat, oldProfile, newProfile)
-
- #define Forward_GXSetFormatProfile(theFormat, oldProfile, newProfile)
- ForwardThisMessage((void *) (theFormat), (void *) (oldProfile), (void *) (newProfile))
- typedef CALLBACK_API_C( OSErr , GXHandleAltDestinationProcPtr )(Boolean *userCancels);
- typedef STACK_UPP_TYPE(GXHandleAltDestinationProcPtr) GXHandleAltDestinationUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXHandleAltDestinationUPP)
- NewGXHandleAltDestinationUPP (GXHandleAltDestinationProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXHandleAltDestinationUPP (GXHandleAltDestinationUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXHandleAltDestinationUPP (Boolean * userCancels,
- GXHandleAltDestinationUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXHandleAltDestinationProcInfo = 0x000000E1 }; /* 2_bytes Func(4_bytes) */
- #define NewGXHandleAltDestinationUPP(userRoutine) (GXHandleAltDestinationUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXHandleAltDestinationProcInfo, GetCurrentArchitecture())
- #define DisposeGXHandleAltDestinationUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXHandleAltDestinationUPP(userCancels, userUPP) (OSErr)CALL_ONE_PARAMETER_UPP((userUPP), uppGXHandleAltDestinationProcInfo, (userCancels))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXHandleAltDestinationProc(userRoutine) NewGXHandleAltDestinationUPP(userRoutine)
- #define CallGXHandleAltDestinationProc(userRoutine, userCancels) InvokeGXHandleAltDestinationUPP(userCancels, userRoutine)
- #define Send_GXHandleAltDestination(userCancels) MacSendMessage(0x00000046, userCancels)
- #define Forward_GXHandleAltDestination(userCancels) ForwardThisMessage((void *) (userCancels))
- typedef CALLBACK_API_C( OSErr , GXSetupPageImageDataProcPtr )(gxFormat theFormat, gxShape thePage, void *imageData);
- typedef STACK_UPP_TYPE(GXSetupPageImageDataProcPtr) GXSetupPageImageDataUPP;
- #if OPAQUE_UPP_TYPES
- #if CALL_NOT_IN_CARBON
- EXTERN_API(GXSetupPageImageDataUPP)
- NewGXSetupPageImageDataUPP (GXSetupPageImageDataProcPtr userRoutine);
- EXTERN_API(void)
- DisposeGXSetupPageImageDataUPP (GXSetupPageImageDataUPP userUPP);
- EXTERN_API(OSErr)
- InvokeGXSetupPageImageDataUPP (gxFormat theFormat,
- gxShape thePage,
- void * imageData,
- GXSetupPageImageDataUPP userUPP);
- #endif /* CALL_NOT_IN_CARBON */
- #else
- enum { uppGXSetupPageImageDataProcInfo = 0x00000FE1 }; /* 2_bytes Func(4_bytes, 4_bytes, 4_bytes) */
- #define NewGXSetupPageImageDataUPP(userRoutine) (GXSetupPageImageDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppGXSetupPageImageDataProcInfo, GetCurrentArchitecture())
- #define DisposeGXSetupPageImageDataUPP(userUPP) DisposeRoutineDescriptor(userUPP)
- #define InvokeGXSetupPageImageDataUPP(theFormat, thePage, imageData, userUPP) (OSErr)CALL_THREE_PARAMETER_UPP((userUPP), uppGXSetupPageImageDataProcInfo, (theFormat), (thePage), (imageData))
- #endif
- /* support for pre-Carbon UPP routines: NewXXXProc and CallXXXProc */
- #define NewGXSetupPageImageDataProc(userRoutine) NewGXSetupPageImageDataUPP(userRoutine)
- #define CallGXSetupPageImageDataProc(userRoutine, theFormat, thePage, imageData) InvokeGXSetupPageImageDataUPP(theFormat, thePage, imageData, userRoutine)
- #define Send_GXSetupPageImageData(theFormat, thePage, imageData)
- MacSendMessage(0x00000047, theFormat, thePage, imageData)
-
- #define Forward_GXSetupPageImageData(theFormat, thePage, imageData)
- ForwardThisMessage((void *) (theFormat), (void *) (thePage), (void *) (imageData))
- /*******************************************************************
- Start of old "GXPrintingErrors.h/a/p" interface file.
- ********************************************************************/
- enum {
- gxPrintingResultBase = -510 /*First QuickDraw GX printing error code.*/
- };
- /*RESULT CODES FOR QUICKDRAW GX PRINTING OPERATIONS*/
- enum {
- gxAioTimeout = (gxPrintingResultBase), /*-510 : Timeout condition occurred during operation*/
- gxAioBadRqstState = (gxPrintingResultBase - 1), /*-511 : Async I/O request in invalid state for operation*/
- gxAioBadConn = (gxPrintingResultBase - 2), /*-512 : Invalid Async I/O connection refnum*/
- gxAioInvalidXfer = (gxPrintingResultBase - 3), /*-513 : Read data transfer structure contained bad values*/
- gxAioNoRqstBlks = (gxPrintingResultBase - 4), /*-514 : No available request blocks to process request*/
- gxAioNoDataXfer = (gxPrintingResultBase - 5), /*-515 : Data transfer structure pointer not specified*/
- gxAioTooManyAutos = (gxPrintingResultBase - 6), /*-516 : Auto status request already active*/
- gxAioNoAutoStat = (gxPrintingResultBase - 7), /*-517 : Connection not configured for auto status*/
- gxAioBadRqstID = (gxPrintingResultBase - 8), /*-518 : Invalid I/O request identifier*/
- gxAioCantKill = (gxPrintingResultBase - 9), /*-519 : Comm. protocol doesn't support I/O term*/
- gxAioAlreadyExists = (gxPrintingResultBase - 10), /*-520 : Protocol spec. data already specified*/
- gxAioCantFind = (gxPrintingResultBase - 11), /*-521 : Protocol spec. data does not exist*/
- gxAioDeviceDisconn = (gxPrintingResultBase - 12), /*-522 : Machine disconnected from printer*/
- gxAioNotImplemented = (gxPrintingResultBase - 13), /*-523 : Function not implemented*/
- gxAioOpenPending = (gxPrintingResultBase - 14), /*-524 : Opening a connection for protocol, but another open pending*/
- gxAioNoProtocolData = (gxPrintingResultBase - 15), /*-525 : No protocol specific data specified in request*/
- gxAioRqstKilled = (gxPrintingResultBase - 16), /*-526 : I/O request was terminated*/
- gxBadBaudRate = (gxPrintingResultBase - 17), /*-527 : Invalid baud rate specified*/
- gxBadParity = (gxPrintingResultBase - 18), /*-528 : Invalid parity specified*/
- gxBadStopBits = (gxPrintingResultBase - 19), /*-529 : Invalid stop bits specified*/
- gxBadDataBits = (gxPrintingResultBase - 20), /*-530 : Invalid data bits specified*/
- gxBadPrinterName = (gxPrintingResultBase - 21), /*-531 : Bad printer name specified*/
- gxAioBadMsgType = (gxPrintingResultBase - 22), /*-532 : Bad masType field in transfer info structure*/
- gxAioCantFindDevice = (gxPrintingResultBase - 23), /*-533 : Cannot locate target device*/
- gxAioOutOfSeq = (gxPrintingResultBase - 24), /*-534 : Non-atomic SCSI requests submitted out of sequence*/
- gxPrIOAbortErr = (gxPrintingResultBase - 25), /*-535 : I/O operation aborted*/
- gxPrUserAbortErr = (gxPrintingResultBase - 26), /*-536 : User aborted*/
- gxCantAddPanelsNowErr = (gxPrintingResultBase - 27), /*-537 : Can only add panels during driver switch or dialog setup*/
- gxBadxdtlKeyErr = (gxPrintingResultBase - 28), /*-538 : Unknown key for xdtl - must be radiobutton, etc*/
- gxXdtlItemOutOfRangeErr = (gxPrintingResultBase - 29), /*-539 : Referenced item does not belong to panel*/
- gxNoActionButtonErr = (gxPrintingResultBase - 30), /*-540 : Action button is nil*/
- gxTitlesTooLongErr = (gxPrintingResultBase - 31), /*-541 : Length of buttons exceeds alert maximum width*/
- gxUnknownAlertVersionErr = (gxPrintingResultBase - 32), /*-542 : Bad version for printing alerts*/
- gxGBBufferTooSmallErr = (gxPrintingResultBase - 33), /*-543 : Buffer too small.*/
- gxInvalidPenTable = (gxPrintingResultBase - 34), /*-544 : Invalid vector driver pen table.*/
- gxIncompletePrintFileErr = (gxPrintingResultBase - 35), /*-545 : Print file was not completely spooled*/
- gxCrashedPrintFileErr = (gxPrintingResultBase - 36), /*-546 : Print file is corrupted*/
- gxInvalidPrintFileVersion = (gxPrintingResultBase - 37), /*-547 : Print file is incompatible with current QuickDraw GX version*/
- gxSegmentLoadFailedErr = (gxPrintingResultBase - 38), /*-548 : Segment loader error*/
- gxExtensionNotFoundErr = (gxPrintingResultBase - 39), /*-549 : Requested printing extension could not be found*/
- gxDriverVersionErr = (gxPrintingResultBase - 40), /*-550 : Driver too new for current version of QuickDraw GX*/
- gxImagingSystemVersionErr = (gxPrintingResultBase - 41), /*-551 : Imaging system too new for current version of QuickDraw GX*/
- gxFlattenVersionTooNew = (gxPrintingResultBase - 42), /*-552 : Flattened object format too new for current version of QDGX*/
- gxPaperTypeNotFound = (gxPrintingResultBase - 43), /*-553 : Requested papertype could not be found*/
- gxNoSuchPTGroup = (gxPrintingResultBase - 44), /*-554 : Requested papertype group could not be found*/
- gxNotEnoughPrinterMemory = (gxPrintingResultBase - 45), /*-555 : Printer does not have enough memory for fonts in document*/
- gxDuplicatePanelNameErr = (gxPrintingResultBase - 46), /*-556 : Attempt to add more than 10 panels with the same name*/
- gxExtensionVersionErr = (gxPrintingResultBase - 47) /*-557 : Extension too new for current version of QuickDraw GX*/
- };
- #if PRAGMA_STRUCT_ALIGN
- #pragma options align=reset
- #elif PRAGMA_STRUCT_PACKPUSH
- #pragma pack(pop)
- #elif PRAGMA_STRUCT_PACK
- #pragma pack()
- #endif
- #ifdef PRAGMA_IMPORT_OFF
- #pragma import off
- #elif PRAGMA_IMPORT
- #pragma import reset
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif /* __GXPRINTING__ */