home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / CmdDefs.idl < prev    next >
Text File  |  1997-03-21  |  14KB  |  295 lines

  1. /* @(#)Z 1.22 com/src/include/idl/CmdDefs.idl, odcore, od96os2, odos29712d 97/03/21 17:18:29 (96/10/29 09:27:51) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odcore
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28. #ifdef __PRIVATE__
  29.  
  30. //#
  31. //#     File:           CmdDefs.idl
  32. //#
  33. //#     Contains:       constants for menu commands
  34. //#
  35. //#     Owned by:       Richard Rodseth
  36. //#
  37. //#     Copyright:      (r) 1994 by Apple Computer, Inc., all rights reserved.
  38. //#
  39. //#     Change History (most recent first):
  40. //#
  41. //#   06/18/96         brr add definition for EDIT_SEPARATOR5
  42. //#   04/11/96   21029 law added _PLATFORM_OS2_ and _PLATFORM_AIX_ flags
  43. //#   03/15/96   20444 brr Changed HELP_INDEX to HELP_INDEX_OD because HELP_INDEX
  44. //#                        is already defined in winuser.h for WIN32.
  45. //#   03/15/96   20444 brr merge Added defines for EDIT_COPYLINKTO and EDIT_PASTELINKFROM
  46. //#                        which are marked in the ODRES.RC file and NEXT_RELEASE,
  47. //#                        but EDIT_COPYLINKTO was being used in Menubar.cpp so added them
  48. //#   03/15/96   20444 brr merge OS/2 cmddefs.idl with Apples and add WIN32 support
  49. //#   11/08/95  142420 st  merge odmenuid.h with cmddefs
  50. //#----------------------------------------------------------------------------
  51. //#
  52. //#             <12>     6/20/95        Te              1217754 BB: Delete Document command
  53. //#             <11>     4/14/95        Te              #1239888 Need to remove obsolete constants
  54. //#                                                                     in CmdDefs.idl
  55. //#             <10>     4/10/95        Te              #1236210        BB: "Show Parts Bin" menu item
  56. //#                                                                     must be removed from the Edit menu
  57. //#              <9>      3/1/95        RR              # 1164863 Added command numbers for Apple,
  58. //#                                                                     Doc and Edit menus. Reserved ranges and
  59. //#                                                                     renumbered 'em all.
  60. //#              <8>     10/7/94        Te              #1187826 Document Info functionality
  61. //#              <7>     8/18/94        Te              #1181622 Set Owned by: field to Richard
  62. //#              <6>      6/7/94        RR              Privatize change history
  63. //#              <4>      5/4/94        RR              Removed module, added #pragma somemittypes
  64. //#
  65. //#     To Do:
  66. //#
  67. #else
  68. //#     Copyright:      (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  69. #endif
  70.  
  71. #ifndef _CMDDEFS_
  72. #define _CMDDEFS_
  73.  
  74. #ifndef _ODTYPESM_
  75. #include "ODTypesM.idl"
  76. #endif
  77.  
  78. // The C/C++ output for this file can be compiled by C/C++ and Rez, since
  79. // It contains #defines for the command numbers of the standard menu items
  80. // of the document shell
  81.  
  82. // Command numbers below 20000 are reserved for the shell or container apps.
  83. // Command numbers above 20000 are reserved for parts.
  84.  
  85. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  86. #pragma somemittypes on
  87. #endif
  88.  
  89. // ** NOTE if any values change in here be sure to update the
  90. // ** src/include/c/odres.h file also to reflect identical
  91. // ** values.
  92.  
  93. #ifndef _COMMANDS_
  94. #define _COMMANDS_
  95.  
  96. const ODMenuID MENUID_ROOTPART_FIRST =     0X3000;
  97. const ODMenuID MENUID_ROOTPART_LAST  =     0X3FFF;
  98.  
  99. const ODMenuID MENUID_SHPLGIN_FIRST    =   0x4000;
  100. const ODMenuID MENUID_SHPLGIN_LAST     =   0x4FFF;
  101.  
  102. const ODMenuID MENUID_ACTIVEPART_FIRST =   0x5000;
  103. const ODMenuID MENUID_ACTIVEPART_LAST  =   0x7FFF;
  104.  
  105. const ODMenuID MENUID_ACTIVEPART_USER  =   0x6F00;
  106.  
  107. const ODMenuID IDMS_DOCUMENT           =   2000;
  108. const ODMenuID DOC_NEW                 =   2001;
  109. const ODMenuID DOC_OPENAS              =   2002;
  110. const ODMenuID DOC_INSERT              =   2003;
  111. const ODMenuID DOC_SEPARATOR1          =   2004;
  112. const ODMenuID DOC_SAVE                =   2005;
  113. const ODMenuID DOC_SAVECOPY            =   2006;
  114. const ODMenuID DOC_REVERTTOSAVED       =   2007;
  115. const ODMenuID DOC_SEPARATOR2          =   2008;
  116. const ODMenuID DOC_DRAFTS              =   2009;
  117. const ODMenuID DOC_DRAFTS_MENU         =   2009;  /* MENU ID - same as DOC_DRAFTS */
  118. const ODMenuID DOC_DRAFTCREATE         =   2010;
  119. const ODMenuID DOC_DRAFTHISTORY        =   2011;
  120. const ODMenuID DOC_PROPERTIES          =   2012;
  121. const ODMenuID DOC_SETUP               =   2013;
  122. const ODMenuID DOC_SEPARATOR3          =   2014;
  123. const ODMenuID DOC_PRINT               =   2015;
  124. const ODMenuID DOC_SEPARATOR4          =   2016;
  125. const ODMenuID DOC_CLOSE               =   2017;
  126. const ODMenuID DOC_CLOSEDLG            =   2018;
  127. const ODMenuID DOC_SAVECH              =   2019;
  128. const ODMenuID DOC_DISCARD             =   2020;
  129. const ODMenuID DOC_CANCEL              =   2021;
  130.  
  131. const ODMenuID IDMS_EDIT               =   2100;
  132. const ODMenuID EDIT_UNDO               =   2101;
  133. const ODMenuID EDIT_REDO               =   2102;
  134. const ODMenuID EDIT_SEPARATOR1         =   2103;
  135. const ODMenuID EDIT_CREATE             =   2104;
  136. const ODMenuID EDIT_CUT                =   2105;
  137. const ODMenuID EDIT_COPY               =   2106;
  138. const ODMenuID EDIT_PASTE              =   2107;
  139. const ODMenuID EDIT_PASTEAS            =   2108;
  140. const ODMenuID EDIT_LINK_MENU          =   2109;  /* MENU ID  */
  141. const ODMenuID EDIT_PASTELINK          =   2110;
  142. const ODMenuID EDIT_BREAKLINK          =   2111;
  143. const ODMenuID EDIT_COPYLINKTO         =   2112;
  144. const ODMenuID EDIT_PASTELINKFROM      =   2113;
  145. const ODMenuID EDIT_SEPARATOR2         =   2114;
  146. const ODMenuID EDIT_DELETE             =   2115;
  147. const ODMenuID EDIT_SEPARATOR3         =   2116;
  148. const ODMenuID EDIT_SELECTALL          =   2117;
  149. const ODMenuID EDIT_DESELECTALL        =   2118;
  150. const ODMenuID EDIT_SEPARATOR4         =   2119;
  151. const ODMenuID EDIT_OPENSEL            =   2120;
  152. const ODMenuID EDIT_SELPROPERTIES      =   2121;
  153. const ODMenuID EDIT_INSERT             =   2122;
  154. const ODMenuID EDIT_VIEWINWINDOW       =   2312;
  155. const ODMenuID EDIT_SEPARATOR5         =   2124;
  156. const ODMenuID EDIT_LINKINFO           =   2125;
  157.  
  158. const ODMenuID IDMS_HELP               =   2200;
  159. const ODMenuID HELP_INDEX_OD           =   2201;
  160. const ODMenuID HELP_GENERAL            =   2202;
  161. const ODMenuID HELP_USING              =   2203;
  162. const ODMenuID HELP_SEPARATOR1         =   2204;
  163. const ODMenuID HELP_PRODUCTINFO        =   2205;
  164.  
  165. const ODMenuID IDMS_VIEW               =   2350;
  166. const ODMenuID VIEW_OPENAS             =   2300;
  167. const ODMenuID VIEW_OAICON             =   2301;
  168. const ODMenuID VIEW_OATREE             =   2302;
  169. const ODMenuID VIEW_OADETAILS          =   2303;
  170. const ODMenuID VIEW_OAWINDOW           =   2304;
  171. const ODMenuID VIEW_PROPERTIES         =   2305;
  172. const ODMenuID VIEW_SHOWAS             =   2306;
  173. const ODMenuID VIEW_SASMALLICON        =   2307;
  174. const ODMenuID VIEW_SALARGEICON        =   2308;
  175. const ODMenuID VIEW_SATHUMBNAIL        =   2309;
  176. const ODMenuID VIEW_SAFRAME            =   2310;
  177. const ODMenuID VIEW_SEPARATOR1         =   2311;
  178. const ODMenuID VIEW_VIEWINWINDOW       =   2312;
  179.  
  180. const ODMenuID ID_BASEPOPUP            =   501;
  181.  
  182. // ole interop items
  183. const ODMenuID DOC_EXIT                =  10020;
  184. const ODMenuID DOC_UPDATE              =  10021;
  185.  
  186. #endif // _COMMANDS_
  187.  
  188. #if defined(_PLATFORM_MACINTOSH)
  189. const ODCommandID  kODCommandShellFirst     = 1000;
  190. const ODCommandID  kODCommandShellLast      = 20000;
  191.  
  192. const ODCommandID  kODCommandAppleMenu      = 1000;
  193. const ODCommandID  kODCommandAbout          = 1001;
  194.  
  195. const ODCommandID  kODCommandDocumentMenu   = 2000;
  196. const ODCommandID  kODCommandNew            = 2001;
  197. const ODCommandID  kODCommandOpenDocument   = 2003;
  198. const ODCommandID  kODCommandDeleteDocument = 2006;
  199. const ODCommandID  kODCommandSave           = 2007;
  200. const ODCommandID  kODCommandSaveACopy      = 2008;
  201. const ODCommandID  kODCommandRevert         = 2009;
  202. const ODCommandID  kODCommandDrafts         = 2010;
  203. const ODCommandID  kODCommandDocumentInfo   = 2011;
  204. const ODCommandID  kODCommandPageSetup      = 2012;
  205. const ODCommandID  kODCommandPrint          = 2013;
  206. const ODCommandID  kODCommandClose          = 2005;
  207.  
  208. const ODCommandID  kODCommandEditMenu       = 3000;
  209. const ODCommandID  kODCommandUndo           = 3001;
  210. const ODCommandID  kODCommandRedo           = 3002;
  211. const ODCommandID  kODCommandCut            = 3003;
  212. const ODCommandID  kODCommandCopy           = 3004;
  213. const ODCommandID  kODCommandPaste          = 3005;
  214. const ODCommandID  kODCommandPasteAs        = 3006;
  215. const ODCommandID  kODCommandClear          = 3007;
  216. const ODCommandID  kODCommandSelectAll      = 3008;
  217. const ODCommandID  kODCommandGetPartInfo    = 3009;
  218. const ODCommandID  kODCommandOpen           = 2002;
  219. const ODCommandID  kODCommandPreferences    = 3010;
  220. const ODCommandID  kODCommandViewAsWin      = 3011;
  221. #elif defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_) || defined(_PLATFORM_OS2_)
  222. const ODCommandID  kODCommandDocumentMenu    = IDMS_DOCUMENT;
  223. const ODCommandID  kODCommandNew             = DOC_NEW;
  224. const ODCommandID  kODCommandOpenDocument    = DOC_OPENAS;
  225. const ODCommandID  kODCommandSave            = DOC_SAVE;
  226. const ODCommandID  kODCommandSaveACopy       = DOC_SAVECOPY;
  227. const ODCommandID  kODCommandRevert          = DOC_REVERTTOSAVED;
  228. const ODCommandID  kODCommandDraft           = DOC_DRAFTS;
  229. const ODCommandID  kODCommandDraftsMenu      = DOC_DRAFTS;
  230. const ODCommandID  kODCommandDraftCreate     = DOC_DRAFTCREATE;
  231. const ODCommandID  kODCommandDraftHist       = DOC_DRAFTHISTORY;
  232. const ODCommandID  kODCommandDocumentInfo    = DOC_PROPERTIES;
  233. const ODCommandID  kODCommandPageSetup       = DOC_SETUP;
  234. const ODCommandID  kODCommandPrint           = DOC_PRINT;
  235. const ODCommandID  kODCommandClose           = DOC_CLOSE;
  236. const ODCommandID  kODCommandCloseDlg        = DOC_CLOSEDLG;
  237. const ODCommandID  kODCommandSaveChanges     = DOC_SAVECH;
  238. const ODCommandID  kODCommandDiscardChanges  = DOC_DISCARD;
  239. const ODCommandID  kODCommandCancel          = DOC_CANCEL;
  240. const ODCommandID  kODCommandExit            = DOC_EXIT;
  241. const ODCommandID  kODCommandUpdate          = DOC_UPDATE;
  242.  
  243. const ODCommandID  kODCommandEditMenu        = IDMS_EDIT;
  244. const ODCommandID  kODCommandUndo            = EDIT_UNDO;
  245. const ODCommandID  kODCommandRedo            = EDIT_REDO;
  246. const ODCommandID  kODCommandCreate          = EDIT_CREATE;
  247. const ODCommandID  kODCommandCut             = EDIT_CUT;
  248. const ODCommandID  kODCommandCopy            = EDIT_COPY;
  249. const ODCommandID  kODCommandPaste           = EDIT_PASTE;
  250. const ODCommandID  kODCommandPasteAs         = EDIT_PASTEAS;
  251. const ODCommandID  kODCommandLinksMenu       = EDIT_LINK_MENU;
  252. const ODCommandID  kODCommandPasteLink       = EDIT_PASTELINK;
  253. const ODCommandID  kODCommandBreakLink       = EDIT_BREAKLINK;
  254. const ODCommandID  kODCommandLinkInfo        = EDIT_LINKINFO;
  255. const ODCommandID  kODCommandDelete          = EDIT_DELETE;
  256. const ODCommandID  kODCommandSelectAll       = EDIT_SELECTALL;
  257. const ODCommandID  kODCommandDeselectAll     = EDIT_DESELECTALL;
  258. const ODCommandID  kODCommandOpen            = EDIT_OPENSEL;
  259. const ODCommandID  kODCommandPartInfo        = EDIT_SELPROPERTIES;
  260. const ODCommandID  kODCommandInsert          = EDIT_INSERT;
  261.  
  262. const ODCommandID  kODCommandViewMenu        = IDMS_VIEW;
  263. const ODCommandID  kODCommandViewOpenAs      = VIEW_OPENAS;
  264. const ODCommandID  kODCommandViewOAIcon      = VIEW_OAICON;
  265. const ODCommandID  kODCommandViewOATree      = VIEW_OATREE;
  266. const ODCommandID  kODCommandViewOADetails   = VIEW_OADETAILS;
  267. const ODCommandID  kODCommandViewOAWindow    = VIEW_OAWINDOW;
  268. const ODCommandID  kODCommandViewProperties  = VIEW_PROPERTIES;
  269. const ODCommandID  kODCommandViewShowAs      = VIEW_SHOWAS;
  270. const ODCommandID  kODCommandViewSmallIcon   = VIEW_SASMALLICON;
  271. const ODCommandID  kODCommandViewLargeIcon   = VIEW_SALARGEICON;
  272. const ODCommandID  kODCommandViewThumbNail   = VIEW_SATHUMBNAIL;
  273. const ODCommandID  kODCommandViewFrame       = VIEW_SAFRAME;
  274. const ODCommandID  kODCommandViewAsWin       = VIEW_VIEWINWINDOW;
  275.  
  276. const ODCommandID  kODCommandHelpMenu        = IDMS_HELP;
  277. const ODCommandID  kODCommandHelpIndex       = HELP_INDEX_OD;
  278. const ODCommandID  kODCommandHelpGeneral     = HELP_GENERAL;
  279. const ODCommandID  kODCommandHelpUsing       = HELP_USING;
  280. const ODCommandID  kODCommandHelpInfo        = HELP_PRODUCTINFO;
  281.  
  282. const ODCommandID  kODCommandBasePopup       = ID_BASEPOPUP;
  283. #endif
  284.  
  285. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  286. #pragma somemittypes off
  287. #endif
  288.  
  289. module OpenDoc_Commands
  290. {
  291.         const string OpenDoc_Commands_Version = "1.0.";
  292. };
  293.  
  294. #endif  //# _CMDDEFS_
  295.