home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / include / Netscape_Constants.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.3 KB  |  155 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // ╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤
  20. //    Browser_Constants.h
  21. // ╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤╤
  22.  
  23. #pragma once
  24.  
  25. #include <PP_Resources.h> // for MBAR_Initial
  26.  
  27. // MenuBar MBAR ResIDT's
  28. const ResIDT cBrowserMenubar =        MBAR_Initial;
  29. const ResIDT cEditorMenubar =        129;
  30. const ResIDT cMailNewsMenubar =        130;
  31. const ResIDT cAddressBookMenubar =    131;
  32. const ResIDT cComposeMenubar =        132;
  33. const ResIDT cBookmarksMenubar =    133;
  34. const ResIDT cHistoryMenubar =        134;
  35. const ResIDT cMinimalMenubar =         135;
  36.  
  37. // Menu ResIDT's
  38. const ResIDT cDirectoryMenuID =        10;
  39.  
  40. //    WARNING: All other hierarchical menu IDs must be below 75
  41. //    or bad things will happen!
  42.  
  43. //    Set aside 10 menu IDs for the Editor plugins hierarchical menus.
  44. const ResIDT cEditorPluginsFirstHierMenuID =    75;
  45. const ResIDT cEditorPluginsLastHierMenuID =        84;
  46.  
  47. //    Set aside 150 menu IDs for the Bookmarks hierarchical menus.
  48. //    (That's 85 to 235 inclusive minus menu ID 128 for the "Apple" menu.)
  49. const ResIDT cBookmarksFirstHierMenuID =        85;
  50. const ResIDT cBookmarksLastHierMenuID =            235;
  51.  
  52. const ResIDT cHistoryMenuID =        303;
  53. const ResIDT cBookmarksMenuID =        304;
  54. const ResIDT cWindowMenuID =        305;
  55. const ResIDT cToolsMenuID =            405;
  56. const ResIDT cFontMenuID =            13;
  57.  
  58. // Browser mediated window types
  59. enum {
  60.     WindowType_Browser            =    'Brwz',
  61.     WindowType_Download            =    'Down',
  62.     WindowType_MailNews            =    'MaNw',
  63.     WindowType_MailThread        =    'MaTh',
  64.     WindowType_Message            =    'Mesg',
  65.     WindowType_Newsgroup        =    'News',
  66.     WindowType_NavCenter        =    'NavW',
  67.     WindowType_Address            =    'Addr',
  68.     WindowType_Editor            =    'Edit',
  69.     WindowType_SearchMailNews    =    'Srch',
  70.     WindowType_SearchAddresses    =    'SAdr',
  71.     WindowType_Compose            =    'Comp',
  72.     WindowType_MailFilters        =    'Filt',
  73.     WindowType_Progress            =    'Prog',
  74.     WindowType_AddressPerson     =     'Adpr',
  75.     WindowType_AddressList         =     'Adls',
  76.     WindowType_SubscribeNews    =    'Subs',
  77.     WindowType_NameCompletion    =     'NmPk',
  78.     WindowType_OfflinePicker    =    'OfPk'
  79. };
  80.  
  81. // Browser File Menu cmd id's
  82. const CommandT cmd_OpenURL        =    1032;
  83.  
  84. // Browser Go Menu cmd id's
  85. const CommandT cmd_GoForward    =    1005;
  86. const CommandT cmd_GoBack        =    1006;
  87. const CommandT cmd_Home            =    1009;
  88.  
  89. // other cmd id's
  90. const CommandT cmd_PageServices        =    1195;
  91.  
  92. //
  93. // NavCenter specific
  94. //
  95. const CommandT cmd_NCToggle                = 5101;        // show/hide pane
  96. const CommandT cmd_NCNewWindow             = 5100;        // create a new navcenter window
  97.  
  98. //
  99. // NavCenter XP menu commands. 
  100. //
  101. // These constants can be computed by doing
  102. //        cmd_NavCenterBase + (corresponding HT command)
  103. // but since we need to know the exact command number to put in constructor, I think
  104. // it's clearer to just hardcode the constants in this file.
  105. //
  106. // To get the HT command back from the corresponding command id, just subtract off 
  107. // cmd_NavCenterBase.
  108. //
  109. const CommandT cmd_NavCenterBase        = 5000;
  110.  
  111. const CommandT cmd_NCOpen                = 5001;
  112. const CommandT cmd_NCOpenFile            = 5002;
  113. const CommandT cmd_NCPrint                = 5003;
  114. const CommandT cmd_NCOpenNewWindow        = 5004;
  115. const CommandT cmd_NCOpenComposer        = 5005;
  116. const CommandT cmd_NCOpenAsWorkspace    = 5006;
  117. const CommandT cmd_NCNewItem            = 5007;
  118. const CommandT cmd_NCNewFolder            = 5008;
  119. const CommandT cmd_NCNewSeparator        = 5009;
  120. const CommandT cmd_NCMakeAlias            = 5010;
  121. const CommandT cmd_NCAddToBookmarks        = 5011;
  122. const CommandT cmd_NCSaveAs                = 5012;
  123. const CommandT cmd_NCCreateShortcut        = 5013;
  124. const CommandT cmd_NCSetToolbarFolder    = 5014;
  125. const CommandT cmd_NCSetBMMenu            = 5015;
  126. const CommandT cmd_NCSetNewBMFolder        = 5016;
  127. const CommandT cmd_NCCut                = 5017;
  128. const CommandT cmd_NCCopy                = 5018;
  129. const CommandT cmd_NCPaste                = 5019;
  130. const CommandT cmd_NCDeleteFile            = 5020;
  131. const CommandT cmd_NCDeleteFolder        = 5021;
  132. const CommandT cmd_NCRevealInFinder        = 5022;
  133. const CommandT cmd_NCGetInfo            = 5023;
  134. const CommandT cmd_NCCopyLinkLocation    = 5024;
  135. const CommandT cmd_NCNewPane            = 5025;
  136. const CommandT cmd_NCRenamePane            = 5026;
  137. const CommandT cmd_NCDeletePane            = 5027;
  138. const CommandT cmd_NCFind                = 5050;        // find in workspace
  139.  
  140. const CommandT cmd_NavCenterCap            = 5099;
  141.  
  142.  
  143. // Clicks
  144. enum EClickKind {
  145.     eWaiting,                    // Uninitialized
  146.     eNone,                        // No anchors
  147.     eTextAnchor,                // Plain text anchor
  148.     eImageAnchor,                // Image that is a simple anchor
  149.     eImageIsmap,                // Image that is ISMAP
  150.     eImageForm,                    // Image that is an ISMAP form
  151.     eImageIcon,                    // Image that is an icon (delayed)
  152.     eImageAltText,                // Alt text part of the image
  153.     eEdge                        // Edge
  154. };
  155.