home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / edres2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.3 KB  |  80 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. // Resource definition defines for Editor - NOT EDITABLE BY APP EDITOR
  20.  
  21. #ifndef EDRES2_H
  22. #define EDRES2_H
  23.  
  24.  
  25. // For configuring CComboToolBars
  26. // Maximum number of items in a toolbar!
  27. #define MAX_TOOLBAR_CONTROLS            500 
  28.  
  29. // *** Keep an eye on values in RESOURCE.H to avoid collisions!
  30. // Change this if IDs in Resource.h are getting close
  31. #define ID_EDT_BASE                     36000
  32.  
  33.  // Command IDs for formating toolbar and submenus created at runtime
  34. #define ID_FORMAT_PARAGRAPH_BASE        ID_EDT_BASE
  35. #define ID_FORMAT_PARAGRAPH_END         ID_FORMAT_PARAGRAPH_BASE + P_MAX
  36.  
  37. // For convenience, IDs of Paragraph styles used in toolbar:
  38. #define ID_FORMAT_NUM_LIST              ID_FORMAT_PARAGRAPH_BASE+P_NUM_LIST
  39. #define ID_FORMAT_UNUM_LIST             ID_FORMAT_PARAGRAPH_BASE+P_UNUM_LIST
  40.  
  41. // Text put into formating comboboxes and submenus
  42. #define ID_LIST_TEXT_PARAGRAPH_BASE     (ID_FORMAT_PARAGRAPH_END + 1)
  43. #define ID_LIST_TEXT_PARAGRAPH_END        (ID_LIST_TEXT_PARAGRAPH_BASE + P_MAX)
  44.  
  45. #define ID_LIST_TEXT_CHARACTER_BASE     ID_LIST_TEXT_PARAGRAPH_END+1
  46. #define ID_LIST_TEXT_CHARACTER_END        (ID_LIST_TEXT_CHARACTER_BASE + P_MAX)
  47.  
  48. #define ID_FORMAT_MENU_BASE             ID_LIST_TEXT_CHARACTER_END+1
  49. #define ID_FORMAT_MENU_END              ID_FORMAT_MENU_BASE
  50.  
  51. #define  ID_FORMAT_FONTSIZE_BASE        (ID_FORMAT_MENU_END+1)
  52. #define  ID_FORMAT_POINTSIZE_BASE       (ID_FORMAT_MENU_END+10)
  53.  
  54. // AVOID INCLUDING ANOTHER H FILE WITH MAX_FONT_SIZE AND MAX_FONT_COLOR,
  55. //   BE SURE TO ALLOW ENOUGH ROOM HERE FOR SIZE VALUES...
  56.  
  57. // Submenu created at runtime to pick color from palette
  58. #define ID_FORMAT_FONTCOLOR_BASE        (ID_FORMAT_POINTSIZE_BASE+20)
  59. //... AND HERE FOR COLOR VALUES
  60.  
  61. // Tools menu 
  62. #define ID_TOOLS_MENU_BASE              (ID_FORMAT_FONTSIZE_BASE+100)
  63. #define ID_CHECK_SPELLING                ID_TOOLS_MENU_BASE
  64. #define ID_SPELLING_LANGUAGE            (ID_TOOLS_MENU_BASE+2)
  65.  
  66. // Add new Tools menu ids here. Change ID_EDITOR_PLUGINS_BASE if there are too many Tools menu ids.
  67.  
  68. // Menu id ranges for Plugins
  69. #define ID_EDITOR_PLUGINS_BASE          (ID_TOOLS_MENU_BASE+10)
  70. #define MAX_EDITOR_PLUGINS              50
  71. #define ID_STOP_EDITOR_PLUGIN           (ID_TOOLS_MENU_BASE+1)
  72.  
  73. #define ID_FORMAT_FONTFACE_BASE         (ID_TOOLS_MENU_BASE+MAX_EDITOR_PLUGINS+10)
  74. // RESERVE MAX_TRUETYPE_FONTS(currently 100)+3 IDs HERE FOR FONTFACE MENU
  75.  
  76. #define ID_EDIT_HISTORY_BASE            (ID_TOOLS_MENU_BASE+MAX_EDITOR_PLUGINS+10+105)
  77. // RESERVE MAX_EDIT_HISTORY_LOCATIONS (Currently 10) items here
  78. #define ID_EDIT_LAST_ID                 (ID_EDIT_HISTORY_BASE + 10)
  79. #endif
  80.