/packages/univint/src/FinderRegistry.pas

https://github.com/slibre/freepascal · Pascal · 840 lines · 375 code · 84 blank · 381 comment · 0 complexity · e45e0a8fbf168a74c159b1ea2ccf805d MD5 · raw file

  1. {
  2. File: OpenScripting/FinderRegistry.h
  3. Contains: Data types for Finder AppleEvents
  4. Version: OSA-148~28
  5. Copyright: © 1991-2008 by Apple Computer, Inc., all rights reserved.
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://www.freepascal.org/bugs.html
  9. }
  10. { Pascal Translation Updated: Gorazd Krosl <gorazd_1957@yahoo.ca>, October 2009 }
  11. { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2012 }
  12. {
  13. Modified for use with Free Pascal
  14. Version 308
  15. Please report any bugs to <gpc@microbizz.nl>
  16. }
  17. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  18. {$mode macpas}
  19. {$packenum 1}
  20. {$macro on}
  21. {$inline on}
  22. {$calling mwpascal}
  23. unit FinderRegistry;
  24. interface
  25. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  26. {$setc GAP_INTERFACES_VERSION := $0308}
  27. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  28. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  29. {$endc}
  30. {$ifc defined CPUPOWERPC and defined CPUI386}
  31. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  32. {$endc}
  33. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  34. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  35. {$endc}
  36. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  37. {$setc __ppc__ := 1}
  38. {$elsec}
  39. {$setc __ppc__ := 0}
  40. {$endc}
  41. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  42. {$setc __ppc64__ := 1}
  43. {$elsec}
  44. {$setc __ppc64__ := 0}
  45. {$endc}
  46. {$ifc not defined __i386__ and defined CPUI386}
  47. {$setc __i386__ := 1}
  48. {$elsec}
  49. {$setc __i386__ := 0}
  50. {$endc}
  51. {$ifc not defined __x86_64__ and defined CPUX86_64}
  52. {$setc __x86_64__ := 1}
  53. {$elsec}
  54. {$setc __x86_64__ := 0}
  55. {$endc}
  56. {$ifc not defined __arm__ and defined CPUARM}
  57. {$setc __arm__ := 1}
  58. {$elsec}
  59. {$setc __arm__ := 0}
  60. {$endc}
  61. {$ifc defined cpu64}
  62. {$setc __LP64__ := 1}
  63. {$elsec}
  64. {$setc __LP64__ := 0}
  65. {$endc}
  66. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  67. {$error Conflicting definitions for __ppc__ and __i386__}
  68. {$endc}
  69. {$ifc defined __ppc__ and __ppc__}
  70. {$setc TARGET_CPU_PPC := TRUE}
  71. {$setc TARGET_CPU_PPC64 := FALSE}
  72. {$setc TARGET_CPU_X86 := FALSE}
  73. {$setc TARGET_CPU_X86_64 := FALSE}
  74. {$setc TARGET_CPU_ARM := FALSE}
  75. {$setc TARGET_OS_MAC := TRUE}
  76. {$setc TARGET_OS_IPHONE := FALSE}
  77. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  78. {$setc TARGET_OS_EMBEDDED := FALSE}
  79. {$elifc defined __ppc64__ and __ppc64__}
  80. {$setc TARGET_CPU_PPC := FALSE}
  81. {$setc TARGET_CPU_PPC64 := TRUE}
  82. {$setc TARGET_CPU_X86 := FALSE}
  83. {$setc TARGET_CPU_X86_64 := FALSE}
  84. {$setc TARGET_CPU_ARM := FALSE}
  85. {$setc TARGET_OS_MAC := TRUE}
  86. {$setc TARGET_OS_IPHONE := FALSE}
  87. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  88. {$setc TARGET_OS_EMBEDDED := FALSE}
  89. {$elifc defined __i386__ and __i386__}
  90. {$setc TARGET_CPU_PPC := FALSE}
  91. {$setc TARGET_CPU_PPC64 := FALSE}
  92. {$setc TARGET_CPU_X86 := TRUE}
  93. {$setc TARGET_CPU_X86_64 := FALSE}
  94. {$setc TARGET_CPU_ARM := FALSE}
  95. {$ifc defined(iphonesim)}
  96. {$setc TARGET_OS_MAC := FALSE}
  97. {$setc TARGET_OS_IPHONE := TRUE}
  98. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  99. {$elsec}
  100. {$setc TARGET_OS_MAC := TRUE}
  101. {$setc TARGET_OS_IPHONE := FALSE}
  102. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  103. {$endc}
  104. {$setc TARGET_OS_EMBEDDED := FALSE}
  105. {$elifc defined __x86_64__ and __x86_64__}
  106. {$setc TARGET_CPU_PPC := FALSE}
  107. {$setc TARGET_CPU_PPC64 := FALSE}
  108. {$setc TARGET_CPU_X86 := FALSE}
  109. {$setc TARGET_CPU_X86_64 := TRUE}
  110. {$setc TARGET_CPU_ARM := FALSE}
  111. {$setc TARGET_OS_MAC := TRUE}
  112. {$setc TARGET_OS_IPHONE := FALSE}
  113. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  114. {$setc TARGET_OS_EMBEDDED := FALSE}
  115. {$elifc defined __arm__ and __arm__}
  116. {$setc TARGET_CPU_PPC := FALSE}
  117. {$setc TARGET_CPU_PPC64 := FALSE}
  118. {$setc TARGET_CPU_X86 := FALSE}
  119. {$setc TARGET_CPU_X86_64 := FALSE}
  120. {$setc TARGET_CPU_ARM := TRUE}
  121. { will require compiler define when/if other Apple devices with ARM cpus ship }
  122. {$setc TARGET_OS_MAC := FALSE}
  123. {$setc TARGET_OS_IPHONE := TRUE}
  124. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  125. {$setc TARGET_OS_EMBEDDED := TRUE}
  126. {$elsec}
  127. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  128. {$endc}
  129. {$ifc defined __LP64__ and __LP64__ }
  130. {$setc TARGET_CPU_64 := TRUE}
  131. {$elsec}
  132. {$setc TARGET_CPU_64 := FALSE}
  133. {$endc}
  134. {$ifc defined FPC_BIG_ENDIAN}
  135. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  136. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  137. {$elifc defined FPC_LITTLE_ENDIAN}
  138. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  139. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  140. {$elsec}
  141. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  142. {$endc}
  143. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  144. {$setc CALL_NOT_IN_CARBON := FALSE}
  145. {$setc OLDROUTINENAMES := FALSE}
  146. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  147. {$setc OPAQUE_UPP_TYPES := TRUE}
  148. {$setc OTCARBONAPPLICATION := TRUE}
  149. {$setc OTKERNEL := FALSE}
  150. {$setc PM_USE_SESSION_APIS := TRUE}
  151. {$setc TARGET_API_MAC_CARBON := TRUE}
  152. {$setc TARGET_API_MAC_OS8 := FALSE}
  153. {$setc TARGET_API_MAC_OSX := TRUE}
  154. {$setc TARGET_CARBON := TRUE}
  155. {$setc TARGET_CPU_68K := FALSE}
  156. {$setc TARGET_CPU_MIPS := FALSE}
  157. {$setc TARGET_CPU_SPARC := FALSE}
  158. {$setc TARGET_OS_UNIX := FALSE}
  159. {$setc TARGET_OS_WIN32 := FALSE}
  160. {$setc TARGET_RT_MAC_68881 := FALSE}
  161. {$setc TARGET_RT_MAC_CFM := FALSE}
  162. {$setc TARGET_RT_MAC_MACHO := TRUE}
  163. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  164. {$setc TYPE_BOOL := FALSE}
  165. {$setc TYPE_EXTENDED := FALSE}
  166. {$setc TYPE_LONGLONG := TRUE}
  167. uses MacTypes,AERegistry,AEDataModel,OSA;
  168. {$endc} {not MACOSALLINCLUDE}
  169. {$ifc TARGET_OS_MAC}
  170. {$ALIGN POWER}
  171. {
  172. //////////////////////////////////////
  173. Finder Suite
  174. //////////////////////////////////////
  175. }
  176. {
  177. The old Finder Event suite was 'FNDR'
  178. The new suite is 'fndr'
  179. }
  180. const
  181. kAEFinderSuite = FourCharCode('fndr');
  182. {
  183. //////////////////////////////////////
  184. Finder Events
  185. //////////////////////////////////////
  186. }
  187. const
  188. kAECleanUp = FourCharCode('fclu');
  189. kAEEject = FourCharCode('ejct');
  190. kAEEmpty = FourCharCode('empt');
  191. kAEErase = FourCharCode('fera');
  192. kAEGestalt = FourCharCode('gstl');
  193. kAEPutAway = FourCharCode('ptwy');
  194. kAERebuildDesktopDB = FourCharCode('rddb');
  195. kAESync = FourCharCode('fupd');
  196. kAEInterceptOpen = FourCharCode('fopn');
  197. { "Sort" from the database suite:}
  198. const
  199. kAEDatabaseSuite = FourCharCode('DATA');
  200. kAESort = FourCharCode('SORT');
  201. {
  202. ////////////////////////////////////////////////////////////////////////
  203. Classes
  204. Note: all classes are defined up front so that the property definitions
  205. can reference classes.
  206. ////////////////////////////////////////////////////////////////////////
  207. }
  208. const
  209. cInternalFinderObject = FourCharCode('obj '); { cReference - used to distinguish objects used inside the Finder only}
  210. {
  211. Main Finder class definitions
  212. Indentation implies object model hierarchy
  213. }
  214. const
  215. { We do not use class cItem from AERegistry.r. Instead our class Item is a cObject}
  216. { cItem = 'citm', // defined in AERegistry.r}
  217. { cFile = 'file', // defined in AERegistry.r}
  218. cAliasFile = FourCharCode('alia');
  219. cApplicationFile = FourCharCode('appf');
  220. cControlPanelFile = FourCharCode('ccdv');
  221. cDeskAccessoryFile = FourCharCode('dafi');
  222. cDocumentFile = FourCharCode('docf');
  223. cFontFile = FourCharCode('fntf');
  224. cSoundFile = FourCharCode('sndf');
  225. cClippingFile = FourCharCode('clpf');
  226. cContainer = FourCharCode('ctnr');
  227. cDesktop = FourCharCode('cdsk');
  228. cSharableContainer = FourCharCode('sctr');
  229. cDisk = FourCharCode('cdis');
  230. cFolder = FourCharCode('cfol');
  231. cSuitcase = FourCharCode('stcs');
  232. cAccessorySuitcase = FourCharCode('dsut');
  233. cFontSuitcase = FourCharCode('fsut');
  234. cTrash = FourCharCode('ctrs');
  235. cDesktopPrinter = FourCharCode('dskp');
  236. cPackage = FourCharCode('pack');
  237. cContentSpace = FourCharCode('dwnd'); { cWindow = 'cwin', // defined in AERegistry.r}
  238. cContainerWindow = FourCharCode('cwnd');
  239. cInfoWindow = FourCharCode('iwnd');
  240. cSharingWindow = FourCharCode('swnd');
  241. cStatusWindow = FourCharCode('qwnd');
  242. cClippingWindow = FourCharCode('lwnd');
  243. cPreferencesWindow = FourCharCode('pwnd');
  244. cDTPWindow = FourCharCode('dtpw');
  245. cProcess = FourCharCode('prcs');
  246. cAccessoryProcess = FourCharCode('pcda');
  247. cApplicationProcess = FourCharCode('pcap');
  248. cGroup = FourCharCode('sgrp');
  249. cUser = FourCharCode('cuse'); { cApplication = 'capp', // defined in AERegistry.r}
  250. cSharingPrivileges = FourCharCode('priv');
  251. cPreferences = FourCharCode('cprf');
  252. cLabel = FourCharCode('clbl');
  253. cSound = FourCharCode('snd ');
  254. cAliasList = FourCharCode('alst');
  255. cSpecialFolders = FourCharCode('spfl'); { For use by viewer search engines:}
  256. cOnlineDisk = FourCharCode('cods');
  257. cOnlineLocalDisk = FourCharCode('clds');
  258. cOnlineRemoteDisk = FourCharCode('crds'); { Miscellaneous class definitions}
  259. cEntireContents = FourCharCode('ects');
  260. cIconFamily = FourCharCode('ifam');
  261. {
  262. //////////////////////////////////////
  263. Properties
  264. //////////////////////////////////////
  265. }
  266. { Properties of class cItem (really cObject)}
  267. const
  268. { pBounds = 'pbnd', // defined in AERegistry.r}
  269. pComment = FourCharCode('comt');
  270. pContainer = cContainer;
  271. pContentSpace = cContentSpace;
  272. pCreationDateOld = FourCharCode('crtd'); { to support pre-Finder 8 scripts}
  273. pCreationDate = FourCharCode('ascd'); { from File Commands OSAX}
  274. pDescription = FourCharCode('dscr');
  275. pDisk = cDisk;
  276. pFolderOld = cFolder; { to support pre-Finder 8 scripts}
  277. pFolder = FourCharCode('asdr'); { from File Commands OSAX}
  278. pIconBitmap = FourCharCode('iimg'); { pID = 'ID ', // defined in AERegistry.r}
  279. pInfoWindow = cInfoWindow;
  280. pKind = FourCharCode('kind');
  281. pLabelIndex = FourCharCode('labi');
  282. pModificationDateOld = FourCharCode('modd'); { to support pre-Finder 8 scripts}
  283. pModificationDate = FourCharCode('asmo'); { from File Commands OSAX}
  284. { pName = 'pnam', // defined in AERegistry.r}
  285. pPhysicalSize = FourCharCode('phys');
  286. pPosition = FourCharCode('posn');
  287. pIsSelected = FourCharCode('issl');
  288. pSize = pPointSize; { pPointSize defined in AERegistry.r}
  289. pWindow = cWindow;
  290. pPreferencesWindow = cPreferencesWindow;
  291. { Properties of class cFile (subclass of cItem)}
  292. const
  293. pFileCreator = FourCharCode('fcrt');
  294. pFileType = FourCharCode('asty'); { from File Commands OSAX}
  295. pFileTypeOld = FourCharCode('fitp'); { to support pre-Finder 8 scripts}
  296. pIsLocked = FourCharCode('aslk'); { from File Commands OSAX}
  297. pIsLockedOld = FourCharCode('islk'); { to support pre-Finder 8 scripts}
  298. { pIsStationeryPad = 'pspd', // defined in AERegistry.r }
  299. { pVersion = 'vers', // defined in AERegistry.r}
  300. pProductVersion = FourCharCode('ver2');
  301. { Properties of class cAliasFile (subclass of cFile)}
  302. const
  303. pOriginalItem = FourCharCode('orig');
  304. { Properties of class cApplicationFile (subclass of cFile)}
  305. const
  306. pMinAppPartition = FourCharCode('mprt');
  307. pAppPartition = FourCharCode('appt');
  308. pSuggestedAppPartition = FourCharCode('sprt');
  309. pIsScriptable = FourCharCode('isab');
  310. { Properties of class cURLFile (subclass of cFile)}
  311. const
  312. pInternetLocation = FourCharCode('iloc');
  313. { Properties of class cSoundFile (subclass of cFile)}
  314. const
  315. pSound = FourCharCode('snd ');
  316. {
  317. Properties of class cControlPanel (Views CP only) (subclass of cFile)
  318. Note: the other view-like preference settings are not available in the Views
  319. control panel. These properties are only offered here for backward compatability.
  320. To set the full range of Finder Preferences, use the Preferences object.
  321. }
  322. const
  323. pShowFolderSize = FourCharCode('sfsz'); { Moved to a per-folder basis in Finder 8.0 HIS}
  324. pShowComment = FourCharCode('scom'); { Moved to a per-folder basis in Finder 8.0 HIS}
  325. pShowDate = FourCharCode('sdat'); { Moved to a per-folder basis in Finder 8.0 HIS}
  326. pShowCreationDate = FourCharCode('scda'); { Moved to a per-folder basis in Finder 8.0 HIS}
  327. pShowKind = FourCharCode('sknd'); { Moved to a per-folder basis in Finder 8.0 HIS}
  328. pShowLabel = FourCharCode('slbl'); { Moved to a per-folder basis in Finder 8.0 HIS}
  329. pShowSize = FourCharCode('ssiz'); { Moved to a per-folder basis in Finder 8.0 HIS}
  330. pShowVersion = FourCharCode('svrs'); { Moved to a per-folder basis in Finder 8.0 HIS}
  331. pSortDirection = FourCharCode('sord');
  332. pShowDiskInfo = FourCharCode('sdin'); { Always on in Finder 8.0 HIS}
  333. pListViewIconSize = FourCharCode('lvis'); { Moved to a per-folder basis in Finder 8.0 HIS}
  334. pGridIcons = FourCharCode('fgrd'); { Moved to a per-folder basis in Finder 8.0 HIS}
  335. pStaggerIcons = FourCharCode('fstg'); { No longer part of the Finder 8.0 HIS}
  336. pViewFont = FourCharCode('vfnt');
  337. pViewFontSize = FourCharCode('vfsz');
  338. { Properties of class cContainer (subclass of cItem)}
  339. const
  340. pCompletelyExpanded = FourCharCode('pexc');
  341. pContainerWindow = cContainerWindow;
  342. pEntireContents = cEntireContents;
  343. pExpandable = FourCharCode('pexa');
  344. pExpanded = FourCharCode('pexp');
  345. pPreviousView = FourCharCode('svew'); { pSelection = 'sele', // defined in AERegistry.r}
  346. pView = FourCharCode('pvew');
  347. pIconSize = pListViewIconSize; { defined above}
  348. pKeepArranged = FourCharCode('arrg'); { OBSOLETE in Finder 9 or later}
  349. pKeepArrangedBy = FourCharCode('arby'); { OBSOLETE in Finder 9 or later}
  350. { Properties of class cDesktop (subclass of cContainer)}
  351. const
  352. pStartupDisk = FourCharCode('sdsk');
  353. pTrash = FourCharCode('trsh');
  354. { Properties of class cSharableContainer (subclass of cContainer)}
  355. const
  356. pOwner = FourCharCode('sown');
  357. pOwnerPrivileges = FourCharCode('ownr');
  358. pGroup = cGroup;
  359. pGroupPrivileges = FourCharCode('gppr');
  360. pGuestPrivileges = FourCharCode('gstp');
  361. pArePrivilegesInherited = FourCharCode('iprv');
  362. pExported = FourCharCode('sexp');
  363. pMounted = FourCharCode('smou');
  364. pSharingProtection = FourCharCode('spro');
  365. pSharing = FourCharCode('shar');
  366. pSharingWindow = cSharingWindow;
  367. { Properties of class cDisk (subclass of cSharableContainer)}
  368. const
  369. pCapacity = FourCharCode('capa');
  370. pEjectable = FourCharCode('isej');
  371. pFreeSpace = FourCharCode('frsp');
  372. pLocal = FourCharCode('isrv');
  373. pIsStartup = FourCharCode('istd');
  374. { Properties of class cTrash (subclass of cSharableContainer)}
  375. const
  376. pWarnOnEmpty = FourCharCode('warn');
  377. { Properties of class cWindow (subclass of cContentSpace)}
  378. const
  379. { pBounds = 'pbnd', // defined in AERegistry.r}
  380. { pHasCloseBox = 'hclb', // defined in AERegistry.r}
  381. { pIsFloating = 'isfl', // defined in AERegistry.r}
  382. { pIndex = 'pidx', // defined in AERegistry.r}
  383. { pIsModal = 'pmod', // defined in AERegistry.r}
  384. { pPosition = 'posn', // defined above}
  385. { pIsResizable = 'prsz', // defined in AERegistry.r}
  386. { pHasTitleBar = 'ptit', // defined in AERegistry.r}
  387. { pVisible = 'pvis', // defined in AERegistry.r}
  388. { pIsZoomable = 'iszm', // defined in AERegistry.r}
  389. { pIsZoomed = 'pzum', // defined in AERegistry.r}
  390. pIsZoomedFull = FourCharCode('zumf');
  391. pIsPopup = FourCharCode('drwr');
  392. pIsPulledOpen = FourCharCode('pull'); { only applies to popup windows}
  393. pIsCollapsed = FourCharCode('wshd'); { only applies to normal windows}
  394. { Properties of class cContainerWindow (subclass of cWindow)}
  395. const
  396. pObject = cObject;
  397. { Properties of class cSharingWindow (subclass of cWindow)}
  398. const
  399. pSharableContainer = cSharableContainer;
  400. { Properties of class cInfoWindow (subclass of cWindow)}
  401. const
  402. pInfoPanel = FourCharCode('panl');
  403. { Properties of networking support}
  404. const
  405. pFileShareOn = FourCharCode('fshr');
  406. pFileShareStartingUp = FourCharCode('fsup');
  407. pProgramLinkingOn = FourCharCode('iac ');
  408. { Properties of class cPreferencesWindow (subclass of cWindow)}
  409. const
  410. { pShowFolderSize = 'sfsz', // defined above for Views CP}
  411. { pShowComment = 'scom', // defined above for Views CP}
  412. pShowModificationDate = pShowDate; { pShowDate defined above for Views CP}
  413. { pShowKind = 'sknd', // defined above for Views CP}
  414. { pShowLabel = 'slbl', // defined above for Views CP}
  415. { pShowSize = 'ssiz', // defined above for Views CP}
  416. { pShowVersion = 'svrs', // defined above for Views CP}
  417. { pShowCreationDate = 'scda', // Removed from Finder 8.0 HIS}
  418. { pShowFileType = 'sfty', // Removed from Finder 8.0 HIS}
  419. { pShowFileCreator = 'sfcr', // Removed from Finder 8.0 HIS}
  420. { pListViewIconSize = 'lvis', // defined above for Views CP}
  421. { pGridIcons = 'fgrd', // defined above for Views CP}
  422. { pStaggerIcons = 'fstg', // defined above for Views CP}
  423. { pViewFont = 'vfnt', // defined above for Views CP}
  424. { pViewFontSize = 'vfsz', // defined above for Views CP}
  425. pUseRelativeDate = FourCharCode('urdt'); { Moved to a per-folder basis in Finder 8.0 HIS}
  426. pDelayBeforeSpringing = FourCharCode('dela');
  427. pSpringOpenFolders = FourCharCode('sprg');
  428. pUseShortMenus = FourCharCode('usme');
  429. pUseWideGrid = FourCharCode('uswg');
  430. pLabel1 = FourCharCode('lbl1');
  431. pLabel2 = FourCharCode('lbl2');
  432. pLabel3 = FourCharCode('lbl3');
  433. pLabel4 = FourCharCode('lbl4');
  434. pLabel5 = FourCharCode('lbl5');
  435. pLabel6 = FourCharCode('lbl6');
  436. pLabel7 = FourCharCode('lbl7');
  437. pDefaultIconViewIconSize = FourCharCode('iisz');
  438. pDefaultButtonViewIconSize = FourCharCode('bisz');
  439. pDefaultListViewIconSize = FourCharCode('lisz'); { old use of this name is now pIconSize}
  440. pIconViewArrangement = FourCharCode('iarr');
  441. pButtonViewArrangement = FourCharCode('barr');
  442. {
  443. The next bunch are the various arrangements that make up
  444. enumArrangement
  445. }
  446. const
  447. pNoArrangement = FourCharCode('narr');
  448. pSnapToGridArrangement = FourCharCode('grda');
  449. pByNameArrangement = FourCharCode('nama');
  450. pByModificationDateArrangement = FourCharCode('mdta');
  451. pByCreationDateArrangement = FourCharCode('cdta');
  452. pBySizeArrangement = FourCharCode('siza');
  453. pByKindArrangement = FourCharCode('kina');
  454. pByLabelArrangement = FourCharCode('laba');
  455. { #define pObject cObject // defined above}
  456. { Properties of class cProcess (subclass of cObject)}
  457. const
  458. { pName = 'pnam', // defined in AERegistry.r}
  459. pFile = cFile; { pCreatorType = 'fcrt', // defined above}
  460. { pFileType = 'asty', // defined above}
  461. { pIsFrontProcess = 'pisf', // defined in AERegistry.r}
  462. { pAppPartition = 'appt', // defined above}
  463. pPartitionSpaceUsed = FourCharCode('pusd'); { pIsScriptable = 'isab', // defined in AERegistry.r}
  464. { pVisible = 'pvis' // defined in AERegistry.r}
  465. pLocalAndRemoteEvents = FourCharCode('revt');
  466. pHasScriptingTerminology = FourCharCode('hscr');
  467. { Properties of class cAccessoryProcess (subclass of cProcess)}
  468. const
  469. pDeskAccessoryFile = cDeskAccessoryFile;
  470. { Properties of class cApplicationProcess (subclass of cProcess)}
  471. const
  472. pApplicationFile = cApplicationFile;
  473. {
  474. Properties of class cGroup (subclass of cObject)
  475. enum (
  476. pBounds
  477. pIconBitmap
  478. pLabelIndex
  479. pName
  480. pPosition
  481. pWindow = cWindow // defined above
  482. );
  483. }
  484. { Properties of class cUser (subclass of cObject)}
  485. const
  486. { pBounds}
  487. { pIconBitmap}
  488. { pLabelIndex}
  489. { pName}
  490. { pPosition}
  491. { pWindow = cWindow, // defined above}
  492. pCanConnect = FourCharCode('ccon');
  493. pCanChangePassword = FourCharCode('ccpw');
  494. pCanDoProgramLinking = FourCharCode('ciac');
  495. pIsOwner = FourCharCode('isow');
  496. pARADialIn = FourCharCode('arad');
  497. pShouldCallBack = FourCharCode('calb');
  498. pCallBackNumber = FourCharCode('cbnm');
  499. {
  500. Properties of class cApplication (subclass of cObject)
  501. NOTE: properties for the special folders must match their respective kXXXFolderType constants
  502. }
  503. const
  504. pAboutMacintosh = FourCharCode('abbx');
  505. pAppleMenuItemsFolder = FourCharCode('amnu'); { kAppleMenuFolderType}
  506. { pClipboard = 'pcli', // defined in AERegistry.r}
  507. pControlPanelsFolder = FourCharCode('ctrl'); { kControlPanelFolderType}
  508. pDesktop = FourCharCode('desk'); { kDesktopFolderType}
  509. pExtensionsFolder = FourCharCode('extn'); { kExtensionFolderType}
  510. { pFileShareOn = 'fshr', // defined above}
  511. pFinderPreferences = FourCharCode('pfrp');
  512. pFontsFolder = FourCharCode('font');
  513. pFontsFolderPreAllegro = FourCharCode('ffnt'); { DO NOT USE THIS - FOR BACKWARDS COMPAT ONLY}
  514. { pIsFrontProcess = 'pisf', // defined in AERegistry.r}
  515. { pInsertionLoc = 'pins', // defined in AERegistry.r}
  516. pLargestFreeBlock = FourCharCode('mfre');
  517. pPreferencesFolder = FourCharCode('pref'); { kPreferencesFolderType}
  518. { pProductVersion = 'ver2', // defined above}
  519. { pUserSelection = 'pusl', // defined in AERegistry.r}
  520. { pFileShareStartingUp = 'fsup', // defined above}
  521. pShortCuts = FourCharCode('scut');
  522. pShutdownFolder = FourCharCode('shdf');
  523. pStartupItemsFolder = FourCharCode('strt'); { kStartupFolderType}
  524. pSystemFolder = FourCharCode('macs'); { kSystemFolderType}
  525. pTemporaryFolder = FourCharCode('temp'); { kTemporaryFolderType}
  526. { pVersion = 'vers', // defined in AERegistry.r}
  527. pViewPreferences = FourCharCode('pvwp'); { pVisible = 'pvis', // defined in AERegistry.r}
  528. pStartingUp = FourCharCode('awak'); { private property to tell whether the Finder is fully up and running}
  529. { Properties of class cSharingPrivileges (subclass of cObject)}
  530. const
  531. pSeeFiles = FourCharCode('prvr');
  532. pSeeFolders = FourCharCode('prvs');
  533. pMakeChanges = FourCharCode('prvw');
  534. {
  535. Properties of class cPreferences (subclass of cObject)
  536. enum (
  537. pShowFolderSize = 'sfsz', // defined above for Views CP
  538. pShowComment = 'scom', // defined above for Views CP
  539. pShowModificationDate = pShowDate, // pShowDate defined above for Views CP
  540. pShowKind = 'sknd', // defined above for Views CP
  541. pShowLabel = 'slbl', // defined above for Views CP
  542. pShowSize = 'ssiz', // defined above for Views CP
  543. pShowVersion = 'svrs', // defined above for Views CP
  544. pShowCreationDate = 'scda', // defined in cPreferencesWindow
  545. pShowFileType = 'sfty', // defined in cPreferencesWindow
  546. pShowFileCreator = 'sfcr', // defined in cPreferencesWindow
  547. pListViewIconSize = 'lvis', // defined above for Views CP
  548. pGridIcons = 'fgrd', // defined above for Views CP
  549. pStaggerIcons = 'fstg', // defined above for Views CP
  550. pViewFont = 'vfnt', // defined above for Views CP
  551. pViewFontSize = 'vfsz', // defined above for Views CP
  552. pUseRelativeDate = 'urdt', // defined in cPreferencesWindow
  553. pDelayBeforeSpringing = 'dela', // defined in cPreferencesWindow
  554. pShowMacOSFolder = 'sosf', // defined in cPreferencesWindow
  555. pUseShortMenus = 'usme', // defined in cPreferencesWindow
  556. pUseCustomNewMenu = 'ucnm', // defined in cPreferencesWindow
  557. pShowDesktopInBackground = 'sdtb', // defined in cPreferencesWindow
  558. pActivateDesktopOnClick = 'adtc', // defined in cPreferencesWindow
  559. pLabel1 = 'lbl1', // defined in cPreferencesWindow
  560. pLabel2 = 'lbl2', // defined in cPreferencesWindow
  561. pLabel3 = 'lbl3', // defined in cPreferencesWindow
  562. pLabel4 = 'lbl4', // defined in cPreferencesWindow
  563. pLabel5 = 'lbl5', // defined in cPreferencesWindow
  564. pLabel6 = 'lbl6', // defined in cPreferencesWindow
  565. pLabel7 = 'lbl7', // defined in cPreferencesWindow
  566. pWindow = cWindow // defined above
  567. );
  568. }
  569. {
  570. Properties of class cLabel (subclass of cObject)
  571. enum (
  572. pName = 'pnam', // defined in AERegistry.r
  573. pColor = 'colr', // defined in AERegistry.r
  574. );
  575. }
  576. { Misc Properties}
  577. const
  578. pSmallIcon = FourCharCode('smic');
  579. pSmallButton = FourCharCode('smbu');
  580. pLargeButton = FourCharCode('lgbu');
  581. pGrid = FourCharCode('grid');
  582. {
  583. //////////////////////////////////////
  584. Enumerations defined by the Finder
  585. //////////////////////////////////////
  586. }
  587. const
  588. enumViewBy = FourCharCode('vwby');
  589. enumGestalt = FourCharCode('gsen');
  590. enumConflicts = FourCharCode('cflc');
  591. enumExistingItems = FourCharCode('exsi');
  592. enumOlderItems = FourCharCode('oldr');
  593. const
  594. enumDate = FourCharCode('enda');
  595. enumAnyDate = FourCharCode('anyd');
  596. enumToday = FourCharCode('tday');
  597. enumYesterday = FourCharCode('yday');
  598. enumThisWeek = FourCharCode('twek');
  599. enumLastWeek = FourCharCode('lwek');
  600. enumThisMonth = FourCharCode('tmon');
  601. enumLastMonth = FourCharCode('lmon');
  602. enumThisYear = FourCharCode('tyer');
  603. enumLastYear = FourCharCode('lyer');
  604. enumBeforeDate = FourCharCode('bfdt');
  605. enumAfterDate = FourCharCode('afdt');
  606. enumBetweenDate = FourCharCode('btdt');
  607. enumOnDate = FourCharCode('ondt');
  608. const
  609. enumAllDocuments = FourCharCode('alld');
  610. enumFolders = FourCharCode('fold');
  611. enumAliases = FourCharCode('alia');
  612. enumStationery = FourCharCode('stat');
  613. const
  614. enumWhere = FourCharCode('wher');
  615. enumAllLocalDisks = FourCharCode('aldk');
  616. enumAllRemoteDisks = FourCharCode('ardk');
  617. enumAllDisks = FourCharCode('alld');
  618. enumAllOpenFolders = FourCharCode('aofo');
  619. const
  620. enumIconSize = FourCharCode('isiz');
  621. enumSmallIconSize = pSmallIcon;
  622. enumMiniIconSize = FourCharCode('miic');
  623. enumLargeIconSize = FourCharCode('lgic');
  624. const
  625. enumSortDirection = FourCharCode('sodr');
  626. enumSortDirectionNormal = FourCharCode('snrm');
  627. enumSortDirectionReverse = FourCharCode('srvs');
  628. const
  629. enumArrangement = FourCharCode('earr');
  630. { Get Info Window panel enumeration}
  631. const
  632. enumInfoWindowPanel = FourCharCode('ipnl');
  633. enumGeneralPanel = FourCharCode('gpnl');
  634. enumSharingPanel = FourCharCode('spnl');
  635. enumStatusNConfigPanel = FourCharCode('scnl');
  636. enumFontsPanel = FourCharCode('fpnl');
  637. enumMemoryPanel = FourCharCode('mpnl');
  638. { Preferences panel enumeration}
  639. const
  640. enumPrefsWindowPanel = FourCharCode('pple');
  641. enumPrefsGeneralPanel = FourCharCode('pgnp');
  642. enumPrefsLabelPanel = FourCharCode('plbp');
  643. enumPrefsIconViewPanel = FourCharCode('pivp');
  644. enumPrefsButtonViewPanel = FourCharCode('pbvp');
  645. enumPrefsListViewPanel = FourCharCode('plvp');
  646. {
  647. //////////////////////////////////////
  648. Types defined by the Finder
  649. //////////////////////////////////////
  650. }
  651. const
  652. typeIconFamily = cIconFamily; { An AEList of typeIconAndMask, type8BitIcon, & c.}
  653. typeIconAndMask = FourCharCode('ICN#');
  654. type8BitMask = FourCharCode('l8mk');
  655. type32BitIcon = FourCharCode('il32');
  656. type8BitIcon = FourCharCode('icl8');
  657. type4BitIcon = FourCharCode('icl4');
  658. typeSmallIconAndMask = FourCharCode('ics#');
  659. typeSmall8BitMask = FourCharCode('s8mk');
  660. typeSmall32BitIcon = FourCharCode('is32');
  661. typeSmall8BitIcon = FourCharCode('ics8');
  662. typeSmall4BitIcon = FourCharCode('ics4');
  663. typeRelativeTime = FourCharCode('rtim');
  664. typeConceptualTime = FourCharCode('timc');
  665. {
  666. //////////////////////////////////////
  667. Keywords defined by the Finder
  668. //////////////////////////////////////
  669. }
  670. const
  671. keyIconAndMask = FourCharCode('ICN#');
  672. key32BitIcon = FourCharCode('il32');
  673. key8BitIcon = FourCharCode('icl8');
  674. key4BitIcon = FourCharCode('icl4');
  675. key8BitMask = FourCharCode('l8mk');
  676. keySmallIconAndMask = FourCharCode('ics#');
  677. keySmall8BitIcon = FourCharCode('ics8');
  678. keySmall4BitIcon = FourCharCode('ics4');
  679. keySmall32BitIcon = FourCharCode('is32');
  680. keySmall8BitMask = FourCharCode('s8mk');
  681. keyMini1BitMask = FourCharCode('icm#');
  682. keyMini4BitIcon = FourCharCode('icm4');
  683. keyMini8BitIcon = FourCharCode('icm8');
  684. keyAEUsing = FourCharCode('usin');
  685. keyAEReplacing = FourCharCode('alrp');
  686. keyAENoAutoRouting = FourCharCode('rout');
  687. keyLocalPositionList = FourCharCode('mvpl');
  688. keyGlobalPositionList = FourCharCode('mvpg');
  689. keyRedirectedDocumentList = FourCharCode('fpdl');
  690. {
  691. //////////////////////////////////////
  692. New prepositions used by the Finder
  693. //////////////////////////////////////
  694. }
  695. const
  696. keyASPrepositionHas = FourCharCode('has ');
  697. keyAll = FourCharCode('kyal');
  698. keyOldFinderItems = FourCharCode('fsel');
  699. {
  700. //////////////////////////////////////
  701. New key forms used by the Finder
  702. //////////////////////////////////////
  703. }
  704. const
  705. formAlias = typeAlias;
  706. formCreator = pFileCreator;
  707. {
  708. //////////////////////////////////////
  709. Finder error codes
  710. //////////////////////////////////////
  711. }
  712. const
  713. errFinderIsBusy = -15260;
  714. errFinderWindowNotOpen = -15261;
  715. errFinderCannotPutAway = -15262;
  716. errFinderWindowMustBeIconView = -15263; { RequireWindowInIconView}
  717. errFinderWindowMustBeListView = -15264; { RequireWindowInListView}
  718. errFinderCantMoveToDestination = -15265;
  719. errFinderCantMoveSource = -15266;
  720. errFinderCantOverwrite = -15267;
  721. errFinderIncestuousMove = -15268; { Could just use errFinderCantMoveSource}
  722. errFinderCantMoveToAncestor = -15269; { Could also use errFinderCantMoveSource}
  723. errFinderCantUseTrashedItems = -15270;
  724. errFinderItemAlreadyInDest = -15271; { Move from folder A to folder A}
  725. errFinderUnknownUser = -15272; { Includes unknown group}
  726. errFinderSharePointsCantInherit = -15273;
  727. errFinderWindowWrongType = -15274;
  728. errFinderPropertyNowWindowBased = -15275;
  729. errFinderAppFolderProtected = -15276; { used by General controls when folder protection is on}
  730. errFinderSysFolderProtected = -15277; { used by General controls when folder protection is on}
  731. errFinderBoundsWrong = -15278;
  732. errAEValueOutOfRange = -15279;
  733. errFinderPropertyDoesNotApply = -15280;
  734. errFinderFileSharingMustBeOn = -15281;
  735. errFinderMustBeActive = -15282;
  736. errFinderVolumeNotFound = -15283; { more descriptive than what we get with nsvErr}
  737. errFinderLockedItemsInTrash = -15284; { there are some locked items in the trash}
  738. errFinderOnlyLockedItemsInTrash = -15285; { all the items (except folders) in the trash are locked}
  739. errFinderProgramLinkingMustBeOn = -15286;
  740. errFinderWindowMustBeButtonView = -15287;
  741. errFinderBadPackageContents = -15288; { something is wrong within the package }
  742. errFinderUnsupportedInsidePackages = -15289; { operation cannot be used on items within a package }
  743. errFinderCorruptOpenFolderList = -15290; { was -15276 in Finder 8.6 and earlier, but that conflicted with General Controls}
  744. errFinderNoInvisibleFiles = -15291; { was -15277 in Finder 8.6 and earlier, but that conflicted with General Controls}
  745. errFinderCantDeleteImmediately = -15292; { cannot delete immediately via scripting}
  746. errFinderLastReserved = -15379;
  747. {$endc} {TARGET_OS_MAC}
  748. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  749. end.
  750. {$endc} {not MACOSALLINCLUDE}