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

多媒体编程

开发平台:

Visual C++

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