Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
TSMTE Interfaces/PPCCIncludes/TSMTE.h
/* |
File: TSMTE.h |
Copyright: © 1984-1993 by Apple Computer, Inc., all rights reserved. |
WARNING |
This file was auto generated by the interfacer tool. Modifications |
must be made to the master file. |
*/ |
#ifndef __TSMTE__ |
#define __TSMTE__ |
#ifndef __TEXTEDIT__ |
#include <TextEdit.h> |
/* #include <Quickdraw.h> */ |
/* #include <Types.h> */ |
/* #include <ConditionalMacros.h> */ |
/* #include <MixedMode.h> */ |
/* #include <Traps.h> */ |
/* #include <QuickdrawText.h> */ |
/* #include <IntlResources.h> */ |
#endif |
#ifndef __DIALOGS__ |
#include <Dialogs.h> |
/* #include <Windows.h> */ |
/* #include <Events.h> */ |
/* #include <OSUtils.h> */ |
/* #include <Controls.h> */ |
/* #include <Menus.h> */ |
#endif |
#ifndef __TEXTSERVICES__ |
#include <TextServices.h> |
/* #include <AppleEvents.h> */ |
/* #include <Memory.h> */ |
/* #include <EPPC.h> */ |
/* #include <PPCToolBox.h> */ |
/* #include <AppleTalk.h> */ |
/* #include <Processes.h> */ |
/* #include <Files.h> */ |
/* #include <SegLoad.h> */ |
/* #include <Notification.h> */ |
/* #include <Errors.h> */ |
/* #include <Components.h> */ |
#endif |
enum { |
kTSMTESignature = 'tmTE', |
kTSMTEInterfaceType = kTSMTESignature, |
kTSMTEDialog = 'tmDI' |
}; |
enum { |
gestaltTSMTEAttr = kTSMTESignature, |
gestaltTSMTEPresent = 0, |
gestaltTSMTE = gestaltTSMTEPresent, |
gestaltTSMTEVersion = 'tmTV', |
gestaltTSMTE1 = 0x100 |
}; |
enum { |
kTSMTEAutoScroll = 1 |
}; |
typedef pascal void (*TSMTEPreUpdateProcPtr)(TEHandle textH, long refCon); |
enum { |
uppTSMTEPreUpdateProcInfo = kPascalStackBased |
| STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(TEHandle))) |
| STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long))) |
}; |
#if USESROUTINEDESCRIPTORS |
typedef UniversalProcPtr TSMTEPreUpdateUPP; |
#define CallTSMTEPreUpdateProc(userRoutine, textH, refCon) \ |
CallUniversalProc((UniversalProcPtr)(userRoutine), uppTSMTEPreUpdateProcInfo, (textH), (refCon)) |
#define NewTSMTEPreUpdateProc(userRoutine) \ |
(TSMTEPreUpdateUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppTSMTEPreUpdateProcInfo, GetCurrentISA()) |
#else |
typedef TSMTEPreUpdateProcPtr TSMTEPreUpdateUPP; |
#define CallTSMTEPreUpdateProc(userRoutine, textH, refCon) \ |
(*(userRoutine))((textH), (refCon)) |
#define NewTSMTEPreUpdateProc(userRoutine) \ |
(TSMTEPreUpdateUPP)(userRoutine) |
#endif |
typedef pascal void (*TSMTEPostUpdateProcPtr)(TEHandle textH, long fixLen, long inputAreaStart, long inputAreaEnd, long pinStart, long pinEnd, long refCon); |
enum { |
uppTSMTEPostUpdateProcInfo = kPascalStackBased |
| STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(TEHandle))) |
| STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long))) |
| STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))) |
| STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(long))) |
| STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(long))) |
| STACK_ROUTINE_PARAMETER(6, SIZE_CODE(sizeof(long))) |
| STACK_ROUTINE_PARAMETER(7, SIZE_CODE(sizeof(long))) |
}; |
#if USESROUTINEDESCRIPTORS |
typedef UniversalProcPtr TSMTEPostUpdateUPP; |
#define CallTSMTEPostUpdateProc(userRoutine, textH, fixLen, inputAreaStart, inputAreaEnd, pinStart, pinEnd, refCon) \ |
CallUniversalProc((UniversalProcPtr)(userRoutine), uppTSMTEPostUpdateProcInfo, (textH), (fixLen), (inputAreaStart), (inputAreaEnd), (pinStart), (pinEnd), (refCon)) |
#define NewTSMTEPostUpdateProc(userRoutine) \ |
(TSMTEPostUpdateUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppTSMTEPostUpdateProcInfo, GetCurrentISA()) |
#else |
typedef TSMTEPostUpdateProcPtr TSMTEPostUpdateUPP; |
#define CallTSMTEPostUpdateProc(userRoutine, textH, fixLen, inputAreaStart, inputAreaEnd, pinStart, pinEnd, refCon) \ |
(*(userRoutine))((textH), (fixLen), (inputAreaStart), (inputAreaEnd), (pinStart), (pinEnd), (refCon)) |
#define NewTSMTEPostUpdateProc(userRoutine) \ |
(TSMTEPostUpdateUPP)(userRoutine) |
#endif |
#if defined(powerc) || defined (__powerc) |
#pragma options align=mac68k |
#endif |
struct TSMTERec { |
TEHandle textH; |
TSMTEPreUpdateUPP preUpdateProc; |
TSMTEPostUpdateUPP postUpdateProc; |
long updateFlag; |
long refCon; |
}; |
#if defined(powerc) || defined(__powerc) |
#pragma options align=reset |
#endif |
typedef struct TSMTERec TSMTERec, *TSMTERecPtr, **TSMTERecHandle; |
#if defined(powerc) || defined (__powerc) |
#pragma options align=mac68k |
#endif |
struct TSMDialogRecord { |
DialogRecord fDialog; |
TSMDocumentID fDocID; |
TSMTERecHandle fTSMTERecH; |
long fTSMTERsvd[3]; |
}; |
#if defined(powerc) || defined(__powerc) |
#pragma options align=reset |
#endif |
typedef struct TSMDialogRecord TSMDialogRecord, *TSMDialogPeek; |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14