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

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       AERegistry.h
  3.  
  4.      Contains:   AppleEvents Registry Interface.
  5.  
  6.      Version:    Technology: Mac OS 8.5
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1993-2001 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __AEREGISTRY__
  18. #define __AEREGISTRY__
  19. #ifndef __MACTYPES__
  20. #include "MacTypes.h"
  21. #endif
  22. #ifndef __MACERRORS__
  23. #include "MacErrors.h"
  24. #endif
  25. #ifndef __APPLEEVENTS__
  26. #include "AppleEvents.h"
  27. #endif
  28. #ifndef __QUICKDRAW__
  29. #include "Quickdraw.h"
  30. #endif
  31. #if PRAGMA_ONCE
  32. #pragma once
  33. #endif
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. #if PRAGMA_IMPORT
  38. #pragma import on
  39. #endif
  40. #if PRAGMA_STRUCT_ALIGN
  41.     #pragma options align=mac68k
  42. #elif PRAGMA_STRUCT_PACKPUSH
  43.     #pragma pack(push, 2)
  44. #elif PRAGMA_STRUCT_PACK
  45.     #pragma pack(2)
  46. #endif
  47. enum {
  48.     cAEList                     = FOUR_CHAR_CODE('list'),       /*  0x6c697374  */
  49.     cApplication                = FOUR_CHAR_CODE('capp'),       /*  0x63617070  */
  50.     cArc                        = FOUR_CHAR_CODE('carc'),       /*  0x63617263  */
  51.     cBoolean                    = FOUR_CHAR_CODE('bool'),       /*  0x626f6f6c  */
  52.     cCell                       = FOUR_CHAR_CODE('ccel'),       /*  0x6363656c  */
  53.     cChar                       = FOUR_CHAR_CODE('cha '),       /*  0x63686120  */
  54.     cColorTable                 = FOUR_CHAR_CODE('clrt'),       /*  0x636c7274  */
  55.     cColumn                     = FOUR_CHAR_CODE('ccol'),       /*  0x63636f6c  */
  56.     cDocument                   = FOUR_CHAR_CODE('docu'),       /*  0x646f6375  */
  57.     cDrawingArea                = FOUR_CHAR_CODE('cdrw'),       /*  0x63647277  */
  58.     cEnumeration                = FOUR_CHAR_CODE('enum'),       /*  0x656e756d  */
  59.     cFile                       = FOUR_CHAR_CODE('file'),       /*  0x66696c65  */
  60.     cFixed                      = FOUR_CHAR_CODE('fixd'),       /*  0x66697864  */
  61.     cFixedPoint                 = FOUR_CHAR_CODE('fpnt'),       /*  0x66706e74  */
  62.     cFixedRectangle             = FOUR_CHAR_CODE('frct'),       /*  0x66726374  */
  63.     cGraphicLine                = FOUR_CHAR_CODE('glin'),       /*  0x676c696e  */
  64.     cGraphicObject              = FOUR_CHAR_CODE('cgob'),       /*  0x63676f62  */
  65.     cGraphicShape               = FOUR_CHAR_CODE('cgsh'),       /*  0x63677368  */
  66.     cGraphicText                = FOUR_CHAR_CODE('cgtx'),       /*  0x63677478  */
  67.     cGroupedGraphic             = FOUR_CHAR_CODE('cpic')        /*  0x63706963  */
  68. };
  69. enum {
  70.     cInsertionLoc               = FOUR_CHAR_CODE('insl'),       /*  0x696e736c  */
  71.     cInsertionPoint             = FOUR_CHAR_CODE('cins'),       /*  0x63696e73  */
  72.     cIntlText                   = FOUR_CHAR_CODE('itxt'),       /*  0x69747874  */
  73.     cIntlWritingCode            = FOUR_CHAR_CODE('intl'),       /*  0x696e746c  */
  74.     cItem                       = FOUR_CHAR_CODE('citm'),       /*  0x6369746d  */
  75.     cLine                       = FOUR_CHAR_CODE('clin'),       /*  0x636c696e  */
  76.     cLongDateTime               = FOUR_CHAR_CODE('ldt '),       /*  0x6c647420  */
  77.     cLongFixed                  = FOUR_CHAR_CODE('lfxd'),       /*  0x6c667864  */
  78.     cLongFixedPoint             = FOUR_CHAR_CODE('lfpt'),       /*  0x6c667074  */
  79.     cLongFixedRectangle         = FOUR_CHAR_CODE('lfrc'),       /*  0x6c667263  */
  80.     cLongInteger                = FOUR_CHAR_CODE('long'),       /*  0x6c6f6e67  */
  81.     cLongPoint                  = FOUR_CHAR_CODE('lpnt'),       /*  0x6c706e74  */
  82.     cLongRectangle              = FOUR_CHAR_CODE('lrct'),       /*  0x6c726374  */
  83.     cMachineLoc                 = FOUR_CHAR_CODE('mLoc'),       /*  0x6d4c6f63  */
  84.     cMenu                       = FOUR_CHAR_CODE('cmnu'),       /*  0x636d6e75  */
  85.     cMenuItem                   = FOUR_CHAR_CODE('cmen'),       /*  0x636d656e  */
  86.     cObject                     = FOUR_CHAR_CODE('cobj'),       /*  0x636f626a  */
  87.     cObjectSpecifier            = FOUR_CHAR_CODE('obj '),       /*  0x6f626a20  */
  88.     cOpenableObject             = FOUR_CHAR_CODE('coob'),       /*  0x636f6f62  */
  89.     cOval                       = FOUR_CHAR_CODE('covl')        /*  0x636f766c  */
  90. };
  91. enum {
  92.     cParagraph                  = FOUR_CHAR_CODE('cpar'),       /*  0x63706172  */
  93.     cPICT                       = FOUR_CHAR_CODE('PICT'),       /*  0x50494354  */
  94.     cPixel                      = FOUR_CHAR_CODE('cpxl'),       /*  0x6370786c  */
  95.     cPixelMap                   = FOUR_CHAR_CODE('cpix'),       /*  0x63706978  */
  96.     cPolygon                    = FOUR_CHAR_CODE('cpgn'),       /*  0x6370676e  */
  97.     cProperty                   = FOUR_CHAR_CODE('prop'),       /*  0x70726f70  */
  98.     cQDPoint                    = FOUR_CHAR_CODE('QDpt'),       /*  0x51447074  */
  99.     cQDRectangle                = FOUR_CHAR_CODE('qdrt'),       /*  0x71647274  */
  100.     cRectangle                  = FOUR_CHAR_CODE('crec'),       /*  0x63726563  */
  101.     cRGBColor                   = FOUR_CHAR_CODE('cRGB'),       /*  0x63524742  */
  102.     cRotation                   = FOUR_CHAR_CODE('trot'),       /*  0x74726f74  */
  103.     cRoundedRectangle           = FOUR_CHAR_CODE('crrc'),       /*  0x63727263  */
  104.     cRow                        = FOUR_CHAR_CODE('crow'),       /*  0x63726f77  */
  105.     cSelection                  = FOUR_CHAR_CODE('csel'),       /*  0x6373656c  */
  106.     cShortInteger               = FOUR_CHAR_CODE('shor'),       /*  0x73686f72  */
  107.     cTable                      = FOUR_CHAR_CODE('ctbl'),       /*  0x6374626c  */
  108.     cText                       = FOUR_CHAR_CODE('ctxt'),       /*  0x63747874  */
  109.     cTextFlow                   = FOUR_CHAR_CODE('cflo'),       /*  0x63666c6f  */
  110.     cTextStyles                 = FOUR_CHAR_CODE('tsty'),       /*  0x74737479  */
  111.     cType                       = FOUR_CHAR_CODE('type')        /*  0x74797065  */
  112. };
  113. enum {
  114.     cVersion                    = FOUR_CHAR_CODE('vers'),       /*  0x76657273  */
  115.     cWindow                     = FOUR_CHAR_CODE('cwin'),       /*  0x6377696e  */
  116.     cWord                       = FOUR_CHAR_CODE('cwor'),       /*  0x63776f72  */
  117.     enumArrows                  = FOUR_CHAR_CODE('arro'),       /*  0x6172726f  */
  118.     enumJustification           = FOUR_CHAR_CODE('just'),       /*  0x6a757374  */
  119.     enumKeyForm                 = FOUR_CHAR_CODE('kfrm'),       /*  0x6b66726d  */
  120.     enumPosition                = FOUR_CHAR_CODE('posi'),       /*  0x706f7369  */
  121.     enumProtection              = FOUR_CHAR_CODE('prtn'),       /*  0x7072746e  */
  122.     enumQuality                 = FOUR_CHAR_CODE('qual'),       /*  0x7175616c  */
  123.     enumSaveOptions             = FOUR_CHAR_CODE('savo'),       /*  0x7361766f  */
  124.     enumStyle                   = FOUR_CHAR_CODE('styl'),       /*  0x7374796c  */
  125.     enumTransferMode            = FOUR_CHAR_CODE('tran'),       /*  0x7472616e  */
  126.     formUniqueID                = FOUR_CHAR_CODE('ID  '),       /*  0x49442020  */
  127.     kAEAbout                    = FOUR_CHAR_CODE('abou'),       /*  0x61626f75  */
  128.     kAEAfter                    = FOUR_CHAR_CODE('afte'),       /*  0x61667465  */
  129.     kAEAliasSelection           = FOUR_CHAR_CODE('sali'),       /*  0x73616c69  */
  130.     kAEAllCaps                  = FOUR_CHAR_CODE('alcp'),       /*  0x616c6370  */
  131.     kAEArrowAtEnd               = FOUR_CHAR_CODE('aren'),       /*  0x6172656e  */
  132.     kAEArrowAtStart             = FOUR_CHAR_CODE('arst'),       /*  0x61727374  */
  133.     kAEArrowBothEnds            = FOUR_CHAR_CODE('arbo')        /*  0x6172626f  */
  134. };
  135. enum {
  136.     kAEAsk                      = FOUR_CHAR_CODE('ask '),       /*  0x61736b20  */
  137.     kAEBefore                   = FOUR_CHAR_CODE('befo'),       /*  0x6265666f  */
  138.     kAEBeginning                = FOUR_CHAR_CODE('bgng'),       /*  0x62676e67  */
  139.     kAEBeginsWith               = FOUR_CHAR_CODE('bgwt'),       /*  0x62677774  */
  140.     kAEBeginTransaction         = FOUR_CHAR_CODE('begi'),       /*  0x62656769  */
  141.     kAEBold                     = FOUR_CHAR_CODE('bold'),       /*  0x626f6c64  */
  142.     kAECaseSensEquals           = FOUR_CHAR_CODE('cseq'),       /*  0x63736571  */
  143.     kAECentered                 = FOUR_CHAR_CODE('cent'),       /*  0x63656e74  */
  144.     kAEChangeView               = FOUR_CHAR_CODE('view'),       /*  0x76696577  */
  145.     kAEClone                    = FOUR_CHAR_CODE('clon'),       /*  0x636c6f6e  */
  146.     kAEClose                    = FOUR_CHAR_CODE('clos'),       /*  0x636c6f73  */
  147.     kAECondensed                = FOUR_CHAR_CODE('cond'),       /*  0x636f6e64  */
  148.     kAEContains                 = FOUR_CHAR_CODE('cont'),       /*  0x636f6e74  */
  149.     kAECopy                     = FOUR_CHAR_CODE('copy'),       /*  0x636f7079  */
  150.     kAECoreSuite                = FOUR_CHAR_CODE('core'),       /*  0x636f7265  */
  151.     kAECountElements            = FOUR_CHAR_CODE('cnte'),       /*  0x636e7465  */
  152.     kAECreateElement            = FOUR_CHAR_CODE('crel'),       /*  0x6372656c  */
  153.     kAECreatePublisher          = FOUR_CHAR_CODE('cpub'),       /*  0x63707562  */
  154.     kAECut                      = FOUR_CHAR_CODE('cut '),       /*  0x63757420  */
  155.     kAEDelete                   = FOUR_CHAR_CODE('delo')        /*  0x64656c6f  */
  156. };
  157. enum {
  158.     kAEDoObjectsExist           = FOUR_CHAR_CODE('doex'),       /*  0x646f6578  */
  159.     kAEDoScript                 = FOUR_CHAR_CODE('dosc'),       /*  0x646f7363  */
  160.     kAEDrag                     = FOUR_CHAR_CODE('drag'),       /*  0x64726167  */
  161.     kAEDuplicateSelection       = FOUR_CHAR_CODE('sdup'),       /*  0x73647570  */
  162.     kAEEditGraphic              = FOUR_CHAR_CODE('edit'),       /*  0x65646974  */
  163.     kAEEmptyTrash               = FOUR_CHAR_CODE('empt'),       /*  0x656d7074  */
  164.     kAEEnd                      = FOUR_CHAR_CODE('end '),       /*  0x656e6420  */
  165.     kAEEndsWith                 = FOUR_CHAR_CODE('ends'),       /*  0x656e6473  */
  166.     kAEEndTransaction           = FOUR_CHAR_CODE('endt'),       /*  0x656e6474  */
  167.     kAEEquals                   = FOUR_CHAR_CODE('=   '),       /*  0x3d202020  */
  168.     kAEExpanded                 = FOUR_CHAR_CODE('pexp'),       /*  0x70657870  */
  169.     kAEFast                     = FOUR_CHAR_CODE('fast'),       /*  0x66617374  */
  170.     kAEFinderEvents             = FOUR_CHAR_CODE('FNDR'),       /*  0x464e4452  */
  171.     kAEFormulaProtect           = FOUR_CHAR_CODE('fpro'),       /*  0x6670726f  */
  172.     kAEFullyJustified           = FOUR_CHAR_CODE('full'),       /*  0x66756c6c  */
  173.     kAEGetClassInfo             = FOUR_CHAR_CODE('qobj'),       /*  0x716f626a  */
  174.     kAEGetData                  = FOUR_CHAR_CODE('getd'),       /*  0x67657464  */
  175.     kAEGetDataSize              = FOUR_CHAR_CODE('dsiz'),       /*  0x6473697a  */
  176.     kAEGetEventInfo             = FOUR_CHAR_CODE('gtei'),       /*  0x67746569  */
  177.     kAEGetInfoSelection         = FOUR_CHAR_CODE('sinf')        /*  0x73696e66  */
  178. };
  179. enum {
  180.     kAEGetPrivilegeSelection    = FOUR_CHAR_CODE('sprv'),       /*  0x73707276  */
  181.     kAEGetSuiteInfo             = FOUR_CHAR_CODE('gtsi'),       /*  0x67747369  */
  182.     kAEGreaterThan              = FOUR_CHAR_CODE('>   '),       /*  0x3e202020  */
  183.     kAEGreaterThanEquals        = FOUR_CHAR_CODE('>=  '),       /*  0x3e3d2020  */
  184.     kAEGrow                     = FOUR_CHAR_CODE('grow'),       /*  0x67726f77  */
  185.     kAEHidden                   = FOUR_CHAR_CODE('hidn'),       /*  0x6869646e  */
  186.     kAEHiQuality                = FOUR_CHAR_CODE('hiqu'),       /*  0x68697175  */
  187.     kAEImageGraphic             = FOUR_CHAR_CODE('imgr'),       /*  0x696d6772  */
  188.     kAEIsUniform                = FOUR_CHAR_CODE('isun'),       /*  0x6973756e  */
  189.     kAEItalic                   = FOUR_CHAR_CODE('ital'),       /*  0x6974616c  */
  190.     kAELeftJustified            = FOUR_CHAR_CODE('left'),       /*  0x6c656674  */
  191.     kAELessThan                 = FOUR_CHAR_CODE('<   '),       /*  0x3c202020  */
  192.     kAELessThanEquals           = FOUR_CHAR_CODE('<=  '),       /*  0x3c3d2020  */
  193.     kAELowercase                = FOUR_CHAR_CODE('lowc'),       /*  0x6c6f7763  */
  194.     kAEMakeObjectsVisible       = FOUR_CHAR_CODE('mvis'),       /*  0x6d766973  */
  195.     kAEMiscStandards            = FOUR_CHAR_CODE('misc'),       /*  0x6d697363  */
  196.     kAEModifiable               = FOUR_CHAR_CODE('modf'),       /*  0x6d6f6466  */
  197.     kAEMove                     = FOUR_CHAR_CODE('move'),       /*  0x6d6f7665  */
  198.     kAENo                       = FOUR_CHAR_CODE('no  '),       /*  0x6e6f2020  */
  199.     kAENoArrow                  = FOUR_CHAR_CODE('arno')        /*  0x61726e6f  */
  200. };
  201. enum {
  202.     kAENonmodifiable            = FOUR_CHAR_CODE('nmod'),       /*  0x6e6d6f64  */
  203.     kAEOpen                     = FOUR_CHAR_CODE('odoc'),       /*  0x6f646f63  */
  204.     kAEOpenSelection            = FOUR_CHAR_CODE('sope'),       /*  0x736f7065  */
  205.     kAEOutline                  = FOUR_CHAR_CODE('outl'),       /*  0x6f75746c  */
  206.     kAEPageSetup                = FOUR_CHAR_CODE('pgsu'),       /*  0x70677375  */
  207.     kAEPaste                    = FOUR_CHAR_CODE('past'),       /*  0x70617374  */
  208.     kAEPlain                    = FOUR_CHAR_CODE('plan'),       /*  0x706c616e  */
  209.     kAEPrint                    = FOUR_CHAR_CODE('pdoc'),       /*  0x70646f63  */
  210.     kAEPrintSelection           = FOUR_CHAR_CODE('spri'),       /*  0x73707269  */
  211.     kAEPrintWindow              = FOUR_CHAR_CODE('pwin'),       /*  0x7077696e  */
  212.     kAEPutAwaySelection         = FOUR_CHAR_CODE('sput'),       /*  0x73707574  */
  213.     kAEQDAddOver                = FOUR_CHAR_CODE('addo'),       /*  0x6164646f  */
  214.     kAEQDAddPin                 = FOUR_CHAR_CODE('addp'),       /*  0x61646470  */
  215.     kAEQDAdMax                  = FOUR_CHAR_CODE('admx'),       /*  0x61646d78  */
  216.     kAEQDAdMin                  = FOUR_CHAR_CODE('admn'),       /*  0x61646d6e  */
  217.     kAEQDBic                    = FOUR_CHAR_CODE('bic '),       /*  0x62696320  */
  218.     kAEQDBlend                  = FOUR_CHAR_CODE('blnd'),       /*  0x626c6e64  */
  219.     kAEQDCopy                   = FOUR_CHAR_CODE('cpy '),       /*  0x63707920  */
  220.     kAEQDNotBic                 = FOUR_CHAR_CODE('nbic'),       /*  0x6e626963  */
  221.     kAEQDNotCopy                = FOUR_CHAR_CODE('ncpy')        /*  0x6e637079  */
  222. };
  223. enum {
  224.     kAEQDNotOr                  = FOUR_CHAR_CODE('ntor'),       /*  0x6e746f72  */
  225.     kAEQDNotXor                 = FOUR_CHAR_CODE('nxor'),       /*  0x6e786f72  */
  226.     kAEQDOr                     = FOUR_CHAR_CODE('or  '),       /*  0x6f722020  */
  227.     kAEQDSubOver                = FOUR_CHAR_CODE('subo'),       /*  0x7375626f  */
  228.     kAEQDSubPin                 = FOUR_CHAR_CODE('subp'),       /*  0x73756270  */
  229.     kAEQDSupplementalSuite      = FOUR_CHAR_CODE('qdsp'),       /*  0x71647370  */
  230.     kAEQDXor                    = FOUR_CHAR_CODE('xor '),       /*  0x786f7220  */
  231.     kAEQuickdrawSuite           = FOUR_CHAR_CODE('qdrw'),       /*  0x71647277  */
  232.     kAEQuitAll                  = FOUR_CHAR_CODE('quia'),       /*  0x71756961  */
  233.     kAERedo                     = FOUR_CHAR_CODE('redo'),       /*  0x7265646f  */
  234.     kAERegular                  = FOUR_CHAR_CODE('regl'),       /*  0x7265676c  */
  235.     kAEReopenApplication        = FOUR_CHAR_CODE('rapp'),       /*  0x72617070  */
  236.     kAEReplace                  = FOUR_CHAR_CODE('rplc'),       /*  0x72706c63  */
  237.     kAERequiredSuite            = FOUR_CHAR_CODE('reqd'),       /*  0x72657164  */
  238.     kAERestart                  = FOUR_CHAR_CODE('rest'),       /*  0x72657374  */
  239.     kAERevealSelection          = FOUR_CHAR_CODE('srev'),       /*  0x73726576  */
  240.     kAERevert                   = FOUR_CHAR_CODE('rvrt'),       /*  0x72767274  */
  241.     kAERightJustified           = FOUR_CHAR_CODE('rght'),       /*  0x72676874  */
  242.     kAESave                     = FOUR_CHAR_CODE('save'),       /*  0x73617665  */
  243.     kAESelect                   = FOUR_CHAR_CODE('slct'),       /*  0x736c6374  */
  244.     kAESetData                  = FOUR_CHAR_CODE('setd')        /*  0x73657464  */
  245. };
  246. enum {
  247.     kAESetPosition              = FOUR_CHAR_CODE('posn'),       /*  0x706f736e  */
  248.     kAEShadow                   = FOUR_CHAR_CODE('shad'),       /*  0x73686164  */
  249.     kAEShowClipboard            = FOUR_CHAR_CODE('shcl'),       /*  0x7368636c  */
  250.     kAEShutDown                 = FOUR_CHAR_CODE('shut'),       /*  0x73687574  */
  251.     kAESleep                    = FOUR_CHAR_CODE('slep'),       /*  0x736c6570  */
  252.     kAESmallCaps                = FOUR_CHAR_CODE('smcp'),       /*  0x736d6370  */
  253.     kAESpecialClassProperties   = FOUR_CHAR_CODE('c@#!'),       /*  0x63402321  */
  254.     kAEStrikethrough            = FOUR_CHAR_CODE('strk'),       /*  0x7374726b  */
  255.     kAESubscript                = FOUR_CHAR_CODE('sbsc'),       /*  0x73627363  */
  256.     kAESuperscript              = FOUR_CHAR_CODE('spsc'),       /*  0x73707363  */
  257.     kAETableSuite               = FOUR_CHAR_CODE('tbls'),       /*  0x74626c73  */
  258.     kAETextSuite                = FOUR_CHAR_CODE('TEXT'),       /*  0x54455854  */
  259.     kAETransactionTerminated    = FOUR_CHAR_CODE('ttrm'),       /*  0x7474726d  */
  260.     kAEUnderline                = FOUR_CHAR_CODE('undl'),       /*  0x756e646c  */
  261.     kAEUndo                     = FOUR_CHAR_CODE('undo'),       /*  0x756e646f  */
  262.     kAEWholeWordEquals          = FOUR_CHAR_CODE('wweq'),       /*  0x77776571  */
  263.     kAEYes                      = FOUR_CHAR_CODE('yes '),       /*  0x79657320  */
  264.     kAEZoom                     = FOUR_CHAR_CODE('zoom')        /*  0x7a6f6f6d  */
  265. };
  266. /* EventRecord Classes and EventIDs */
  267. enum {
  268.     kAEMouseClass               = FOUR_CHAR_CODE('mous'),
  269.     kAEDown                     = FOUR_CHAR_CODE('down'),
  270.     kAEUp                       = FOUR_CHAR_CODE('up  '),
  271.     kAEMoved                    = FOUR_CHAR_CODE('move'),
  272.     kAEStoppedMoving            = FOUR_CHAR_CODE('stop'),
  273.     kAEWindowClass              = FOUR_CHAR_CODE('wind'),
  274.     kAEUpdate                   = FOUR_CHAR_CODE('updt'),
  275.     kAEActivate                 = FOUR_CHAR_CODE('actv'),
  276.     kAEDeactivate               = FOUR_CHAR_CODE('dact'),
  277.     kAECommandClass             = FOUR_CHAR_CODE('cmnd'),       /* Modern Command Event Class */
  278.     kAEKeyClass                 = FOUR_CHAR_CODE('keyc'),
  279.     kAERawKey                   = FOUR_CHAR_CODE('rkey'),       /* Modern Raw Key Event */
  280.     kAEVirtualKey               = FOUR_CHAR_CODE('keyc'),       /* Modern Virtual Key Event */
  281.     kAENavigationKey            = FOUR_CHAR_CODE('nave'),       /* Modern Navigation Key Event */
  282.     kAEAutoDown                 = FOUR_CHAR_CODE('auto'),
  283.     kAEApplicationClass         = FOUR_CHAR_CODE('appl'),
  284.     kAESuspend                  = FOUR_CHAR_CODE('susp'),
  285.     kAEResume                   = FOUR_CHAR_CODE('rsme'),
  286.     kAEDiskEvent                = FOUR_CHAR_CODE('disk'),
  287.     kAENullEvent                = FOUR_CHAR_CODE('null'),
  288.     kAEWakeUpEvent              = FOUR_CHAR_CODE('wake'),
  289.     kAEScrapEvent               = FOUR_CHAR_CODE('scrp'),
  290.     kAEHighLevel                = FOUR_CHAR_CODE('high')
  291. };
  292. enum {
  293.     keyAEAngle                  = FOUR_CHAR_CODE('kang'),       /*  0x6b616e67  */
  294.     keyAEArcAngle               = FOUR_CHAR_CODE('parc')        /*  0x70617263  */
  295. };
  296. enum {
  297.     keyAEBaseAddr               = FOUR_CHAR_CODE('badd'),       /*  0x62616464  */
  298.     keyAEBestType               = FOUR_CHAR_CODE('pbst'),       /*  0x70627374  */
  299.     keyAEBgndColor              = FOUR_CHAR_CODE('kbcl'),       /*  0x6b62636c  */
  300.     keyAEBgndPattern            = FOUR_CHAR_CODE('kbpt'),       /*  0x6b627074  */
  301.     keyAEBounds                 = FOUR_CHAR_CODE('pbnd'),       /*  0x70626e64  */
  302.     keyAECellList               = FOUR_CHAR_CODE('kclt'),       /*  0x6b636c74  */
  303.     keyAEClassID                = FOUR_CHAR_CODE('clID'),       /*  0x636c4944  */
  304.     keyAEColor                  = FOUR_CHAR_CODE('colr'),       /*  0x636f6c72  */
  305.     keyAEColorTable             = FOUR_CHAR_CODE('cltb'),       /*  0x636c7462  */
  306.     keyAECurveHeight            = FOUR_CHAR_CODE('kchd'),       /*  0x6b636864  */
  307.     keyAECurveWidth             = FOUR_CHAR_CODE('kcwd'),       /*  0x6b637764  */
  308.     keyAEDashStyle              = FOUR_CHAR_CODE('pdst'),       /*  0x70647374  */
  309.     keyAEData                   = FOUR_CHAR_CODE('data'),       /*  0x64617461  */
  310.     keyAEDefaultType            = FOUR_CHAR_CODE('deft'),       /*  0x64656674  */
  311.     keyAEDefinitionRect         = FOUR_CHAR_CODE('pdrt'),       /*  0x70647274  */
  312.     keyAEDescType               = FOUR_CHAR_CODE('dstp'),       /*  0x64737470  */
  313.     keyAEDestination            = FOUR_CHAR_CODE('dest'),       /*  0x64657374  */
  314.     keyAEDoAntiAlias            = FOUR_CHAR_CODE('anta'),       /*  0x616e7461  */
  315.     keyAEDoDithered             = FOUR_CHAR_CODE('gdit'),       /*  0x67646974  */
  316.     keyAEDoRotate               = FOUR_CHAR_CODE('kdrt')        /*  0x6b647274  */
  317. };
  318. enum {
  319.     keyAEDoScale                = FOUR_CHAR_CODE('ksca'),       /*  0x6b736361  */
  320.     keyAEDoTranslate            = FOUR_CHAR_CODE('ktra'),       /*  0x6b747261  */
  321.     keyAEEditionFileLoc         = FOUR_CHAR_CODE('eloc'),       /*  0x656c6f63  */
  322.     keyAEElements               = FOUR_CHAR_CODE('elms'),       /*  0x656c6d73  */
  323.     keyAEEndPoint               = FOUR_CHAR_CODE('pend'),       /*  0x70656e64  */
  324.     keyAEEventClass             = FOUR_CHAR_CODE('evcl'),       /*  0x6576636c  */
  325.     keyAEEventID                = FOUR_CHAR_CODE('evti'),       /*  0x65767469  */
  326.     keyAEFile                   = FOUR_CHAR_CODE('kfil'),       /*  0x6b66696c  */
  327.     keyAEFileType               = FOUR_CHAR_CODE('fltp'),       /*  0x666c7470  */
  328.     keyAEFillColor              = FOUR_CHAR_CODE('flcl'),       /*  0x666c636c  */
  329.     keyAEFillPattern            = FOUR_CHAR_CODE('flpt'),       /*  0x666c7074  */
  330.     keyAEFlipHorizontal         = FOUR_CHAR_CODE('kfho'),       /*  0x6b66686f  */
  331.     keyAEFlipVertical           = FOUR_CHAR_CODE('kfvt'),       /*  0x6b667674  */
  332.     keyAEFont                   = FOUR_CHAR_CODE('font'),       /*  0x666f6e74  */
  333.     keyAEFormula                = FOUR_CHAR_CODE('pfor'),       /*  0x70666f72  */
  334.     keyAEGraphicObjects         = FOUR_CHAR_CODE('gobs'),       /*  0x676f6273  */
  335.     keyAEID                     = FOUR_CHAR_CODE('ID  '),       /*  0x49442020  */
  336.     keyAEImageQuality           = FOUR_CHAR_CODE('gqua'),       /*  0x67717561  */
  337.     keyAEInsertHere             = FOUR_CHAR_CODE('insh'),       /*  0x696e7368  */
  338.     keyAEKeyForms               = FOUR_CHAR_CODE('keyf')        /*  0x6b657966  */
  339. };
  340. enum {
  341.     keyAEKeyword                = FOUR_CHAR_CODE('kywd'),       /*  0x6b797764  */
  342.     keyAELevel                  = FOUR_CHAR_CODE('levl'),       /*  0x6c65766c  */
  343.     keyAELineArrow              = FOUR_CHAR_CODE('arro'),       /*  0x6172726f  */
  344.     keyAEName                   = FOUR_CHAR_CODE('pnam'),       /*  0x706e616d  */
  345.     keyAENewElementLoc          = FOUR_CHAR_CODE('pnel'),       /*  0x706e656c  */
  346.     keyAEObject                 = FOUR_CHAR_CODE('kobj'),       /*  0x6b6f626a  */
  347.     keyAEObjectClass            = FOUR_CHAR_CODE('kocl'),       /*  0x6b6f636c  */
  348.     keyAEOffStyles              = FOUR_CHAR_CODE('ofst'),       /*  0x6f667374  */
  349.     keyAEOnStyles               = FOUR_CHAR_CODE('onst'),       /*  0x6f6e7374  */
  350.     keyAEParameters             = FOUR_CHAR_CODE('prms'),       /*  0x70726d73  */
  351.     keyAEParamFlags             = FOUR_CHAR_CODE('pmfg'),       /*  0x706d6667  */
  352.     keyAEPenColor               = FOUR_CHAR_CODE('ppcl'),       /*  0x7070636c  */
  353.     keyAEPenPattern             = FOUR_CHAR_CODE('pppa'),       /*  0x70707061  */
  354.     keyAEPenWidth               = FOUR_CHAR_CODE('ppwd'),       /*  0x70707764  */
  355.     keyAEPixelDepth             = FOUR_CHAR_CODE('pdpt'),       /*  0x70647074  */
  356.     keyAEPixMapMinus            = FOUR_CHAR_CODE('kpmm'),       /*  0x6b706d6d  */
  357.     keyAEPMTable                = FOUR_CHAR_CODE('kpmt'),       /*  0x6b706d74  */
  358.     keyAEPointList              = FOUR_CHAR_CODE('ptlt'),       /*  0x70746c74  */
  359.     keyAEPointSize              = FOUR_CHAR_CODE('ptsz'),       /*  0x7074737a  */
  360.     keyAEPosition               = FOUR_CHAR_CODE('kpos')        /*  0x6b706f73  */
  361. };
  362. enum {
  363.     keyAEPropData               = FOUR_CHAR_CODE('prdt'),       /*  0x70726474  */
  364.     keyAEProperties             = FOUR_CHAR_CODE('qpro'),       /*  0x7170726f  */
  365.     keyAEProperty               = FOUR_CHAR_CODE('kprp'),       /*  0x6b707270  */
  366.     keyAEPropFlags              = FOUR_CHAR_CODE('prfg'),       /*  0x70726667  */
  367.     keyAEPropID                 = FOUR_CHAR_CODE('prop'),       /*  0x70726f70  */
  368.     keyAEProtection             = FOUR_CHAR_CODE('ppro'),       /*  0x7070726f  */
  369.     keyAERenderAs               = FOUR_CHAR_CODE('kren'),       /*  0x6b72656e  */
  370.     keyAERequestedType          = FOUR_CHAR_CODE('rtyp'),       /*  0x72747970  */
  371.     keyAEResult                 = FOUR_CHAR_CODE('----'),       /*  0x2d2d2d2d  */
  372.     keyAEResultInfo             = FOUR_CHAR_CODE('rsin'),       /*  0x7273696e  */
  373.     keyAERotation               = FOUR_CHAR_CODE('prot'),       /*  0x70726f74  */
  374.     keyAERotPoint               = FOUR_CHAR_CODE('krtp'),       /*  0x6b727470  */
  375.     keyAERowList                = FOUR_CHAR_CODE('krls'),       /*  0x6b726c73  */
  376.     keyAESaveOptions            = FOUR_CHAR_CODE('savo'),       /*  0x7361766f  */
  377.     keyAEScale                  = FOUR_CHAR_CODE('pscl'),       /*  0x7073636c  */
  378.     keyAEScriptTag              = FOUR_CHAR_CODE('psct'),       /*  0x70736374  */
  379.     keyAEShowWhere              = FOUR_CHAR_CODE('show'),       /*  0x73686f77  */
  380.     keyAEStartAngle             = FOUR_CHAR_CODE('pang'),       /*  0x70616e67  */
  381.     keyAEStartPoint             = FOUR_CHAR_CODE('pstp'),       /*  0x70737470  */
  382.     keyAEStyles                 = FOUR_CHAR_CODE('ksty')        /*  0x6b737479  */
  383. };
  384. enum {
  385.     keyAESuiteID                = FOUR_CHAR_CODE('suit'),       /*  0x73756974  */
  386.     keyAEText                   = FOUR_CHAR_CODE('ktxt'),       /*  0x6b747874  */
  387.     keyAETextColor              = FOUR_CHAR_CODE('ptxc'),       /*  0x70747863  */
  388.     keyAETextFont               = FOUR_CHAR_CODE('ptxf'),       /*  0x70747866  */
  389.     keyAETextPointSize          = FOUR_CHAR_CODE('ptps'),       /*  0x70747073  */
  390.     keyAETextStyles             = FOUR_CHAR_CODE('txst'),       /*  0x74787374  */
  391.     keyAETextLineHeight         = FOUR_CHAR_CODE('ktlh'),       /* type ShortInteger */
  392.     keyAETextLineAscent         = FOUR_CHAR_CODE('ktas'),       /* type ShortInteger */
  393.     keyAETheText                = FOUR_CHAR_CODE('thtx'),       /*  0x74687478  */
  394.     keyAETransferMode           = FOUR_CHAR_CODE('pptm'),       /*  0x7070746d  */
  395.     keyAETranslation            = FOUR_CHAR_CODE('ptrs'),       /*  0x70747273  */
  396.     keyAETryAsStructGraf        = FOUR_CHAR_CODE('toog'),       /*  0x746f6f67  */
  397.     keyAEUniformStyles          = FOUR_CHAR_CODE('ustl'),       /*  0x7573746c  */
  398.     keyAEUpdateOn               = FOUR_CHAR_CODE('pupd'),       /*  0x70757064  */
  399.     keyAEUserTerm               = FOUR_CHAR_CODE('utrm'),       /*  0x7574726d  */
  400.     keyAEWindow                 = FOUR_CHAR_CODE('wndw'),       /*  0x776e6477  */
  401.     keyAEWritingCode            = FOUR_CHAR_CODE('wrcd')        /*  0x77726364  */
  402. };
  403. enum {
  404.     keyMiscellaneous            = FOUR_CHAR_CODE('fmsc'),       /*  0x666d7363  */
  405.     keySelection                = FOUR_CHAR_CODE('fsel'),       /*  0x6673656c  */
  406.     keyWindow                   = FOUR_CHAR_CODE('kwnd'),       /*  0x6b776e64  */
  407.                                                                 /* EventRecord keys */
  408.     keyWhen                     = FOUR_CHAR_CODE('when'),
  409.     keyWhere                    = FOUR_CHAR_CODE('wher'),
  410.     keyModifiers                = FOUR_CHAR_CODE('mods'),
  411.     keyKey                      = FOUR_CHAR_CODE('key '),
  412.     keyKeyCode                  = FOUR_CHAR_CODE('code'),
  413.     keyKeyboard                 = FOUR_CHAR_CODE('keyb'),
  414.     keyDriveNumber              = FOUR_CHAR_CODE('drv#'),
  415.     keyErrorCode                = FOUR_CHAR_CODE('err#'),
  416.     keyHighLevelClass           = FOUR_CHAR_CODE('hcls'),
  417.     keyHighLevelID              = FOUR_CHAR_CODE('hid ')
  418. };
  419. enum {
  420.     pArcAngle                   = FOUR_CHAR_CODE('parc'),       /*  0x70617263  */
  421.     pBackgroundColor            = FOUR_CHAR_CODE('pbcl'),       /*  0x7062636c  */
  422.     pBackgroundPattern          = FOUR_CHAR_CODE('pbpt'),       /*  0x70627074  */
  423.     pBestType                   = FOUR_CHAR_CODE('pbst'),       /*  0x70627374  */
  424.     pBounds                     = FOUR_CHAR_CODE('pbnd'),       /*  0x70626e64  */
  425.     pClass                      = FOUR_CHAR_CODE('pcls'),       /*  0x70636c73  */
  426.     pClipboard                  = FOUR_CHAR_CODE('pcli'),       /*  0x70636c69  */
  427.     pColor                      = FOUR_CHAR_CODE('colr'),       /*  0x636f6c72  */
  428.     pColorTable                 = FOUR_CHAR_CODE('cltb'),       /*  0x636c7462  */
  429.     pContents                   = FOUR_CHAR_CODE('pcnt'),       /*  0x70636e74  */
  430.     pCornerCurveHeight          = FOUR_CHAR_CODE('pchd'),       /*  0x70636864  */
  431.     pCornerCurveWidth           = FOUR_CHAR_CODE('pcwd'),       /*  0x70637764  */
  432.     pDashStyle                  = FOUR_CHAR_CODE('pdst'),       /*  0x70647374  */
  433.     pDefaultType                = FOUR_CHAR_CODE('deft'),       /*  0x64656674  */
  434.     pDefinitionRect             = FOUR_CHAR_CODE('pdrt'),       /*  0x70647274  */
  435.     pEnabled                    = FOUR_CHAR_CODE('enbl'),       /*  0x656e626c  */
  436.     pEndPoint                   = FOUR_CHAR_CODE('pend'),       /*  0x70656e64  */
  437.     pFillColor                  = FOUR_CHAR_CODE('flcl'),       /*  0x666c636c  */
  438.     pFillPattern                = FOUR_CHAR_CODE('flpt'),       /*  0x666c7074  */
  439.     pFont                       = FOUR_CHAR_CODE('font')        /*  0x666f6e74  */
  440. };
  441. enum {
  442.     pFormula                    = FOUR_CHAR_CODE('pfor'),       /*  0x70666f72  */
  443.     pGraphicObjects             = FOUR_CHAR_CODE('gobs'),       /*  0x676f6273  */
  444.     pHasCloseBox                = FOUR_CHAR_CODE('hclb'),       /*  0x68636c62  */
  445.     pHasTitleBar                = FOUR_CHAR_CODE('ptit'),       /*  0x70746974  */
  446.     pID                         = FOUR_CHAR_CODE('ID  '),       /*  0x49442020  */
  447.     pIndex                      = FOUR_CHAR_CODE('pidx'),       /*  0x70696478  */
  448.     pInsertionLoc               = FOUR_CHAR_CODE('pins'),       /*  0x70696e73  */
  449.     pIsFloating                 = FOUR_CHAR_CODE('isfl'),       /*  0x6973666c  */
  450.     pIsFrontProcess             = FOUR_CHAR_CODE('pisf'),       /*  0x70697366  */
  451.     pIsModal                    = FOUR_CHAR_CODE('pmod'),       /*  0x706d6f64  */
  452.     pIsModified                 = FOUR_CHAR_CODE('imod'),       /*  0x696d6f64  */
  453.     pIsResizable                = FOUR_CHAR_CODE('prsz'),       /*  0x7072737a  */
  454.     pIsStationeryPad            = FOUR_CHAR_CODE('pspd'),       /*  0x70737064  */
  455.     pIsZoomable                 = FOUR_CHAR_CODE('iszm'),       /*  0x69737a6d  */
  456.     pIsZoomed                   = FOUR_CHAR_CODE('pzum'),       /*  0x707a756d  */
  457.     pItemNumber                 = FOUR_CHAR_CODE('itmn'),       /*  0x69746d6e  */
  458.     pJustification              = FOUR_CHAR_CODE('pjst'),       /*  0x706a7374  */
  459.     pLineArrow                  = FOUR_CHAR_CODE('arro'),       /*  0x6172726f  */
  460.     pMenuID                     = FOUR_CHAR_CODE('mnid'),       /*  0x6d6e6964  */
  461.     pName                       = FOUR_CHAR_CODE('pnam')        /*  0x706e616d  */
  462. };
  463. enum {
  464.     pNewElementLoc              = FOUR_CHAR_CODE('pnel'),       /*  0x706e656c  */
  465.     pPenColor                   = FOUR_CHAR_CODE('ppcl'),       /*  0x7070636c  */
  466.     pPenPattern                 = FOUR_CHAR_CODE('pppa'),       /*  0x70707061  */
  467.     pPenWidth                   = FOUR_CHAR_CODE('ppwd'),       /*  0x70707764  */
  468.     pPixelDepth                 = FOUR_CHAR_CODE('pdpt'),       /*  0x70647074  */
  469.     pPointList                  = FOUR_CHAR_CODE('ptlt'),       /*  0x70746c74  */
  470.     pPointSize                  = FOUR_CHAR_CODE('ptsz'),       /*  0x7074737a  */
  471.     pProtection                 = FOUR_CHAR_CODE('ppro'),       /*  0x7070726f  */
  472.     pRotation                   = FOUR_CHAR_CODE('prot'),       /*  0x70726f74  */
  473.     pScale                      = FOUR_CHAR_CODE('pscl'),       /*  0x7073636c  */
  474.     pScript                     = FOUR_CHAR_CODE('scpt'),       /*  0x73637074  */
  475.     pScriptTag                  = FOUR_CHAR_CODE('psct'),       /*  0x70736374  */
  476.     pSelected                   = FOUR_CHAR_CODE('selc'),       /*  0x73656c63  */
  477.     pSelection                  = FOUR_CHAR_CODE('sele'),       /*  0x73656c65  */
  478.     pStartAngle                 = FOUR_CHAR_CODE('pang'),       /*  0x70616e67  */
  479.     pStartPoint                 = FOUR_CHAR_CODE('pstp'),       /*  0x70737470  */
  480.     pTextColor                  = FOUR_CHAR_CODE('ptxc'),       /*  0x70747863  */
  481.     pTextFont                   = FOUR_CHAR_CODE('ptxf'),       /*  0x70747866  */
  482.     pTextItemDelimiters         = FOUR_CHAR_CODE('txdl'),       /*  0x7478646c  */
  483.     pTextPointSize              = FOUR_CHAR_CODE('ptps')        /*  0x70747073  */
  484. };
  485. enum {
  486.     pTextStyles                 = FOUR_CHAR_CODE('txst'),       /*  0x74787374  */
  487.     pTransferMode               = FOUR_CHAR_CODE('pptm'),       /*  0x7070746d  */
  488.     pTranslation                = FOUR_CHAR_CODE('ptrs'),       /*  0x70747273  */
  489.     pUniformStyles              = FOUR_CHAR_CODE('ustl'),       /*  0x7573746c  */
  490.     pUpdateOn                   = FOUR_CHAR_CODE('pupd'),       /*  0x70757064  */
  491.     pUserSelection              = FOUR_CHAR_CODE('pusl'),       /*  0x7075736c  */
  492.     pVersion                    = FOUR_CHAR_CODE('vers'),       /*  0x76657273  */
  493.     pVisible                    = FOUR_CHAR_CODE('pvis')        /*  0x70766973  */
  494. };
  495. enum {
  496.     typeAEText                  = FOUR_CHAR_CODE('tTXT'),       /*  0x74545854  */
  497.     typeArc                     = FOUR_CHAR_CODE('carc'),       /*  0x63617263  */
  498.     typeBest                    = FOUR_CHAR_CODE('best'),       /*  0x62657374  */
  499.     typeCell                    = FOUR_CHAR_CODE('ccel'),       /*  0x6363656c  */
  500.     typeClassInfo               = FOUR_CHAR_CODE('gcli'),       /*  0x67636c69  */
  501.     typeColorTable              = FOUR_CHAR_CODE('clrt'),       /*  0x636c7274  */
  502.     typeColumn                  = FOUR_CHAR_CODE('ccol'),       /*  0x63636f6c  */
  503.     typeDashStyle               = FOUR_CHAR_CODE('tdas'),       /*  0x74646173  */
  504.     typeData                    = FOUR_CHAR_CODE('tdta'),       /*  0x74647461  */
  505.     typeDrawingArea             = FOUR_CHAR_CODE('cdrw'),       /*  0x63647277  */
  506.     typeElemInfo                = FOUR_CHAR_CODE('elin'),       /*  0x656c696e  */
  507.     typeEnumeration             = FOUR_CHAR_CODE('enum'),       /*  0x656e756d  */
  508.     typeEPS                     = FOUR_CHAR_CODE('EPS '),       /*  0x45505320  */
  509.     typeEventInfo               = FOUR_CHAR_CODE('evin')        /*  0x6576696e  */
  510. };
  511. enum {
  512.     typeFinderWindow            = FOUR_CHAR_CODE('fwin'),       /*  0x6677696e  */
  513.     typeFixedPoint              = FOUR_CHAR_CODE('fpnt'),       /*  0x66706e74  */
  514.     typeFixedRectangle          = FOUR_CHAR_CODE('frct'),       /*  0x66726374  */
  515.     typeGraphicLine             = FOUR_CHAR_CODE('glin'),       /*  0x676c696e  */
  516.     typeGraphicText             = FOUR_CHAR_CODE('cgtx'),       /*  0x63677478  */
  517.     typeGroupedGraphic          = FOUR_CHAR_CODE('cpic'),       /*  0x63706963  */
  518.     typeInsertionLoc            = FOUR_CHAR_CODE('insl'),       /*  0x696e736c  */
  519.     typeIntlText                = FOUR_CHAR_CODE('itxt'),       /*  0x69747874  */
  520.     typeIntlWritingCode         = FOUR_CHAR_CODE('intl'),       /*  0x696e746c  */
  521.     typeLongDateTime            = FOUR_CHAR_CODE('ldt '),       /*  0x6c647420  */
  522.     typeLongFixed               = FOUR_CHAR_CODE('lfxd'),       /*  0x6c667864  */
  523.     typeLongFixedPoint          = FOUR_CHAR_CODE('lfpt'),       /*  0x6c667074  */
  524.     typeLongFixedRectangle      = FOUR_CHAR_CODE('lfrc'),       /*  0x6c667263  */
  525.     typeLongPoint               = FOUR_CHAR_CODE('lpnt'),       /*  0x6c706e74  */
  526.     typeLongRectangle           = FOUR_CHAR_CODE('lrct'),       /*  0x6c726374  */
  527.     typeMachineLoc              = FOUR_CHAR_CODE('mLoc'),       /*  0x6d4c6f63  */
  528.     typeOval                    = FOUR_CHAR_CODE('covl'),       /*  0x636f766c  */
  529.     typeParamInfo               = FOUR_CHAR_CODE('pmin'),       /*  0x706d696e  */
  530.     typePict                    = FOUR_CHAR_CODE('PICT')        /*  0x50494354  */
  531. };
  532. enum {
  533.     typePixelMap                = FOUR_CHAR_CODE('cpix'),       /*  0x63706978  */
  534.     typePixMapMinus             = FOUR_CHAR_CODE('tpmm'),       /*  0x74706d6d  */
  535.     typePolygon                 = FOUR_CHAR_CODE('cpgn'),       /*  0x6370676e  */
  536.     typePropInfo                = FOUR_CHAR_CODE('pinf'),       /*  0x70696e66  */
  537.     typeQDPoint                 = FOUR_CHAR_CODE('QDpt'),       /*  0x51447074  */
  538.     typeQDRegion                = FOUR_CHAR_CODE('Qrgn'),       /*  0x51447074  (data is actual region data, including rectangle and size, _not_ region handle or ptr)*/
  539.     typeRectangle               = FOUR_CHAR_CODE('crec'),       /*  0x63726563  */
  540.     typeRGB16                   = FOUR_CHAR_CODE('tr16'),       /*  0x74723136  */
  541.     typeRGB96                   = FOUR_CHAR_CODE('tr96'),       /*  0x74723936  */
  542.     typeRGBColor                = FOUR_CHAR_CODE('cRGB'),       /*  0x63524742  */
  543.     typeRotation                = FOUR_CHAR_CODE('trot'),       /*  0x74726f74  */
  544.     typeRoundedRectangle        = FOUR_CHAR_CODE('crrc'),       /*  0x63727263  */
  545.     typeRow                     = FOUR_CHAR_CODE('crow'),       /*  0x63726f77  */
  546.     typeScrapStyles             = FOUR_CHAR_CODE('styl'),       /*  0x7374796c  */
  547.     typeScript                  = FOUR_CHAR_CODE('scpt'),       /*  0x73637074  */
  548.     typeStyledText              = FOUR_CHAR_CODE('STXT'),       /*  0x53545854  */
  549.     typeSuiteInfo               = FOUR_CHAR_CODE('suin'),       /*  0x7375696e  */
  550.     typeTable                   = FOUR_CHAR_CODE('ctbl'),       /*  0x6374626c  */
  551.     typeTextStyles              = FOUR_CHAR_CODE('tsty')        /*  0x74737479  */
  552. };
  553. enum {
  554.     typeTIFF                    = FOUR_CHAR_CODE('TIFF'),       /*  0x54494646  */
  555.     typeVersion                 = FOUR_CHAR_CODE('vers')        /*  0x76657273  */
  556. };
  557. enum {
  558.     kAEMenuClass                = FOUR_CHAR_CODE('menu'),
  559.     kAEMenuSelect               = FOUR_CHAR_CODE('mhit'),
  560.     kAEMouseDown                = FOUR_CHAR_CODE('mdwn'),
  561.     kAEMouseDownInBack          = FOUR_CHAR_CODE('mdbk'),
  562.     kAEKeyDown                  = FOUR_CHAR_CODE('kdwn'),
  563.     kAEResized                  = FOUR_CHAR_CODE('rsiz'),
  564.     kAEPromise                  = FOUR_CHAR_CODE('prom')
  565. };
  566. enum {
  567.     keyMenuID                   = FOUR_CHAR_CODE('mid '),
  568.     keyMenuItem                 = FOUR_CHAR_CODE('mitm'),
  569.     keyCloseAllWindows          = FOUR_CHAR_CODE('caw '),
  570.     keyOriginalBounds           = FOUR_CHAR_CODE('obnd'),
  571.     keyNewBounds                = FOUR_CHAR_CODE('nbnd'),
  572.     keyLocalWhere               = FOUR_CHAR_CODE('lwhr')
  573. };
  574. enum {
  575.     typeHIMenu                  = FOUR_CHAR_CODE('mobj'),
  576.     typeHIWindow                = FOUR_CHAR_CODE('wobj')
  577. };
  578. enum {
  579.     kBySmallIcon                = 0,
  580.     kByIconView                 = 1,
  581.     kByNameView                 = 2,
  582.     kByDateView                 = 3,
  583.     kBySizeView                 = 4,
  584.     kByKindView                 = 5,
  585.     kByCommentView              = 6,
  586.     kByLabelView                = 7,
  587.     kByVersionView              = 8
  588. };
  589. enum {
  590.     kAEInfo                     = 11,
  591.     kAEMain                     = 0,
  592.     kAESharing                  = 13
  593. };
  594. enum {
  595.     kAEZoomIn                   = 7,
  596.     kAEZoomOut                  = 8
  597. };
  598. enum {
  599.     kTextServiceClass           = FOUR_CHAR_CODE('tsvc'),
  600.     kUpdateActiveInputArea      = FOUR_CHAR_CODE('updt'),       /* update the active input area */
  601.     kShowHideInputWindow        = FOUR_CHAR_CODE('shiw'),       /* show or hide the input window */
  602.     kPos2Offset                 = FOUR_CHAR_CODE('p2st'),       /* converting global coordinates to char position */
  603.     kOffset2Pos                 = FOUR_CHAR_CODE('st2p'),       /* converting char position to global coordinates */
  604.     kUnicodeNotFromInputMethod  = FOUR_CHAR_CODE('unim'),       /* Unicode text when event not handled by Input Method or no Input Method */
  605.     kGetSelectedText            = FOUR_CHAR_CODE('gtxt'),       /* Get text for current selection */
  606.     keyAETSMDocumentRefcon      = FOUR_CHAR_CODE('refc'),       /* TSM document refcon, typeLongInteger */
  607.     keyAEServerInstance         = FOUR_CHAR_CODE('srvi'),       /* component instance */
  608.     keyAETheData                = FOUR_CHAR_CODE('kdat'),       /* typeText */
  609.     keyAEFixLength              = FOUR_CHAR_CODE('fixl'),       /* fix len ?? */
  610.     keyAEUpdateRange            = FOUR_CHAR_CODE('udng'),       /* typeTextRangeArray */
  611.     keyAECurrentPoint           = FOUR_CHAR_CODE('cpos'),       /* current point */
  612.     keyAEBufferSize             = FOUR_CHAR_CODE('buff'),       /* buffer size to get the text */
  613.     keyAEMoveView               = FOUR_CHAR_CODE('mvvw'),       /* move view flag */
  614.     keyAENextBody               = FOUR_CHAR_CODE('nxbd'),       /* next or previous body */
  615.     keyAETSMScriptTag           = FOUR_CHAR_CODE('sclg'),
  616.     keyAETSMTextFont            = FOUR_CHAR_CODE('ktxf'),
  617.     keyAETSMTextPointSize       = FOUR_CHAR_CODE('ktps'),
  618.     keyAETSMEventRecord         = FOUR_CHAR_CODE('tevt'),       /* Low level Event Record, typeLowLevelEventRecord */
  619.     keyAETextServiceEncoding    = FOUR_CHAR_CODE('tsen'),       /* Text Service encoding, mac or Unicode in UpdateActiveInputArea or GetSelectedText events. */
  620.     keyAETextServiceMacEncoding = FOUR_CHAR_CODE('tmen'),       /* Target mac encoding for TSM conversion of text from Unicode text service. */
  621.     typeTextRange               = FOUR_CHAR_CODE('txrn'),       /* TextRange */
  622.     typeComponentInstance       = FOUR_CHAR_CODE('cmpi'),       /* server instance */
  623.     typeOffsetArray             = FOUR_CHAR_CODE('ofay'),       /* offset array */
  624.     typeTextRangeArray          = FOUR_CHAR_CODE('tray'),
  625.     typeLowLevelEventRecord     = FOUR_CHAR_CODE('evtr'),       /* Low Level Event Record */
  626.     typeText                    = typeChar                      /* Plain text */
  627. };
  628. /* Desc type constants */
  629. enum {
  630.     kTSMOutsideOfBody           = 1,
  631.     kTSMInsideOfBody            = 2,
  632.     kTSMInsideOfActiveInputArea = 3
  633. };
  634. enum {
  635.     kNextBody                   = 1,
  636.     kPreviousBody               = 2
  637. };
  638. struct TextRange {
  639.     long                            fStart;
  640.     long                            fEnd;
  641.     short                           fHiliteStyle;
  642. };
  643. typedef struct TextRange                TextRange;
  644. typedef TextRange *                     TextRangePtr;
  645. typedef TextRangePtr *                  TextRangeHandle;
  646. struct TextRangeArray {
  647.     short                           fNumOfRanges;               /* specify the size of the fRange array */
  648.     TextRange                       fRange[1];                  /* when fNumOfRanges > 1, the size of this array has to be calculated */
  649. };
  650. typedef struct TextRangeArray           TextRangeArray;
  651. typedef TextRangeArray *                TextRangeArrayPtr;
  652. typedef TextRangeArrayPtr *             TextRangeArrayHandle;
  653. struct OffsetArray {
  654.     short                           fNumOfOffsets;              /* specify the size of the fOffset array */
  655.     long                            fOffset[1];                 /* when fNumOfOffsets > 1, the size of this array has to be calculated */
  656. };
  657. typedef struct OffsetArray              OffsetArray;
  658. typedef OffsetArray *                   OffsetArrayPtr;
  659. typedef OffsetArrayPtr *                OffsetArrayHandle;
  660. struct WritingCode {
  661.     ScriptCode                      theScriptCode;
  662.     LangCode                        theLangCode;
  663. };
  664. typedef struct WritingCode              WritingCode;
  665. struct IntlText {
  666.     ScriptCode                      theScriptCode;
  667.     LangCode                        theLangCode;
  668.     char                            theText[1];                 /* variable length data */
  669. };
  670. typedef struct IntlText                 IntlText;
  671. /* Hilite styles */
  672. enum {
  673.     kCaretPosition              = 1,                            /* specify caret position */
  674.     kRawText                    = 2,                            /* specify range of raw text */
  675.     kSelectedRawText            = 3,                            /* specify range of selected raw text */
  676.     kConvertedText              = 4,                            /* specify range of converted text */
  677.     kSelectedConvertedText      = 5,                            /* specify range of selected converted text */
  678.     kBlockFillText              = 6,                            /* Block Fill hilite style */
  679.     kOutlineText                = 7,                            /* Outline hilite style */
  680.     kSelectedText               = 8                             /* Selected hilite style */
  681. };
  682. enum {
  683.     keyAEHiliteRange            = FOUR_CHAR_CODE('hrng'),       /* typeTextRangeArray for System 7, typeHiliteRangeArray for System 8 */
  684.     keyAEPinRange               = FOUR_CHAR_CODE('pnrg'),       /* typeTextRange for System 7, typeTextRegionRange for System 8   */
  685.     keyAEClauseOffsets          = FOUR_CHAR_CODE('clau'),       /* typeOffsetArray for System 7, typeClauseOffsetArray for System 8 */
  686.     keyAEOffset                 = FOUR_CHAR_CODE('ofst'),       /* typeLongInteger for System 7, typeByteOffset for System 8  */
  687.     keyAEPoint                  = FOUR_CHAR_CODE('gpos'),       /* typePoint for System 7, typeQDPoint for System 8 */
  688.     keyAELeftSide               = FOUR_CHAR_CODE('klef'),       /* typeBoolean */
  689.     keyAERegionClass            = FOUR_CHAR_CODE('rgnc'),       /* typeShortInteger for System 7, typeRegionClass for System 8 */
  690.     keyAEDragging               = FOUR_CHAR_CODE('bool')        /* typeBoolean */
  691. };
  692. #if OLDROUTINENAMES
  693. enum {
  694.     keyAELeadingEdge            = keyAELeftSide
  695. };
  696. #endif  /* OLDROUTINENAMES */
  697. enum {
  698.                                                                 /* AppleScript 1.3: New Text types */
  699.     typeUnicodeText             = FOUR_CHAR_CODE('utxt'),
  700.     typeStyledUnicodeText       = FOUR_CHAR_CODE('sutx'),
  701.     typeEncodedString           = FOUR_CHAR_CODE('encs'),
  702.     typeCString                 = FOUR_CHAR_CODE('cstr'),
  703.     typePString                 = FOUR_CHAR_CODE('pstr')
  704. };
  705. enum {
  706.                                                                 /* AppleScript 1.3: Unit types */
  707.     typeMeters                  = FOUR_CHAR_CODE('metr'),       /* Base Unit */
  708.     typeInches                  = FOUR_CHAR_CODE('inch'),
  709.     typeFeet                    = FOUR_CHAR_CODE('feet'),
  710.     typeYards                   = FOUR_CHAR_CODE('yard'),
  711.     typeMiles                   = FOUR_CHAR_CODE('mile'),
  712.     typeKilometers              = FOUR_CHAR_CODE('kmtr'),
  713.     typeCentimeters             = FOUR_CHAR_CODE('cmtr'),
  714.     typeSquareMeters            = FOUR_CHAR_CODE('sqrm'),       /* Base Unit */
  715.     typeSquareFeet              = FOUR_CHAR_CODE('sqft'),
  716.     typeSquareYards             = FOUR_CHAR_CODE('sqyd'),
  717.     typeSquareMiles             = FOUR_CHAR_CODE('sqmi'),
  718.     typeSquareKilometers        = FOUR_CHAR_CODE('sqkm'),
  719.     typeLiters                  = FOUR_CHAR_CODE('litr'),       /* Base Unit */
  720.     typeQuarts                  = FOUR_CHAR_CODE('qrts'),
  721.     typeGallons                 = FOUR_CHAR_CODE('galn'),
  722.     typeCubicMeters             = FOUR_CHAR_CODE('cmet'),       /* Base Unit */
  723.     typeCubicFeet               = FOUR_CHAR_CODE('cfet'),
  724.     typeCubicInches             = FOUR_CHAR_CODE('cuin'),
  725.     typeCubicCentimeter         = FOUR_CHAR_CODE('ccmt'),
  726.     typeCubicYards              = FOUR_CHAR_CODE('cyrd'),
  727.     typeKilograms               = FOUR_CHAR_CODE('kgrm'),       /* Base Unit */
  728.     typeGrams                   = FOUR_CHAR_CODE('gram'),
  729.     typeOunces                  = FOUR_CHAR_CODE('ozs '),
  730.     typePounds                  = FOUR_CHAR_CODE('lbs '),
  731.     typeDegreesC                = FOUR_CHAR_CODE('degc'),       /* Base Unit */
  732.     typeDegreesF                = FOUR_CHAR_CODE('degf'),
  733.     typeDegreesK                = FOUR_CHAR_CODE('degk')
  734. };
  735. enum {
  736.                                                                 /* AppleScript 1.3: Folder Actions */
  737.     kFAServerApp                = FOUR_CHAR_CODE('ssrv'),       /* Creator code for Folder Actions Server*/
  738.     kDoFolderActionEvent        = FOUR_CHAR_CODE('fola'),       /* Event the Finder sends to the Folder Actions FBA*/
  739.     kFolderActionCode           = FOUR_CHAR_CODE('actn'),       /* Parameter that contains the Folder Action*/
  740.     kFolderOpenedEvent          = FOUR_CHAR_CODE('fopn'),       /* Value of kFolderActionCode parameter; sent to script as event*/
  741.     kFolderClosedEvent          = FOUR_CHAR_CODE('fclo'),
  742.     kFolderWindowMovedEvent     = FOUR_CHAR_CODE('fsiz'),
  743.     kFolderItemsAddedEvent      = FOUR_CHAR_CODE('fget'),
  744.     kFolderItemsRemovedEvent    = FOUR_CHAR_CODE('flos'),
  745.     kItemList                   = FOUR_CHAR_CODE('flst'),       /* List parameter for added and removed items*/
  746.     kNewSizeParameter           = FOUR_CHAR_CODE('fnsz'),       /* Parameter for moved window*/
  747.     kFASuiteCode                = FOUR_CHAR_CODE('faco'),       /* Suite code for the following events*/
  748.     kFAAttachCommand            = FOUR_CHAR_CODE('atfa'),       /* Attach event id*/
  749.     kFARemoveCommand            = FOUR_CHAR_CODE('rmfa'),       /* Remove event id*/
  750.     kFAEditCommand              = FOUR_CHAR_CODE('edfa'),       /* Edit event id*/
  751.     kFAFileParam                = FOUR_CHAR_CODE('faal'),       /* Key for file parameter for Attach*/
  752.     kFAIndexParam               = FOUR_CHAR_CODE('indx')        /* Key for index (0-based) parameter for Remove and Edit*/
  753. };
  754. /* AppleScript 1.3 Internet Suite */
  755. enum {
  756.                                                                 /* Suite code */
  757.     kAEInternetSuite            = FOUR_CHAR_CODE('gurl'),
  758.     kAEISWebStarSuite           = FOUR_CHAR_CODE('WWW