AERegistry.pas 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161
  1. {
  2. File: AE/AERegistry.h
  3. Contains: AppleEvents Registry Interface.
  4. Copyright: © 1993-2008 by Apple Computer, Inc., all rights reserved
  5. Bugs?: For bug reports, consult the following page on
  6. the World Wide Web:
  7. http://www.freepascal.org/bugs.html
  8. }
  9. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2009 }
  10. { Pascal Translation Updated: Jonas Maebe, <[email protected]>, October 2012 }
  11. {
  12. Modified for use with Free Pascal
  13. Version 308
  14. Please report any bugs to <[email protected]>
  15. }
  16. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  17. {$mode macpas}
  18. {$packenum 1}
  19. {$macro on}
  20. {$inline on}
  21. {$calling mwpascal}
  22. unit AERegistry;
  23. interface
  24. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  25. {$setc GAP_INTERFACES_VERSION := $0308}
  26. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  27. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  28. {$endc}
  29. {$ifc defined CPUPOWERPC and defined CPUI386}
  30. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  31. {$endc}
  32. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  33. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  34. {$endc}
  35. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  36. {$setc __ppc__ := 1}
  37. {$elsec}
  38. {$setc __ppc__ := 0}
  39. {$endc}
  40. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  41. {$setc __ppc64__ := 1}
  42. {$elsec}
  43. {$setc __ppc64__ := 0}
  44. {$endc}
  45. {$ifc not defined __i386__ and defined CPUI386}
  46. {$setc __i386__ := 1}
  47. {$elsec}
  48. {$setc __i386__ := 0}
  49. {$endc}
  50. {$ifc not defined __x86_64__ and defined CPUX86_64}
  51. {$setc __x86_64__ := 1}
  52. {$elsec}
  53. {$setc __x86_64__ := 0}
  54. {$endc}
  55. {$ifc not defined __arm__ and defined CPUARM}
  56. {$setc __arm__ := 1}
  57. {$elsec}
  58. {$setc __arm__ := 0}
  59. {$endc}
  60. {$ifc defined cpu64}
  61. {$setc __LP64__ := 1}
  62. {$elsec}
  63. {$setc __LP64__ := 0}
  64. {$endc}
  65. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  66. {$error Conflicting definitions for __ppc__ and __i386__}
  67. {$endc}
  68. {$ifc defined __ppc__ and __ppc__}
  69. {$setc TARGET_CPU_PPC := TRUE}
  70. {$setc TARGET_CPU_PPC64 := FALSE}
  71. {$setc TARGET_CPU_X86 := FALSE}
  72. {$setc TARGET_CPU_X86_64 := FALSE}
  73. {$setc TARGET_CPU_ARM := FALSE}
  74. {$setc TARGET_OS_MAC := TRUE}
  75. {$setc TARGET_OS_IPHONE := FALSE}
  76. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  77. {$setc TARGET_OS_EMBEDDED := FALSE}
  78. {$elifc defined __ppc64__ and __ppc64__}
  79. {$setc TARGET_CPU_PPC := FALSE}
  80. {$setc TARGET_CPU_PPC64 := TRUE}
  81. {$setc TARGET_CPU_X86 := FALSE}
  82. {$setc TARGET_CPU_X86_64 := FALSE}
  83. {$setc TARGET_CPU_ARM := FALSE}
  84. {$setc TARGET_OS_MAC := TRUE}
  85. {$setc TARGET_OS_IPHONE := FALSE}
  86. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  87. {$setc TARGET_OS_EMBEDDED := FALSE}
  88. {$elifc defined __i386__ and __i386__}
  89. {$setc TARGET_CPU_PPC := FALSE}
  90. {$setc TARGET_CPU_PPC64 := FALSE}
  91. {$setc TARGET_CPU_X86 := TRUE}
  92. {$setc TARGET_CPU_X86_64 := FALSE}
  93. {$setc TARGET_CPU_ARM := FALSE}
  94. {$ifc defined(iphonesim)}
  95. {$setc TARGET_OS_MAC := FALSE}
  96. {$setc TARGET_OS_IPHONE := TRUE}
  97. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  98. {$elsec}
  99. {$setc TARGET_OS_MAC := TRUE}
  100. {$setc TARGET_OS_IPHONE := FALSE}
  101. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  102. {$endc}
  103. {$setc TARGET_OS_EMBEDDED := FALSE}
  104. {$elifc defined __x86_64__ and __x86_64__}
  105. {$setc TARGET_CPU_PPC := FALSE}
  106. {$setc TARGET_CPU_PPC64 := FALSE}
  107. {$setc TARGET_CPU_X86 := FALSE}
  108. {$setc TARGET_CPU_X86_64 := TRUE}
  109. {$setc TARGET_CPU_ARM := FALSE}
  110. {$setc TARGET_OS_MAC := TRUE}
  111. {$setc TARGET_OS_IPHONE := FALSE}
  112. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  113. {$setc TARGET_OS_EMBEDDED := FALSE}
  114. {$elifc defined __arm__ and __arm__}
  115. {$setc TARGET_CPU_PPC := FALSE}
  116. {$setc TARGET_CPU_PPC64 := FALSE}
  117. {$setc TARGET_CPU_X86 := FALSE}
  118. {$setc TARGET_CPU_X86_64 := FALSE}
  119. {$setc TARGET_CPU_ARM := TRUE}
  120. { will require compiler define when/if other Apple devices with ARM cpus ship }
  121. {$setc TARGET_OS_MAC := FALSE}
  122. {$setc TARGET_OS_IPHONE := TRUE}
  123. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  124. {$setc TARGET_OS_EMBEDDED := TRUE}
  125. {$elsec}
  126. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  127. {$endc}
  128. {$ifc defined __LP64__ and __LP64__ }
  129. {$setc TARGET_CPU_64 := TRUE}
  130. {$elsec}
  131. {$setc TARGET_CPU_64 := FALSE}
  132. {$endc}
  133. {$ifc defined FPC_BIG_ENDIAN}
  134. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  135. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  136. {$elifc defined FPC_LITTLE_ENDIAN}
  137. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  138. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  139. {$elsec}
  140. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  141. {$endc}
  142. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  143. {$setc CALL_NOT_IN_CARBON := FALSE}
  144. {$setc OLDROUTINENAMES := FALSE}
  145. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  146. {$setc OPAQUE_UPP_TYPES := TRUE}
  147. {$setc OTCARBONAPPLICATION := TRUE}
  148. {$setc OTKERNEL := FALSE}
  149. {$setc PM_USE_SESSION_APIS := TRUE}
  150. {$setc TARGET_API_MAC_CARBON := TRUE}
  151. {$setc TARGET_API_MAC_OS8 := FALSE}
  152. {$setc TARGET_API_MAC_OSX := TRUE}
  153. {$setc TARGET_CARBON := TRUE}
  154. {$setc TARGET_CPU_68K := FALSE}
  155. {$setc TARGET_CPU_MIPS := FALSE}
  156. {$setc TARGET_CPU_SPARC := FALSE}
  157. {$setc TARGET_OS_UNIX := FALSE}
  158. {$setc TARGET_OS_WIN32 := FALSE}
  159. {$setc TARGET_RT_MAC_68881 := FALSE}
  160. {$setc TARGET_RT_MAC_CFM := FALSE}
  161. {$setc TARGET_RT_MAC_MACHO := TRUE}
  162. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  163. {$setc TYPE_BOOL := FALSE}
  164. {$setc TYPE_EXTENDED := FALSE}
  165. {$setc TYPE_LONGLONG := TRUE}
  166. uses MacTypes,ATSTypes,MacErrors,AppleEvents,AEDataModel;
  167. {$endc} {not MACOSALLINCLUDE}
  168. {$ifc TARGET_OS_MAC}
  169. {$ALIGN MAC68K}
  170. const
  171. cAEList = FourCharCode('list'); { 0x6c697374 }
  172. cApplication = FourCharCode('capp'); { 0x63617070 }
  173. cArc = FourCharCode('carc'); { 0x63617263 }
  174. cBoolean = FourCharCode('bool'); { 0x626f6f6c }
  175. cCell = FourCharCode('ccel'); { 0x6363656c }
  176. cChar = FourCharCode('cha '); { 0x63686120 }
  177. cColorTable = FourCharCode('clrt'); { 0x636c7274 }
  178. cColumn = FourCharCode('ccol'); { 0x63636f6c }
  179. cDocument = FourCharCode('docu'); { 0x646f6375 }
  180. cDrawingArea = FourCharCode('cdrw'); { 0x63647277 }
  181. cEnumeration = FourCharCode('enum'); { 0x656e756d }
  182. cFile = FourCharCode('file'); { 0x66696c65 }
  183. cFixed = FourCharCode('fixd'); { 0x66697864 }
  184. cFixedPoint = FourCharCode('fpnt'); { 0x66706e74 }
  185. cFixedRectangle = FourCharCode('frct'); { 0x66726374 }
  186. cGraphicLine = FourCharCode('glin'); { 0x676c696e }
  187. cGraphicObject = FourCharCode('cgob'); { 0x63676f62 }
  188. cGraphicShape = FourCharCode('cgsh'); { 0x63677368 }
  189. cGraphicText = FourCharCode('cgtx'); { 0x63677478 }
  190. cGroupedGraphic = FourCharCode('cpic'); { 0x63706963 }
  191. const
  192. cInsertionLoc = FourCharCode('insl'); { 0x696e736c }
  193. cInsertionPoint = FourCharCode('cins'); { 0x63696e73 }
  194. cIntlText = FourCharCode('itxt'); { 0x69747874 }
  195. cIntlWritingCode = FourCharCode('intl'); { 0x696e746c }
  196. cItem = FourCharCode('citm'); { 0x6369746d }
  197. cLine = FourCharCode('clin'); { 0x636c696e }
  198. cLongDateTime = FourCharCode('ldt '); { 0x6c647420 }
  199. cLongFixed = FourCharCode('lfxd'); { 0x6c667864 }
  200. cLongFixedPoint = FourCharCode('lfpt'); { 0x6c667074 }
  201. cLongFixedRectangle = FourCharCode('lfrc'); { 0x6c667263 }
  202. cLongInteger = FourCharCode('long'); { 0x6c6f6e67 }
  203. cLongPoint = FourCharCode('lpnt'); { 0x6c706e74 }
  204. cLongRectangle = FourCharCode('lrct'); { 0x6c726374 }
  205. cMachineLoc = FourCharCode('mLoc'); { 0x6d4c6f63 }
  206. cMenu = FourCharCode('cmnu'); { 0x636d6e75 }
  207. cMenuItem = FourCharCode('cmen'); { 0x636d656e }
  208. cObject = FourCharCode('cobj'); { 0x636f626a }
  209. cObjectSpecifier = FourCharCode('obj '); { 0x6f626a20 }
  210. cOpenableObject = FourCharCode('coob'); { 0x636f6f62 }
  211. cOval = FourCharCode('covl'); { 0x636f766c }
  212. const
  213. cParagraph = FourCharCode('cpar'); { 0x63706172 }
  214. cPICT = FourCharCode('PICT'); { 0x50494354 }
  215. cPixel = FourCharCode('cpxl'); { 0x6370786c }
  216. cPixelMap = FourCharCode('cpix'); { 0x63706978 }
  217. cPolygon = FourCharCode('cpgn'); { 0x6370676e }
  218. cProperty = FourCharCode('prop'); { 0x70726f70 }
  219. cQDPoint = FourCharCode('QDpt'); { 0x51447074 }
  220. cQDRectangle = FourCharCode('qdrt'); { 0x71647274 }
  221. cRectangle = FourCharCode('crec'); { 0x63726563 }
  222. cRGBColor = FourCharCode('cRGB'); { 0x63524742 }
  223. cRotation = FourCharCode('trot'); { 0x74726f74 }
  224. cRoundedRectangle = FourCharCode('crrc'); { 0x63727263 }
  225. cRow = FourCharCode('crow'); { 0x63726f77 }
  226. cSelection = FourCharCode('csel'); { 0x6373656c }
  227. cShortInteger = FourCharCode('shor'); { 0x73686f72 }
  228. cTable = FourCharCode('ctbl'); { 0x6374626c }
  229. cText = FourCharCode('ctxt'); { 0x63747874 }
  230. cTextFlow = FourCharCode('cflo'); { 0x63666c6f }
  231. cTextStyles = FourCharCode('tsty'); { 0x74737479 }
  232. cType = FourCharCode('type'); { 0x74797065 }
  233. const
  234. cVersion = FourCharCode('vers'); { 0x76657273 }
  235. cWindow = FourCharCode('cwin'); { 0x6377696e }
  236. cWord = FourCharCode('cwor'); { 0x63776f72 }
  237. enumArrows = FourCharCode('arro'); { 0x6172726f }
  238. enumJustification = FourCharCode('just'); { 0x6a757374 }
  239. enumKeyForm = FourCharCode('kfrm'); { 0x6b66726d }
  240. enumPosition = FourCharCode('posi'); { 0x706f7369 }
  241. enumProtection = FourCharCode('prtn'); { 0x7072746e }
  242. enumQuality = FourCharCode('qual'); { 0x7175616c }
  243. enumSaveOptions = FourCharCode('savo'); { 0x7361766f }
  244. enumStyle = FourCharCode('styl'); { 0x7374796c }
  245. enumTransferMode = FourCharCode('tran'); { 0x7472616e }
  246. kAEAbout = FourCharCode('abou'); { 0x61626f75 }
  247. kAEAfter = FourCharCode('afte'); { 0x61667465 }
  248. kAEAliasSelection = FourCharCode('sali'); { 0x73616c69 }
  249. kAEAllCaps = FourCharCode('alcp'); { 0x616c6370 }
  250. kAEArrowAtEnd = FourCharCode('aren'); { 0x6172656e }
  251. kAEArrowAtStart = FourCharCode('arst'); { 0x61727374 }
  252. kAEArrowBothEnds = FourCharCode('arbo'); { 0x6172626f }
  253. const
  254. kAEAsk = FourCharCode('ask '); { 0x61736b20 }
  255. kAEBefore = FourCharCode('befo'); { 0x6265666f }
  256. kAEBeginning = FourCharCode('bgng'); { 0x62676e67 }
  257. kAEBeginsWith = FourCharCode('bgwt'); { 0x62677774 }
  258. kAEBeginTransaction = FourCharCode('begi'); { 0x62656769 }
  259. kAEBold = FourCharCode('bold'); { 0x626f6c64 }
  260. kAECaseSensEquals = FourCharCode('cseq'); { 0x63736571 }
  261. kAECentered = FourCharCode('cent'); { 0x63656e74 }
  262. kAEChangeView = FourCharCode('view'); { 0x76696577 }
  263. kAEClone = FourCharCode('clon'); { 0x636c6f6e }
  264. kAEClose = FourCharCode('clos'); { 0x636c6f73 }
  265. kAECondensed = FourCharCode('cond'); { 0x636f6e64 }
  266. kAEContains = FourCharCode('cont'); { 0x636f6e74 }
  267. kAECopy = FourCharCode('copy'); { 0x636f7079 }
  268. kAECoreSuite = FourCharCode('core'); { 0x636f7265 }
  269. kAECountElements = FourCharCode('cnte'); { 0x636e7465 }
  270. kAECreateElement = FourCharCode('crel'); { 0x6372656c }
  271. kAECreatePublisher = FourCharCode('cpub'); { 0x63707562 }
  272. kAECut = FourCharCode('cut '); { 0x63757420 }
  273. kAEDelete = FourCharCode('delo'); { 0x64656c6f }
  274. const
  275. kAEDoObjectsExist = FourCharCode('doex'); { 0x646f6578 }
  276. kAEDoScript = FourCharCode('dosc'); { 0x646f7363 }
  277. kAEDrag = FourCharCode('drag'); { 0x64726167 }
  278. kAEDuplicateSelection = FourCharCode('sdup'); { 0x73647570 }
  279. kAEEditGraphic = FourCharCode('edit'); { 0x65646974 }
  280. kAEEmptyTrash = FourCharCode('empt'); { 0x656d7074 }
  281. kAEEnd = FourCharCode('end '); { 0x656e6420 }
  282. kAEEndsWith = FourCharCode('ends'); { 0x656e6473 }
  283. kAEEndTransaction = FourCharCode('endt'); { 0x656e6474 }
  284. kAEEquals = FourCharCode('= '); { 0x3d202020 }
  285. kAEExpanded = FourCharCode('pexp'); { 0x70657870 }
  286. kAEFast = FourCharCode('fast'); { 0x66617374 }
  287. kAEFinderEvents = FourCharCode('FNDR'); { 0x464e4452 }
  288. kAEFormulaProtect = FourCharCode('fpro'); { 0x6670726f }
  289. kAEFullyJustified = FourCharCode('full'); { 0x66756c6c }
  290. kAEGetClassInfo = FourCharCode('qobj'); { 0x716f626a }
  291. kAEGetData = FourCharCode('getd'); { 0x67657464 }
  292. kAEGetDataSize = FourCharCode('dsiz'); { 0x6473697a }
  293. kAEGetEventInfo = FourCharCode('gtei'); { 0x67746569 }
  294. kAEGetInfoSelection = FourCharCode('sinf'); { 0x73696e66 }
  295. const
  296. kAEGetPrivilegeSelection = FourCharCode('sprv'); { 0x73707276 }
  297. kAEGetSuiteInfo = FourCharCode('gtsi'); { 0x67747369 }
  298. kAEGreaterThan = FourCharCode('> '); { 0x3e202020 }
  299. kAEGreaterThanEquals = FourCharCode('>= '); { 0x3e3d2020 }
  300. kAEGrow = FourCharCode('grow'); { 0x67726f77 }
  301. kAEHidden = FourCharCode('hidn'); { 0x6869646e }
  302. kAEHiQuality = FourCharCode('hiqu'); { 0x68697175 }
  303. kAEImageGraphic = FourCharCode('imgr'); { 0x696d6772 }
  304. kAEIsUniform = FourCharCode('isun'); { 0x6973756e }
  305. kAEItalic = FourCharCode('ital'); { 0x6974616c }
  306. kAELeftJustified = FourCharCode('left'); { 0x6c656674 }
  307. kAELessThan = FourCharCode('< '); { 0x3c202020 }
  308. kAELessThanEquals = FourCharCode('<= '); { 0x3c3d2020 }
  309. kAELowercase = FourCharCode('lowc'); { 0x6c6f7763 }
  310. kAEMakeObjectsVisible = FourCharCode('mvis'); { 0x6d766973 }
  311. kAEMiscStandards = FourCharCode('misc'); { 0x6d697363 }
  312. kAEModifiable = FourCharCode('modf'); { 0x6d6f6466 }
  313. kAEMove = FourCharCode('move'); { 0x6d6f7665 }
  314. kAENo = FourCharCode('no '); { 0x6e6f2020 }
  315. kAENoArrow = FourCharCode('arno'); { 0x61726e6f }
  316. const
  317. kAENonmodifiable = FourCharCode('nmod'); { 0x6e6d6f64 }
  318. kAEOpen = FourCharCode('odoc'); { 0x6f646f63 }
  319. kAEOpenSelection = FourCharCode('sope'); { 0x736f7065 }
  320. kAEOutline = FourCharCode('outl'); { 0x6f75746c }
  321. kAEPageSetup = FourCharCode('pgsu'); { 0x70677375 }
  322. kAEPaste = FourCharCode('past'); { 0x70617374 }
  323. kAEPlain = FourCharCode('plan'); { 0x706c616e }
  324. kAEPrint = FourCharCode('pdoc'); { 0x70646f63 }
  325. kAEPrintSelection = FourCharCode('spri'); { 0x73707269 }
  326. kAEPrintWindow = FourCharCode('pwin'); { 0x7077696e }
  327. kAEPutAwaySelection = FourCharCode('sput'); { 0x73707574 }
  328. kAEQDAddOver = FourCharCode('addo'); { 0x6164646f }
  329. kAEQDAddPin = FourCharCode('addp'); { 0x61646470 }
  330. kAEQDAdMax = FourCharCode('admx'); { 0x61646d78 }
  331. kAEQDAdMin = FourCharCode('admn'); { 0x61646d6e }
  332. kAEQDBic = FourCharCode('bic '); { 0x62696320 }
  333. kAEQDBlend = FourCharCode('blnd'); { 0x626c6e64 }
  334. kAEQDCopy = FourCharCode('cpy '); { 0x63707920 }
  335. kAEQDNotBic = FourCharCode('nbic'); { 0x6e626963 }
  336. kAEQDNotCopy = FourCharCode('ncpy'); { 0x6e637079 }
  337. const
  338. kAEQDNotOr = FourCharCode('ntor'); { 0x6e746f72 }
  339. kAEQDNotXor = FourCharCode('nxor'); { 0x6e786f72 }
  340. kAEQDOr = FourCharCode('or '); { 0x6f722020 }
  341. kAEQDSubOver = FourCharCode('subo'); { 0x7375626f }
  342. kAEQDSubPin = FourCharCode('subp'); { 0x73756270 }
  343. kAEQDSupplementalSuite = FourCharCode('qdsp'); { 0x71647370 }
  344. kAEQDXor = FourCharCode('xor '); { 0x786f7220 }
  345. kAEQuickdrawSuite = FourCharCode('qdrw'); { 0x71647277 }
  346. kAEQuitAll = FourCharCode('quia'); { 0x71756961 }
  347. kAERedo = FourCharCode('redo'); { 0x7265646f }
  348. kAERegular = FourCharCode('regl'); { 0x7265676c }
  349. kAEReopenApplication = FourCharCode('rapp'); { 0x72617070 }
  350. kAEReplace = FourCharCode('rplc'); { 0x72706c63 }
  351. kAERequiredSuite = FourCharCode('reqd'); { 0x72657164 }
  352. kAERestart = FourCharCode('rest'); { 0x72657374 }
  353. kAERevealSelection = FourCharCode('srev'); { 0x73726576 }
  354. kAERevert = FourCharCode('rvrt'); { 0x72767274 }
  355. kAERightJustified = FourCharCode('rght'); { 0x72676874 }
  356. kAESave = FourCharCode('save'); { 0x73617665 }
  357. kAESelect = FourCharCode('slct'); { 0x736c6374 }
  358. kAESetData = FourCharCode('setd'); { 0x73657464 }
  359. const
  360. kAESetPosition = FourCharCode('posn'); { 0x706f736e }
  361. kAEShadow = FourCharCode('shad'); { 0x73686164 }
  362. kAEShowClipboard = FourCharCode('shcl'); { 0x7368636c }
  363. kAEShutDown = FourCharCode('shut'); { 0x73687574 }
  364. kAESleep = FourCharCode('slep'); { 0x736c6570 }
  365. kAESmallCaps = FourCharCode('smcp'); { 0x736d6370 }
  366. kAESpecialClassProperties = FourCharCode('c@#!'); { 0x63402321 }
  367. kAEStrikethrough = FourCharCode('strk'); { 0x7374726b }
  368. kAESubscript = FourCharCode('sbsc'); { 0x73627363 }
  369. kAESuperscript = FourCharCode('spsc'); { 0x73707363 }
  370. kAETableSuite = FourCharCode('tbls'); { 0x74626c73 }
  371. kAETextSuite = FourCharCode('TEXT'); { 0x54455854 }
  372. kAETransactionTerminated = FourCharCode('ttrm'); { 0x7474726d }
  373. kAEUnderline = FourCharCode('undl'); { 0x756e646c }
  374. kAEUndo = FourCharCode('undo'); { 0x756e646f }
  375. kAEWholeWordEquals = FourCharCode('wweq'); { 0x77776571 }
  376. kAEYes = FourCharCode('yes '); { 0x79657320 }
  377. kAEZoom = FourCharCode('zoom'); { 0x7a6f6f6d }
  378. { events that can be sent to the "system" process (eg, loginwindow) on OS X 10.2 or later }
  379. const
  380. kAELogOut = FourCharCode('logo');
  381. kAEReallyLogOut = FourCharCode('rlgo');
  382. kAEShowRestartDialog = FourCharCode('rrst');
  383. kAEShowShutdownDialog = FourCharCode('rsdn');
  384. { EventRecord Classes and EventIDs }
  385. const
  386. kAEMouseClass = FourCharCode('mous');
  387. kAEDown = FourCharCode('down');
  388. kAEUp = FourCharCode('up ');
  389. kAEMoved = FourCharCode('move');
  390. kAEStoppedMoving = FourCharCode('stop');
  391. kAEWindowClass = FourCharCode('wind');
  392. kAEUpdate = FourCharCode('updt');
  393. kAEActivate = FourCharCode('actv');
  394. kAEDeactivate = FourCharCode('dact');
  395. kAECommandClass = FourCharCode('cmnd'); { Modern Command Event Class }
  396. kAEKeyClass = FourCharCode('keyc');
  397. kAERawKey = FourCharCode('rkey'); { Modern Raw Key Event }
  398. kAEVirtualKey = FourCharCode('keyc'); { Modern Virtual Key Event }
  399. kAENavigationKey = FourCharCode('nave'); { Modern Navigation Key Event }
  400. kAEAutoDown = FourCharCode('auto');
  401. kAEApplicationClass = FourCharCode('appl');
  402. kAESuspend = FourCharCode('susp');
  403. kAEResume = FourCharCode('rsme');
  404. kAEDiskEvent = FourCharCode('disk');
  405. kAENullEvent = FourCharCode('null');
  406. kAEWakeUpEvent = FourCharCode('wake');
  407. kAEScrapEvent = FourCharCode('scrp');
  408. kAEHighLevel = FourCharCode('high');
  409. const
  410. keyAEAngle = FourCharCode('kang'); { 0x6b616e67 }
  411. keyAEArcAngle = FourCharCode('parc'); { 0x70617263 }
  412. const
  413. keyAEBaseAddr = FourCharCode('badd'); { 0x62616464 }
  414. keyAEBestType = FourCharCode('pbst'); { 0x70627374 }
  415. keyAEBgndColor = FourCharCode('kbcl'); { 0x6b62636c }
  416. keyAEBgndPattern = FourCharCode('kbpt'); { 0x6b627074 }
  417. keyAEBounds = FourCharCode('pbnd'); { 0x70626e64 }
  418. keyAECellList = FourCharCode('kclt'); { 0x6b636c74 }
  419. keyAEClassID = FourCharCode('clID'); { 0x636c4944 }
  420. keyAEColor = FourCharCode('colr'); { 0x636f6c72 }
  421. keyAEColorTable = FourCharCode('cltb'); { 0x636c7462 }
  422. keyAECurveHeight = FourCharCode('kchd'); { 0x6b636864 }
  423. keyAECurveWidth = FourCharCode('kcwd'); { 0x6b637764 }
  424. keyAEDashStyle = FourCharCode('pdst'); { 0x70647374 }
  425. keyAEData = FourCharCode('data'); { 0x64617461 }
  426. keyAEDefaultType = FourCharCode('deft'); { 0x64656674 }
  427. keyAEDefinitionRect = FourCharCode('pdrt'); { 0x70647274 }
  428. keyAEDescType = FourCharCode('dstp'); { 0x64737470 }
  429. keyAEDestination = FourCharCode('dest'); { 0x64657374 }
  430. keyAEDoAntiAlias = FourCharCode('anta'); { 0x616e7461 }
  431. keyAEDoDithered = FourCharCode('gdit'); { 0x67646974 }
  432. keyAEDoRotate = FourCharCode('kdrt'); { 0x6b647274 }
  433. const
  434. keyAEDoScale = FourCharCode('ksca'); { 0x6b736361 }
  435. keyAEDoTranslate = FourCharCode('ktra'); { 0x6b747261 }
  436. keyAEEditionFileLoc = FourCharCode('eloc'); { 0x656c6f63 }
  437. keyAEElements = FourCharCode('elms'); { 0x656c6d73 }
  438. keyAEEndPoint = FourCharCode('pend'); { 0x70656e64 }
  439. keyAEEventClass = FourCharCode('evcl'); { 0x6576636c }
  440. keyAEEventID = FourCharCode('evti'); { 0x65767469 }
  441. keyAEFile = FourCharCode('kfil'); { 0x6b66696c }
  442. keyAEFileType = FourCharCode('fltp'); { 0x666c7470 }
  443. keyAEFillColor = FourCharCode('flcl'); { 0x666c636c }
  444. keyAEFillPattern = FourCharCode('flpt'); { 0x666c7074 }
  445. keyAEFlipHorizontal = FourCharCode('kfho'); { 0x6b66686f }
  446. keyAEFlipVertical = FourCharCode('kfvt'); { 0x6b667674 }
  447. keyAEFont = FourCharCode('font'); { 0x666f6e74 }
  448. keyAEFormula = FourCharCode('pfor'); { 0x70666f72 }
  449. keyAEGraphicObjects = FourCharCode('gobs'); { 0x676f6273 }
  450. keyAEID = FourCharCode('ID '); { 0x49442020 }
  451. keyAEImageQuality = FourCharCode('gqua'); { 0x67717561 }
  452. keyAEInsertHere = FourCharCode('insh'); { 0x696e7368 }
  453. keyAEKeyForms = FourCharCode('keyf'); { 0x6b657966 }
  454. const
  455. keyAEKeyword = FourCharCode('kywd'); { 0x6b797764 }
  456. keyAELevel = FourCharCode('levl'); { 0x6c65766c }
  457. keyAELineArrow = FourCharCode('arro'); { 0x6172726f }
  458. keyAEName = FourCharCode('pnam'); { 0x706e616d }
  459. keyAENewElementLoc = FourCharCode('pnel'); { 0x706e656c }
  460. keyAEObject = FourCharCode('kobj'); { 0x6b6f626a }
  461. keyAEObjectClass = FourCharCode('kocl'); { 0x6b6f636c }
  462. keyAEOffStyles = FourCharCode('ofst'); { 0x6f667374 }
  463. keyAEOnStyles = FourCharCode('onst'); { 0x6f6e7374 }
  464. keyAEParameters = FourCharCode('prms'); { 0x70726d73 }
  465. keyAEParamFlags = FourCharCode('pmfg'); { 0x706d6667 }
  466. keyAEPenColor = FourCharCode('ppcl'); { 0x7070636c }
  467. keyAEPenPattern = FourCharCode('pppa'); { 0x70707061 }
  468. keyAEPenWidth = FourCharCode('ppwd'); { 0x70707764 }
  469. keyAEPixelDepth = FourCharCode('pdpt'); { 0x70647074 }
  470. keyAEPixMapMinus = FourCharCode('kpmm'); { 0x6b706d6d }
  471. keyAEPMTable = FourCharCode('kpmt'); { 0x6b706d74 }
  472. keyAEPointList = FourCharCode('ptlt'); { 0x70746c74 }
  473. keyAEPointSize = FourCharCode('ptsz'); { 0x7074737a }
  474. keyAEPosition = FourCharCode('kpos'); { 0x6b706f73 }
  475. const
  476. keyAEPropData = FourCharCode('prdt'); { 0x70726474 }
  477. keyAEProperties = FourCharCode('qpro'); { 0x7170726f }
  478. keyAEProperty = FourCharCode('kprp'); { 0x6b707270 }
  479. keyAEPropFlags = FourCharCode('prfg'); { 0x70726667 }
  480. keyAEPropID = FourCharCode('prop'); { 0x70726f70 }
  481. keyAEProtection = FourCharCode('ppro'); { 0x7070726f }
  482. keyAERenderAs = FourCharCode('kren'); { 0x6b72656e }
  483. keyAERequestedType = FourCharCode('rtyp'); { 0x72747970 }
  484. keyAEResult = FourCharCode('----'); { 0x2d2d2d2d }
  485. keyAEResultInfo = FourCharCode('rsin'); { 0x7273696e }
  486. keyAERotation = FourCharCode('prot'); { 0x70726f74 }
  487. keyAERotPoint = FourCharCode('krtp'); { 0x6b727470 }
  488. keyAERowList = FourCharCode('krls'); { 0x6b726c73 }
  489. keyAESaveOptions = FourCharCode('savo'); { 0x7361766f }
  490. keyAEScale = FourCharCode('pscl'); { 0x7073636c }
  491. keyAEScriptTag = FourCharCode('psct'); { 0x70736374 }
  492. keyAESearchText = FourCharCode('stxt'); { 0x73747874 }
  493. keyAEShowWhere = FourCharCode('show'); { 0x73686f77 }
  494. keyAEStartAngle = FourCharCode('pang'); { 0x70616e67 }
  495. keyAEStartPoint = FourCharCode('pstp'); { 0x70737470 }
  496. keyAEStyles = FourCharCode('ksty'); { 0x6b737479 }
  497. const
  498. keyAESuiteID = FourCharCode('suit'); { 0x73756974 }
  499. keyAEText = FourCharCode('ktxt'); { 0x6b747874 }
  500. keyAETextColor = FourCharCode('ptxc'); { 0x70747863 }
  501. keyAETextFont = FourCharCode('ptxf'); { 0x70747866 }
  502. keyAETextPointSize = FourCharCode('ptps'); { 0x70747073 }
  503. keyAETextStyles = FourCharCode('txst'); { 0x74787374 }
  504. keyAETextLineHeight = FourCharCode('ktlh'); { type ShortInteger }
  505. keyAETextLineAscent = FourCharCode('ktas'); { type ShortInteger }
  506. keyAETheText = FourCharCode('thtx'); { 0x74687478 }
  507. keyAETransferMode = FourCharCode('pptm'); { 0x7070746d }
  508. keyAETranslation = FourCharCode('ptrs'); { 0x70747273 }
  509. keyAETryAsStructGraf = FourCharCode('toog'); { 0x746f6f67 }
  510. keyAEUniformStyles = FourCharCode('ustl'); { 0x7573746c }
  511. keyAEUpdateOn = FourCharCode('pupd'); { 0x70757064 }
  512. keyAEUserTerm = FourCharCode('utrm'); { 0x7574726d }
  513. keyAEWindow = FourCharCode('wndw'); { 0x776e6477 }
  514. keyAEWritingCode = FourCharCode('wrcd'); { 0x77726364 }
  515. const
  516. keyMiscellaneous = FourCharCode('fmsc'); { 0x666d7363 }
  517. keySelection = FourCharCode('fsel'); { 0x6673656c }
  518. keyWindow = FourCharCode('kwnd'); { 0x6b776e64 }
  519. { EventRecord keys }
  520. keyWhen = FourCharCode('when');
  521. keyWhere = FourCharCode('wher');
  522. keyModifiers = FourCharCode('mods');
  523. keyKey = FourCharCode('key ');
  524. keyKeyCode = FourCharCode('code');
  525. keyKeyboard = FourCharCode('keyb');
  526. keyDriveNumber = FourCharCode('drv#');
  527. keyErrorCode = FourCharCode('err#');
  528. keyHighLevelClass = FourCharCode('hcls');
  529. keyHighLevelID = FourCharCode('hid ');
  530. const
  531. pArcAngle = FourCharCode('parc'); { 0x70617263 }
  532. pBackgroundColor = FourCharCode('pbcl'); { 0x7062636c }
  533. pBackgroundPattern = FourCharCode('pbpt'); { 0x70627074 }
  534. pBestType = FourCharCode('pbst'); { 0x70627374 }
  535. pBounds = FourCharCode('pbnd'); { 0x70626e64 }
  536. pClass = FourCharCode('pcls'); { 0x70636c73 }
  537. pClipboard = FourCharCode('pcli'); { 0x70636c69 }
  538. pColor = FourCharCode('colr'); { 0x636f6c72 }
  539. pColorTable = FourCharCode('cltb'); { 0x636c7462 }
  540. pContents = FourCharCode('pcnt'); { 0x70636e74 }
  541. pCornerCurveHeight = FourCharCode('pchd'); { 0x70636864 }
  542. pCornerCurveWidth = FourCharCode('pcwd'); { 0x70637764 }
  543. pDashStyle = FourCharCode('pdst'); { 0x70647374 }
  544. pDefaultType = FourCharCode('deft'); { 0x64656674 }
  545. pDefinitionRect = FourCharCode('pdrt'); { 0x70647274 }
  546. pEnabled = FourCharCode('enbl'); { 0x656e626c }
  547. pEndPoint = FourCharCode('pend'); { 0x70656e64 }
  548. pFillColor = FourCharCode('flcl'); { 0x666c636c }
  549. pFillPattern = FourCharCode('flpt'); { 0x666c7074 }
  550. pFont = FourCharCode('font'); { 0x666f6e74 }
  551. const
  552. pFormula = FourCharCode('pfor'); { 0x70666f72 }
  553. pGraphicObjects = FourCharCode('gobs'); { 0x676f6273 }
  554. pHasCloseBox = FourCharCode('hclb'); { 0x68636c62 }
  555. pHasTitleBar = FourCharCode('ptit'); { 0x70746974 }
  556. pID = FourCharCode('ID '); { 0x49442020 }
  557. pIndex = FourCharCode('pidx'); { 0x70696478 }
  558. pInsertionLoc = FourCharCode('pins'); { 0x70696e73 }
  559. pIsFloating = FourCharCode('isfl'); { 0x6973666c }
  560. pIsFrontProcess = FourCharCode('pisf'); { 0x70697366 }
  561. pIsModal = FourCharCode('pmod'); { 0x706d6f64 }
  562. pIsModified = FourCharCode('imod'); { 0x696d6f64 }
  563. pIsResizable = FourCharCode('prsz'); { 0x7072737a }
  564. pIsStationeryPad = FourCharCode('pspd'); { 0x70737064 }
  565. pIsZoomable = FourCharCode('iszm'); { 0x69737a6d }
  566. pIsZoomed = FourCharCode('pzum'); { 0x707a756d }
  567. pItemNumber = FourCharCode('itmn'); { 0x69746d6e }
  568. pJustification = FourCharCode('pjst'); { 0x706a7374 }
  569. pLineArrow = FourCharCode('arro'); { 0x6172726f }
  570. pMenuID = FourCharCode('mnid'); { 0x6d6e6964 }
  571. pName = FourCharCode('pnam'); { 0x706e616d }
  572. const
  573. pNewElementLoc = FourCharCode('pnel'); { 0x706e656c }
  574. pPenColor = FourCharCode('ppcl'); { 0x7070636c }
  575. pPenPattern = FourCharCode('pppa'); { 0x70707061 }
  576. pPenWidth = FourCharCode('ppwd'); { 0x70707764 }
  577. pPixelDepth = FourCharCode('pdpt'); { 0x70647074 }
  578. pPointList = FourCharCode('ptlt'); { 0x70746c74 }
  579. pPointSize = FourCharCode('ptsz'); { 0x7074737a }
  580. pProtection = FourCharCode('ppro'); { 0x7070726f }
  581. pRotation = FourCharCode('prot'); { 0x70726f74 }
  582. pScale = FourCharCode('pscl'); { 0x7073636c }
  583. pScript = FourCharCode('scpt'); { 0x73637074 }
  584. pScriptTag = FourCharCode('psct'); { 0x70736374 }
  585. pSelected = FourCharCode('selc'); { 0x73656c63 }
  586. pSelection = FourCharCode('sele'); { 0x73656c65 }
  587. pStartAngle = FourCharCode('pang'); { 0x70616e67 }
  588. pStartPoint = FourCharCode('pstp'); { 0x70737470 }
  589. pTextColor = FourCharCode('ptxc'); { 0x70747863 }
  590. pTextFont = FourCharCode('ptxf'); { 0x70747866 }
  591. pTextItemDelimiters = FourCharCode('txdl'); { 0x7478646c }
  592. pTextPointSize = FourCharCode('ptps'); { 0x70747073 }
  593. const
  594. pTextStyles = FourCharCode('txst'); { 0x74787374 }
  595. pTransferMode = FourCharCode('pptm'); { 0x7070746d }
  596. pTranslation = FourCharCode('ptrs'); { 0x70747273 }
  597. pUniformStyles = FourCharCode('ustl'); { 0x7573746c }
  598. pUpdateOn = FourCharCode('pupd'); { 0x70757064 }
  599. pUserSelection = FourCharCode('pusl'); { 0x7075736c }
  600. pVersion = FourCharCode('vers'); { 0x76657273 }
  601. pVisible = FourCharCode('pvis'); { 0x70766973 }
  602. const
  603. typeAEText = FourCharCode('tTXT'); { 0x74545854 }
  604. typeArc = FourCharCode('carc'); { 0x63617263 }
  605. typeBest = FourCharCode('best'); { 0x62657374 }
  606. typeCell = FourCharCode('ccel'); { 0x6363656c }
  607. typeClassInfo = FourCharCode('gcli'); { 0x67636c69 }
  608. typeColorTable = FourCharCode('clrt'); { 0x636c7274 }
  609. typeColumn = FourCharCode('ccol'); { 0x63636f6c }
  610. typeDashStyle = FourCharCode('tdas'); { 0x74646173 }
  611. typeData = FourCharCode('tdta'); { 0x74647461 }
  612. typeDrawingArea = FourCharCode('cdrw'); { 0x63647277 }
  613. typeElemInfo = FourCharCode('elin'); { 0x656c696e }
  614. typeEnumeration = FourCharCode('enum'); { 0x656e756d }
  615. typeEPS = FourCharCode('EPS '); { 0x45505320 }
  616. typeEventInfo = FourCharCode('evin'); { 0x6576696e }
  617. const
  618. typeFinderWindow = FourCharCode('fwin'); { 0x6677696e }
  619. typeFixedPoint = FourCharCode('fpnt'); { 0x66706e74 }
  620. typeFixedRectangle = FourCharCode('frct'); { 0x66726374 }
  621. typeGraphicLine = FourCharCode('glin'); { 0x676c696e }
  622. typeGraphicText = FourCharCode('cgtx'); { 0x63677478 }
  623. typeGroupedGraphic = FourCharCode('cpic'); { 0x63706963 }
  624. typeInsertionLoc = FourCharCode('insl'); { 0x696e736c }
  625. typeIntlText = FourCharCode('itxt'); { 0x69747874 }
  626. typeIntlWritingCode = FourCharCode('intl'); { 0x696e746c }
  627. typeLongDateTime = FourCharCode('ldt '); { 0x6c647420 }
  628. typeCFAbsoluteTime = FourCharCode('cfat');
  629. typeISO8601DateTime = FourCharCode('isot'); { 0x69736f74 data is ascii text of an ISO8601 date }
  630. typeLongFixed = FourCharCode('lfxd'); { 0x6c667864 }
  631. typeLongFixedPoint = FourCharCode('lfpt'); { 0x6c667074 }
  632. typeLongFixedRectangle = FourCharCode('lfrc'); { 0x6c667263 }
  633. typeLongPoint = FourCharCode('lpnt'); { 0x6c706e74 }
  634. typeLongRectangle = FourCharCode('lrct'); { 0x6c726374 }
  635. typeMachineLoc = FourCharCode('mLoc'); { 0x6d4c6f63 }
  636. typeOval = FourCharCode('covl'); { 0x636f766c }
  637. typeParamInfo = FourCharCode('pmin'); { 0x706d696e }
  638. typePict = FourCharCode('PICT'); { 0x50494354 }
  639. const
  640. typePixelMap = FourCharCode('cpix'); { 0x63706978 }
  641. typePixMapMinus = FourCharCode('tpmm'); { 0x74706d6d }
  642. typePolygon = FourCharCode('cpgn'); { 0x6370676e }
  643. typePropInfo = FourCharCode('pinf'); { 0x70696e66 }
  644. typePtr = FourCharCode('ptr '); { 0x70747220 }
  645. typeQDPoint = FourCharCode('QDpt'); { 0x51447074 }
  646. typeQDRegion = FourCharCode('Qrgn'); { 0x51447074 (data is actual region data, including rectangle and size, _not_ region handle or ptr)}
  647. typeRectangle = FourCharCode('crec'); { 0x63726563 }
  648. typeRGB16 = FourCharCode('tr16'); { 0x74723136 }
  649. typeRGB96 = FourCharCode('tr96'); { 0x74723936 }
  650. typeRGBColor = FourCharCode('cRGB'); { 0x63524742 }
  651. typeRotation = FourCharCode('trot'); { 0x74726f74 }
  652. typeRoundedRectangle = FourCharCode('crrc'); { 0x63727263 }
  653. typeRow = FourCharCode('crow'); { 0x63726f77 }
  654. typeScrapStyles = FourCharCode('styl'); { 0x7374796c }
  655. typeScript = FourCharCode('scpt'); { 0x73637074 }
  656. typeStyledText = FourCharCode('STXT'); { 0x53545854 }
  657. typeSuiteInfo = FourCharCode('suin'); { 0x7375696e }
  658. typeTable = FourCharCode('ctbl'); { 0x6374626c }
  659. typeTextStyles = FourCharCode('tsty'); { 0x74737479 }
  660. const
  661. typeTIFF = FourCharCode('TIFF'); { 0x54494646 }
  662. typeJPEG = FourCharCode('JPEG');
  663. typeGIF = FourCharCode('GIFf');
  664. typeVersion = FourCharCode('vers'); { 0x76657273 }
  665. const
  666. kAEMenuClass = FourCharCode('menu');
  667. kAEMenuSelect = FourCharCode('mhit');
  668. kAEMouseDown = FourCharCode('mdwn');
  669. kAEMouseDownInBack = FourCharCode('mdbk');
  670. kAEKeyDown = FourCharCode('kdwn');
  671. kAEResized = FourCharCode('rsiz');
  672. kAEPromise = FourCharCode('prom');
  673. const
  674. keyMenuID = FourCharCode('mid ');
  675. keyMenuItem = FourCharCode('mitm');
  676. keyCloseAllWindows = FourCharCode('caw ');
  677. keyOriginalBounds = FourCharCode('obnd');
  678. keyNewBounds = FourCharCode('nbnd');
  679. keyLocalWhere = FourCharCode('lwhr');
  680. const
  681. typeHIMenu = FourCharCode('mobj');
  682. typeHIWindow = FourCharCode('wobj');
  683. const
  684. kAEQuitPreserveState = FourCharCode('stat'); { in a kAEQuitApplication event, this optional parameter hints the application as to whether it should write out }
  685. { persistent state which may be restored on the next launch. The possible values are kAENo ( the default ), or kAEYes }
  686. kAEQuitReason = FourCharCode('why?'); { in a kAEQuitApplication event, this parameter if present is the reason the quit is being sent. The possible values are kAEQuitAll, kAEShutDown, kAERestart, kAEReallyLogOut }
  687. const
  688. kBySmallIcon = 0;
  689. kByIconView = 1;
  690. kByNameView = 2;
  691. kByDateView = 3;
  692. kBySizeView = 4;
  693. kByKindView = 5;
  694. kByCommentView = 6;
  695. kByLabelView = 7;
  696. kByVersionView = 8;
  697. const
  698. kAEInfo = 11;
  699. kAEMain = 0;
  700. kAESharing = 13;
  701. const
  702. kAEZoomIn = 7;
  703. kAEZoomOut = 8;
  704. const
  705. kTextServiceClass = FourCharCode('tsvc');
  706. kUpdateActiveInputArea = FourCharCode('updt'); { update the active input area }
  707. kShowHideInputWindow = FourCharCode('shiw'); { show or hide the input window }
  708. kPos2Offset = FourCharCode('p2st'); { converting global coordinates to char position }
  709. kOffset2Pos = FourCharCode('st2p'); { converting char position to global coordinates }
  710. kUnicodeNotFromInputMethod = FourCharCode('unim'); { Unicode text when event not handled by Input Method or no Input Method }
  711. kGetSelectedText = FourCharCode('gtxt'); { Get text for current selection }
  712. keyAETSMDocumentRefcon = FourCharCode('refc'); { TSM document refcon, typeLongInteger }
  713. keyAEServerInstance = FourCharCode('srvi'); { component instance }
  714. keyAETheData = FourCharCode('kdat'); { typeText }
  715. keyAEFixLength = FourCharCode('fixl'); { fix len }
  716. keyAEUpdateRange = FourCharCode('udng'); { typeTextRangeArray }
  717. keyAECurrentPoint = FourCharCode('cpos'); { current point }
  718. keyAEBufferSize = FourCharCode('buff'); { buffer size to get the text }
  719. keyAEMoveView = FourCharCode('mvvw'); { move view flag }
  720. keyAENextBody = FourCharCode('nxbd'); { next or previous body }
  721. keyAETSMScriptTag = FourCharCode('sclg');
  722. keyAETSMTextFont = FourCharCode('ktxf'); { FMFontFamily or FOND ID }
  723. keyAETSMTextFMFont = FourCharCode('ktxm'); { FMFont }
  724. keyAETSMTextPointSize = FourCharCode('ktps');
  725. keyAETSMEventRecord = FourCharCode('tevt'); { Low level Event Record, typeLowLevelEventRecord }
  726. keyAETSMEventRef = FourCharCode('tevr'); { Carbon EventRef, typeEventRef }
  727. keyAETextServiceEncoding = FourCharCode('tsen'); { Text Service encoding, mac or Unicode in UpdateActiveInputArea or GetSelectedText events. }
  728. keyAETextServiceMacEncoding = FourCharCode('tmen'); { Target mac encoding for TSM conversion of text from Unicode text service. }
  729. keyAETSMGlyphInfoArray = FourCharCode('tgia'); { typeGlyphInfoArray }
  730. typeTextRange = FourCharCode('txrn'); { TextRange }
  731. typeComponentInstance = FourCharCode('cmpi'); { server instance }
  732. typeOffsetArray = FourCharCode('ofay'); { offset array }
  733. typeTextRangeArray = FourCharCode('tray');
  734. typeLowLevelEventRecord = FourCharCode('evtr'); { Low Level Event Record }
  735. typeGlyphInfoArray = FourCharCode('glia'); { Glyph/FMFont info array for sub ranges of Unicode text. See GlyphInfoArray in TextServices.h }
  736. typeEventRef = FourCharCode('evrf'); { Carbon EventRef }
  737. typeText = typeChar; { Plain text }
  738. { Desc type constants }
  739. const
  740. kTSMOutsideOfBody = 1;
  741. kTSMInsideOfBody = 2;
  742. kTSMInsideOfActiveInputArea = 3;
  743. const
  744. kNextBody = 1;
  745. kPreviousBody = 2;
  746. type
  747. TextRange = record
  748. fStart: SInt32;
  749. fEnd: SInt32;
  750. fHiliteStyle: SInt16;
  751. end;
  752. TextRangePtr = ^TextRange;
  753. type
  754. TextRangeHandle = ^TextRangePtr;
  755. TextRangeArray = record
  756. fNumOfRanges: SInt16; { specify the size of the fRange array }
  757. fRange: array [0..0] of TextRange; { when fNumOfRanges > 1, the size of this array has to be calculated }
  758. end;
  759. TextRangeArrayPtr = ^TextRangeArray;
  760. type
  761. TextRangeArrayHandle = ^TextRangeArrayPtr;
  762. OffsetArray = record
  763. fNumOfOffsets: SInt16; { specify the size of the fOffset array }
  764. fOffset: array [0..0] of SInt32; { when fNumOfOffsets > 1, the size of this array has to be calculated }
  765. end;
  766. OffsetArrayPtr = ^OffsetArray;
  767. type
  768. OffsetArrayHandle = ^OffsetArrayPtr;
  769. WritingCode = record
  770. theScriptCode: ScriptCode;
  771. theLangCode: LangCode;
  772. end;
  773. WritingCodePtr = ^WritingCode;
  774. type
  775. IntlText = record
  776. theScriptCode: ScriptCode;
  777. theLangCode: LangCode;
  778. theText: SInt8; { variable length data }
  779. end;
  780. IntlTextPtr = ^IntlText;
  781. { Hilite styles }
  782. const
  783. kTSMHiliteCaretPosition = 1; { specify caret position }
  784. kTSMHiliteRawText = 2; { specify range of raw text }
  785. kTSMHiliteSelectedRawText = 3; { specify range of selected raw text }
  786. kTSMHiliteConvertedText = 4; { specify range of converted text }
  787. kTSMHiliteSelectedConvertedText = 5; { specify range of selected converted text }
  788. kTSMHiliteBlockFillText = 6; { Block Fill hilite style }
  789. kTSMHiliteOutlineText = 7; { Outline hilite style }
  790. kTSMHiliteSelectedText = 8; { Selected hilite style }
  791. kTSMHiliteNoHilite = 9; { specify range of non-hilited text }
  792. {$ifc OLDROUTINENAMES}
  793. { Hilite styles }
  794. const
  795. kCaretPosition = kTSMHiliteCaretPosition;
  796. kRawText = kTSMHiliteRawText;
  797. kSelectedRawText = kTSMHiliteSelectedRawText;
  798. kConvertedText = kTSMHiliteConvertedText;
  799. kSelectedConvertedText = kTSMHiliteSelectedConvertedText;
  800. kBlockFillText = kTSMHiliteBlockFillText;
  801. kOutlineText = kTSMHiliteOutlineText;
  802. kSelectedText = kTSMHiliteSelectedText;
  803. {$endc} {OLDROUTINENAMES}
  804. const
  805. keyAEHiliteRange = FourCharCode('hrng'); { typeTextRangeArray for System 7, typeHiliteRangeArray for System 8 }
  806. keyAEPinRange = FourCharCode('pnrg'); { typeTextRange for System 7, typeTextRegionRange for System 8 }
  807. keyAEClauseOffsets = FourCharCode('clau'); { typeOffsetArray for System 7, typeClauseOffsetArray for System 8 }
  808. keyAEOffset = FourCharCode('ofst'); { typeLongInteger for System 7, typeByteOffset for System 8 }
  809. keyAEPoint = FourCharCode('gpos'); { typePoint for System 7, typeQDPoint for System 8 }
  810. keyAELeftSide = FourCharCode('klef'); { typeBoolean }
  811. keyAERegionClass = FourCharCode('rgnc'); { typeShortInteger for System 7, typeRegionClass for System 8 }
  812. keyAEDragging = FourCharCode('bool'); { typeBoolean }
  813. {$ifc OLDROUTINENAMES}
  814. const
  815. keyAELeadingEdge = keyAELeftSide;
  816. {$endc} {OLDROUTINENAMES}
  817. const
  818. { AppleScript 1.3: Unit types }
  819. typeMeters = FourCharCode('metr'); { Base Unit }
  820. typeInches = FourCharCode('inch');
  821. typeFeet = FourCharCode('feet');
  822. typeYards = FourCharCode('yard');
  823. typeMiles = FourCharCode('mile');
  824. typeKilometers = FourCharCode('kmtr');
  825. typeCentimeters = FourCharCode('cmtr');
  826. typeSquareMeters = FourCharCode('sqrm'); { Base Unit }
  827. typeSquareFeet = FourCharCode('sqft');
  828. typeSquareYards = FourCharCode('sqyd');
  829. typeSquareMiles = FourCharCode('sqmi');
  830. typeSquareKilometers = FourCharCode('sqkm');
  831. typeLiters = FourCharCode('litr'); { Base Unit }
  832. typeQuarts = FourCharCode('qrts');
  833. typeGallons = FourCharCode('galn');
  834. typeCubicMeters = FourCharCode('cmet'); { Base Unit }
  835. typeCubicFeet = FourCharCode('cfet');
  836. typeCubicInches = FourCharCode('cuin');
  837. typeCubicCentimeter = FourCharCode('ccmt');
  838. typeCubicYards = FourCharCode('cyrd');
  839. typeKilograms = FourCharCode('kgrm'); { Base Unit }
  840. typeGrams = FourCharCode('gram');
  841. typeOunces = FourCharCode('ozs ');
  842. typePounds = FourCharCode('lbs ');
  843. typeDegreesC = FourCharCode('degc'); { Base Unit }
  844. typeDegreesF = FourCharCode('degf');
  845. typeDegreesK = FourCharCode('degk');
  846. const
  847. { AppleScript 1.3: Folder Actions }
  848. kFAServerApp = FourCharCode('ssrv'); { Creator code for Folder Actions Server}
  849. kDoFolderActionEvent = FourCharCode('fola'); { Event the Finder sends to the Folder Actions FBA}
  850. kFolderActionCode = FourCharCode('actn'); { Parameter that contains the Folder Action}
  851. kFolderOpenedEvent = FourCharCode('fopn'); { Value of kFolderActionCode parameter; sent to script as event}
  852. kFolderClosedEvent = FourCharCode('fclo');
  853. kFolderWindowMovedEvent = FourCharCode('fsiz');
  854. kFolderItemsAddedEvent = FourCharCode('fget');
  855. kFolderItemsRemovedEvent = FourCharCode('flos');
  856. kItemList = FourCharCode('flst'); { List parameter for added and removed items}
  857. kNewSizeParameter = FourCharCode('fnsz'); { Parameter for moved window}
  858. kFASuiteCode = FourCharCode('faco'); { Suite code for the following events}
  859. kFAAttachCommand = FourCharCode('atfa'); { Attach event id}
  860. kFARemoveCommand = FourCharCode('rmfa'); { Remove event id}
  861. kFAEditCommand = FourCharCode('edfa'); { Edit event id}
  862. kFAFileParam = FourCharCode('faal'); { Key for file parameter for Attach}
  863. kFAIndexParam = FourCharCode('indx'); { Key for index (0-based) parameter for Remove and Edit}
  864. { AppleScript 1.3 Internet Suite }
  865. const
  866. { Suite code }
  867. kAEInternetSuite = FourCharCode('gurl');
  868. kAEISWebStarSuite = $575757BD;
  869. const
  870. { Events }
  871. kAEISGetURL = FourCharCode('gurl');
  872. KAEISHandleCGI = FourCharCode('sdoc');
  873. const
  874. { Classes }
  875. cURL = FourCharCode('url ');
  876. cInternetAddress = FourCharCode('IPAD');
  877. cHTML = FourCharCode('html');
  878. cFTPItem = FourCharCode('ftp ');
  879. const
  880. { Parameters }
  881. kAEISHTTPSearchArgs = FourCharCode('kfor');
  882. kAEISPostArgs = FourCharCode('post');
  883. kAEISMethod = FourCharCode('meth');
  884. kAEISClientAddress = FourCharCode('addr');
  885. kAEISUserName = FourCharCode('user');
  886. kAEISPassword = FourCharCode('pass');
  887. kAEISFromUser = FourCharCode('frmu');
  888. kAEISServerName = FourCharCode('svnm');
  889. kAEISServerPort = FourCharCode('svpt');
  890. kAEISScriptName = FourCharCode('scnm');
  891. kAEISContentType = FourCharCode('ctyp');
  892. kAEISReferrer = FourCharCode('refr');
  893. kAEISUserAgent = FourCharCode('Agnt');
  894. kAEISAction = FourCharCode('Kact');
  895. kAEISActionPath = FourCharCode('Kapt');
  896. kAEISClientIP = FourCharCode('Kcip');
  897. kAEISFullRequest = FourCharCode('Kfrq');
  898. const
  899. { Properties }
  900. pScheme = FourCharCode('pusc');
  901. pHost = FourCharCode('HOST');
  902. pPath = FourCharCode('FTPc');
  903. pUserName = FourCharCode('RAun');
  904. pUserPassword = FourCharCode('RApw');
  905. pDNSForm = FourCharCode('pDNS');
  906. pURL = FourCharCode('pURL');
  907. pTextEncoding = FourCharCode('ptxe');
  908. pFTPKind = FourCharCode('kind');
  909. const
  910. { Scheme enumerations }
  911. eScheme = FourCharCode('esch');
  912. eurlHTTP = FourCharCode('http'); { RFC 2068 }
  913. eurlHTTPS = FourCharCode('htps');
  914. eurlFTP = FourCharCode('ftp '); { RFC 1738 }
  915. eurlMail = FourCharCode('mail'); { RFC 2638 }
  916. eurlFile = FourCharCode('file'); { RFC 1738 }
  917. eurlGopher = FourCharCode('gphr'); { RFC 1738 }
  918. eurlTelnet = FourCharCode('tlnt'); { RFC 1738 }
  919. eurlNews = FourCharCode('news'); { RFC 1738 }
  920. eurlSNews = FourCharCode('snws');
  921. eurlNNTP = FourCharCode('nntp'); { RFC 1738 }
  922. eurlMessage = FourCharCode('mess');
  923. eurlMailbox = FourCharCode('mbox');
  924. eurlMulti = FourCharCode('mult');
  925. eurlLaunch = FourCharCode('laun');
  926. eurlAFP = FourCharCode('afp ');
  927. eurlAT = FourCharCode('at ');
  928. eurlEPPC = FourCharCode('eppc');
  929. eurlRTSP = FourCharCode('rtsp'); { RFC 2326 }
  930. eurlIMAP = FourCharCode('imap'); { RFC 2192 }
  931. eurlNFS = FourCharCode('unfs'); { RFC 2224 }
  932. eurlPOP = FourCharCode('upop'); { RFC 2384 }
  933. eurlLDAP = FourCharCode('uldp'); { RFC 2255 }
  934. eurlUnknown = FourCharCode('url?');
  935. const
  936. { AppleScript 1.3: Connectivity Suite in aeut }
  937. kConnSuite = FourCharCode('macc');
  938. cDevSpec = FourCharCode('cdev');
  939. cAddressSpec = FourCharCode('cadr');
  940. cADBAddress = FourCharCode('cadb');
  941. cAppleTalkAddress = FourCharCode('cat ');
  942. cBusAddress = FourCharCode('cbus');
  943. cEthernetAddress = FourCharCode('cen ');
  944. cFireWireAddress = FourCharCode('cfw ');
  945. cIPAddress = FourCharCode('cip ');
  946. cLocalTalkAddress = FourCharCode('clt ');
  947. cSCSIAddress = FourCharCode('cscs');
  948. cTokenRingAddress = FourCharCode('ctok');
  949. cUSBAddress = FourCharCode('cusb'); { }
  950. { Properties }
  951. pDeviceType = FourCharCode('pdvt');
  952. pDeviceAddress = FourCharCode('pdva');
  953. pConduit = FourCharCode('pcon');
  954. pProtocol = FourCharCode('pprt'); { cde 4/27/98 was 'ppro' conflicted with DB suite }
  955. pATMachine = FourCharCode('patm');
  956. pATZone = FourCharCode('patz');
  957. pATType = FourCharCode('patt');
  958. pDottedDecimal = FourCharCode('pipd');
  959. pDNS = FourCharCode('pdns');
  960. pPort = FourCharCode('ppor');
  961. pNetwork = FourCharCode('pnet');
  962. pNode = FourCharCode('pnod');
  963. pSocket = FourCharCode('psoc');
  964. pSCSIBus = FourCharCode('pscb');
  965. pSCSILUN = FourCharCode('pslu'); { cde 5/22/98 per WWDC developer request }
  966. { Enumerations and enumerators }
  967. eDeviceType = FourCharCode('edvt');
  968. eAddressSpec = FourCharCode('eads');
  969. eConduit = FourCharCode('econ');
  970. eProtocol = FourCharCode('epro');
  971. eADB = FourCharCode('eadb');
  972. eAnalogAudio = FourCharCode('epau');
  973. eAppleTalk = FourCharCode('epat');
  974. eAudioLineIn = FourCharCode('ecai');
  975. eAudioLineOut = FourCharCode('ecal'); { cde 4/24/98 changed from 'ecao' to not conflict }
  976. eAudioOut = FourCharCode('ecao');
  977. eBus = FourCharCode('ebus');
  978. eCDROM = FourCharCode('ecd ');
  979. eCommSlot = FourCharCode('eccm');
  980. eDigitalAudio = FourCharCode('epda');
  981. eDisplay = FourCharCode('edds');
  982. eDVD = FourCharCode('edvd');
  983. eEthernet = FourCharCode('ecen');
  984. eFireWire = FourCharCode('ecfw');
  985. eFloppy = FourCharCode('efd ');
  986. eHD = FourCharCode('ehd ');
  987. eInfrared = FourCharCode('ecir');
  988. eIP = FourCharCode('epip');
  989. eIrDA = FourCharCode('epir');
  990. eIRTalk = FourCharCode('epit');
  991. eKeyboard = FourCharCode('ekbd');
  992. eLCD = FourCharCode('edlc');
  993. eLocalTalk = FourCharCode('eclt');
  994. eMacIP = FourCharCode('epmi');
  995. eMacVideo = FourCharCode('epmv');
  996. eMicrophone = FourCharCode('ecmi');
  997. eModemPort = FourCharCode('ecmp');
  998. eModemPrinterPort = FourCharCode('empp');
  999. eModem = FourCharCode('edmm');
  1000. eMonitorOut = FourCharCode('ecmn');
  1001. eMouse = FourCharCode('emou');
  1002. eNuBusCard = FourCharCode('ednb');
  1003. eNuBus = FourCharCode('enub');
  1004. ePCcard = FourCharCode('ecpc');
  1005. ePCIbus = FourCharCode('ecpi');
  1006. ePCIcard = FourCharCode('edpi');
  1007. ePDSslot = FourCharCode('ecpd');
  1008. ePDScard = FourCharCode('epds');
  1009. ePointingDevice = FourCharCode('edpd');
  1010. ePostScript = FourCharCode('epps');
  1011. ePPP = FourCharCode('eppp');
  1012. ePrinterPort = FourCharCode('ecpp');
  1013. ePrinter = FourCharCode('edpr');
  1014. eSvideo = FourCharCode('epsv');
  1015. eSCSI = FourCharCode('ecsc');
  1016. eSerial = FourCharCode('epsr');
  1017. eSpeakers = FourCharCode('edsp');
  1018. eStorageDevice = FourCharCode('edst');
  1019. eSVGA = FourCharCode('epsg');
  1020. eTokenRing = FourCharCode('etok');
  1021. eTrackball = FourCharCode('etrk');
  1022. eTrackpad = FourCharCode('edtp');
  1023. eUSB = FourCharCode('ecus');
  1024. eVideoIn = FourCharCode('ecvi');
  1025. eVideoMonitor = FourCharCode('edvm');
  1026. eVideoOut = FourCharCode('ecvo');
  1027. const
  1028. { AppleScript 1.3: Keystroke class }
  1029. cKeystroke = FourCharCode('kprs');
  1030. pKeystrokeKey = FourCharCode('kMsg');
  1031. pModifiers = FourCharCode('kMod');
  1032. pKeyKind = FourCharCode('kknd');
  1033. eModifiers = FourCharCode('eMds');
  1034. eOptionDown = FourCharCode('Kopt');
  1035. eCommandDown = FourCharCode('Kcmd');
  1036. eControlDown = FourCharCode('Kctl');
  1037. eShiftDown = FourCharCode('Ksft');
  1038. eCapsLockDown = FourCharCode('Kclk');
  1039. eKeyKind = FourCharCode('ekst'); { }
  1040. { Special keys all start with 'ks' }
  1041. eEscapeKey = $6B733500; { Third byte is virtual key code byte }
  1042. eDeleteKey = $6B733300; { (see IM Mac Toolbox Essentials, pp. 2-43) }
  1043. eTabKey = $6B733000;
  1044. eReturnKey = $6B732400;
  1045. eClearKey = $6B734700;
  1046. eEnterKey = $6B734C00;
  1047. eUpArrowKey = $6B737E00;
  1048. eDownArrowKey = $6B737D00;
  1049. eLeftArrowKey = $6B737B00;
  1050. eRightArrowKey = $6B737C00;
  1051. eHelpKey = $6B737200;
  1052. eHomeKey = $6B737300;
  1053. ePageUpKey = $6B737400;
  1054. ePageDownKey = $6B737900;
  1055. eForwardDelKey = $6B737500;
  1056. eEndKey = $6B737700;
  1057. eF1Key = $6B737A00;
  1058. eF2Key = $6B737800;
  1059. eF3Key = $6B736300;
  1060. eF4Key = $6B737600;
  1061. eF5Key = $6B736000;
  1062. eF6Key = $6B736100;
  1063. eF7Key = $6B736200;
  1064. eF8Key = $6B736400;
  1065. eF9Key = $6B736500;
  1066. eF10Key = $6B736D00;
  1067. eF11Key = $6B736700;
  1068. eF12Key = $6B736F00;
  1069. eF13Key = $6B736900;
  1070. eF14Key = $6B736B00;
  1071. eF15Key = $6B737100;
  1072. const
  1073. keyAELaunchedAsLogInItem = FourCharCode('lgit'); { If present in a kAEOpenApplication event, application was launched as a login item and probably shouldn't open up untitled documents, etc. Mac OS X 10.4 and later. }
  1074. keyAELaunchedAsServiceItem = FourCharCode('svit'); { If present in a kAEOpenApplication event, application was launched as a service item and probably shouldn't open up untitled documents, etc. Mac OS X 10.4 and later. }
  1075. {$endc} {TARGET_OS_MAC}
  1076. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  1077. end.
  1078. {$endc} {not MACOSALLINCLUDE}