Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
5.6 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. /*
  5. This file contains the definitions of the numerical indexes to the menu
  6. items (imi) used by Windows WRITE.
  7. Each imi should be unique and be continuous within the same
  8. menu. The middle 2 bytes of imi are masked against MENUMASK to
  9. provide the submenu index.
  10. IF any of the menu item order has changed, menu.c has
  11. to be modified also -- rgmfAllItem, rgmfScrap, SetMenuFlags etc.
  12. */
  13. /* number of pulldown submenus */
  14. #define CMENUS 7
  15. /* menu index */
  16. #define FILE 0
  17. #define EDIT 1
  18. #define FIND 2
  19. #define CHARACTER 3
  20. #define PARA 4
  21. #define DIV 5
  22. #define HELP 6
  23. #define MENUMASK 0x0ff0
  24. #define FILEMENU 0x0000
  25. #define EDITMENU 0x0010
  26. #define FINDMENU 0x0020
  27. #define CHARMENU 0x0040
  28. #define PARAMENU 0x0080
  29. #define DOCUMENU 0x0100
  30. #define HELPMENU 0x0200
  31. #define VERBMENU 0x0400
  32. #define fMenuItem 0x1000
  33. #define imiNil 0x1fff
  34. #define imiHelp 0xf2f0
  35. /* Menu items */
  36. /* #define imiAbout 0x1000 */
  37. #define imiNew 0x1001
  38. #define imiOpen 0x1002
  39. #define imiSave 0x1003
  40. #define imiSaveAs 0x1004
  41. #define imiPrint 0x1005
  42. #define imiPrintSetup 0x1006
  43. #define imiRepaginate 0x1007
  44. #define imiQuit 0x1008
  45. #define imiFileMin (imiNew)
  46. #define imiFileMax (imiQuit + 1)
  47. #define imiUndo 0x1010
  48. #define imiCut 0x1011
  49. #define imiCopy 0x1012
  50. #define imiPaste 0x1013
  51. #define imiMovePicture 0x1014
  52. #define imiSizePicture 0x1015
  53. #if defined(OLE)
  54. #if !defined(SMALL_OLE_UI)
  55. #define imiPasteLink 0x1016
  56. #define imiProperties 0x1017
  57. #endif
  58. #define imiInsertNew 0x1018
  59. #define imiPasteSpecial 0x1019
  60. #endif
  61. #define imiEditMin (imiUndo)
  62. /* note imiEditMax intentionally doesn't include OLE menu items. (1.25.91) D. Kent */
  63. #define imiEditMax (imiSizePicture + 1)
  64. #if defined(OLE)
  65. /* verbs */
  66. #define imiVerb 0x1400
  67. #define imiVerbEdit 0x1401
  68. #define imiVerbPlay 0x1402
  69. #define imiVerbMax 0x14FF
  70. #endif
  71. #define imiFind 0x1020
  72. #define imiFindAgain 0x1021
  73. #define imiChange 0x1022
  74. #define imiGoTo 0x1023
  75. #define imiFindMin (imiFind)
  76. #define imiFindMax (imiGoTo + 1)
  77. #if defined(OLE)
  78. /* these aren't really menu items, but we'll associate them with
  79. WM_COMMAND messages like cardfile does. 01/24/91 -- dougk */
  80. #define imiActivate 1030
  81. #define imiUpdate 1031
  82. #define imiFreeze 1032
  83. #define imiClone 1033
  84. #define imiCopyfromlink 1034
  85. #endif
  86. #define imiCharNormal 0x1040
  87. #define imiBold 0x1041
  88. #define imiItalic 0x1042
  89. #define imiUnderline 0x1043
  90. #define imiSuper 0x1044
  91. #define imiSub 0x1045
  92. #if 0
  93. #define imiFont1 0x1046
  94. #define imiFont2 0x1047
  95. #define imiFont3 0x1048
  96. #endif
  97. #define imiSmFont 0x1046
  98. #define imiLgFont 0x1047
  99. #define imiCharFormats 0x1048
  100. #if defined(JAPAN) & defined(IME_HIDDEN) //IME3.1J
  101. #define imiImeHidden 0x1049
  102. #endif
  103. #define imiCharMin (imiCharNormal)
  104. #if defined(JAPAN) & defined(IME_HIDDEN) //IME3.1J
  105. #define imiCharMax (imiImeHidden + 1)
  106. #else
  107. #define imiCharMax (imiCharFormats + 1)
  108. #endif
  109. /* special accelerator key
  110. #define imiAccelBold 0x104c
  111. #define imiAccelItalic 0x104d
  112. #define imiAccelUnderline 0x104e*/
  113. #define imiParaNormal 0x1080
  114. #define imiLeft 0x1081
  115. #define imiCenter 0x1082
  116. #define imiRight 0x1083
  117. #define imiJustified 0x1084
  118. #define imiSingleSpace 0x1085
  119. #define imiOneandhalfSpace 0x1086
  120. #define imiDoubleSpace 0x1087
  121. #define imiParaFormats 0x1088
  122. #define imiParaMin (imiParaNormal)
  123. #define imiParaMax (imiParaFormats + 1)
  124. #define imiHeader 0x1100
  125. #define imiFooter 0x1101
  126. #define imiShowRuler 0x1102
  127. #define imiTabs 0x1103
  128. #define imiDivFormats 0x1104
  129. #define imiDocuMin (imiHeader)
  130. #define imiDocuMax (imiDivFormats + 1)
  131. #define imiIndex 0x1200
  132. #define imiHelpSearch 0x1201
  133. #define imiUsingHelp 0x1202
  134. #define imiAbout 0x1203
  135. #define imiHelpMin (imiIndex)
  136. #define imiHelpMax (imiAbout + 1)
  137. #ifdef CASHMERE
  138. #define imiFootnote
  139. #define imiPreferences
  140. #endif
  141. #ifdef ENABLE /* CFILE, CEDIT ... */
  142. /* number of items in each submenu */
  143. #define CFILE (imiFileMax - imiFileMin)
  144. #define CEDIT (imiEditMax - imiEditMin)
  145. #define CFIND (imiFindMax - imiFindMin)
  146. #define CCHAR (imiCharMax - imiCharMin)
  147. #define CPARA (imiParaMax - imiParaMin)
  148. #define CDOCU (imiDocuMax - imiDocuMin)
  149. #define CHELP (imiHelpMax - imiHelpMin)
  150. #endif
  151.