home *** CD-ROM | disk | FTP | other *** search
Oberon Document | 1994-06-07 | 5.5 KB | 116 lines | [oODC/obnF] |
- Documents.StdDocumentDesc
- Documents.DocumentDesc
- Containers.ViewDesc
- Views.ViewDesc
- Stores.StoreDesc
- Documents.ModelDesc
- Containers.ModelDesc
- Models.ModelDesc
- Stores.ElemDesc
- TextViews.StdViewDesc
- TextViews.ViewDesc
- TextModels.StdModelDesc
- TextModels.ModelDesc
- TextModels.AttributesDesc
- Geneva
- Geneva
- StdStamps.StdViewDesc
- Geneva
- Geneva
- MODULE MacAEventMgr;
- (* cp
- IMPORT SYSTEM, MacTypes, MacEventMgr;
- CONST
- typeAEList* = 6C697374H; (** "list" **)
- typeFSS* = 66737320H; (** "fss " **)
- keyDirectObject* = 2D2D2D2DH; (** "----" **)
- kCoreEventClass* = 61657674H; (** "aevt" **)
- kAEOpenApplication* = 6F617070H; (** "oapp" **)
- kAEOpenDocuments* = 6F646F63H; (** "odoc" **)
- kAEPrintDocuments* = 70646F63H; (** "pdoc" **)
- kAEQuitApplication* = 71756974H; (** "quit" **)
- kAEAnswer* = 616E7372H; (** "ansr" **)
- kAEApplicationDied* = 6F626974H; (** "obit" **)
- UNTAGGED = 1;
- CODE = 1; NOSTKCHK = 4;
- TYPE
- DescType* = LONGINT;
- AEEventClass* = LONGINT;
- AEEventID* = LONGINT;
- AEKeyword* = LONGINT;
- AEDesc* = RECORD (MacTypes.Data)
- descKey*: AEKeyword;
- dataHandle*: MacTypes.Handle
- END;
- AEDescList* = AEDesc;
- AERecord* = AEDescList;
- AppleEvent* = AERecord;
- EventHandler* = PROCEDURE (aevt, reply: AppleEvent; refcon: LONGINT): INTEGER;
- PROCEDURE [CODE] aeInstallEventHandler (theAEEventClass: AEEventClass;
- theAEEventID: AEEventID; handler: EventHandler;
- handlerRefcon: LONGINT; isSysHandler: INTEGER): INTEGER 0A8H, 016H;
- PROCEDURE [CODE] aeProcessAppleEvent (theEventRecord: MacEventMgr.EventRecord): INTEGER 0A8H, 016H;
- PROCEDURE [CODE] aeGetParamDesc (theAppleEvent: AppleEvent; theAEKeyword: AEKeyword;
- desiredType: DescType; VAR result: AEDesc): INTEGER 0A8H, 016H;
- PROCEDURE [CODE] aeCountItems (theAEDescList: AEDescList; VAR theCount: LONGINT): INTEGER 0A8H, 016H;
- PROCEDURE [CODE] aeGetNthPtr (theAEDescList: AEDescList; index: LONGINT;
- desiredType: DescType; VAR theAEKeyword: AEKeyword;
- VAR typeCode: DescType; dataPtr: MacTypes.Ptr; maximumSize: LONGINT;
- VAR actualSize: LONGINT): INTEGER 0A8H, 016H;
- PROCEDURE [CODE] aeDisposeDesc (VAR theAEDesc: AEDesc): INTEGER 0A8H, 016H;
- (** Creating and Managing the Apple Event Dispatch Tables **)
- PROCEDURE [NOSTKCHK] AEInstallEventHandler* (theAEEventClass: AEEventClass;
- theAEEventID: AEEventID; handler: EventHandler;
- handlerRefcon: LONGINT; isSysHandler: BOOLEAN): INTEGER;
- BEGIN
- SYSTEM.PUTREG(0, LONG(091FH));
- RETURN aeInstallEventHandler(theAEEventClass, theAEEventID, handler, handlerRefcon, 0)
- END AEInstallEventHandler;
- (** Dispatching Apple Events **)
- PROCEDURE [NOSTKCHK] AEProcessAppleEvent* (theEventRecord: MacEventMgr.EventRecord): INTEGER;
- BEGIN
- SYSTEM.PUTREG(0, LONG(021BH));
- RETURN aeProcessAppleEvent(theEventRecord)
- END AEProcessAppleEvent;
- (** Getting Parameters and Attributes From Apple Events **)
- PROCEDURE [NOSTKCHK] AEGetParamDesc* (theAppleEvent: AppleEvent; theAEKeyword: AEKeyword;
- desiredType: DescType; VAR result: AEDesc): INTEGER;
- BEGIN
- SYSTEM.PUTREG(0, LONG(0812H));
- RETURN aeGetParamDesc(theAppleEvent, theAEKeyword, desiredType, result)
- END AEGetParamDesc;
- (** Counting the Items in Descriptor Lists **)
- PROCEDURE [NOSTKCHK] AECountItems* (theAEDescList: AEDescList; VAR theCount: LONGINT): INTEGER;
- BEGIN
- SYSTEM.PUTREG(0, LONG(0407H));
- RETURN aeCountItems(theAEDescList, theCount)
- END AECountItems;
- (** Getting Items From Descriptor Lists **)
- PROCEDURE [NOSTKCHK] AEGetNthPtr* (theAEDescList: AEDescList; index: LONGINT;
- desiredType: DescType; VAR theAEKeyword: AEKeyword;
- VAR typeCode: DescType; dataPtr: MacTypes.Ptr; maximumSize: LONGINT;
- VAR actualSize: LONGINT): INTEGER;
- BEGIN
- SYSTEM.PUTREG(0, LONG(100AH));
- RETURN aeGetNthPtr(theAEDescList, index, desiredType, theAEKeyword, typeCode,
- dataPtr, maximumSize, actualSize)
- END AEGetNthPtr;
- (** Deallocating Memory for Descriptor Records **)
- PROCEDURE [NOSTKCHK] AEDisposeDesc* (VAR theAEDesc: AEDesc): INTEGER;
- BEGIN
- SYSTEM.PUTREG(0, LONG(0204H));
- RETURN aeDisposeDesc(theAEDesc)
- END AEDisposeDesc;
- END MacAEventMgr.
- TextControllers.StdCtrlDesc
- TextControllers.ControllerDesc
- Containers.ControllerDesc
- Controllers.ControllerDesc
- TextRulers.StdRulerDesc
- TextRulers.RulerDesc
- TextRulers.StdStyleDesc
- TextRulers.StyleDesc
- TextRulers.AttributesDesc
- Geneva
- Documents.ControllerDesc
-