home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / CmdDefs.idl < prev    next >
Text File  |  1997-04-02  |  11KB  |  254 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. //#     Copyright:      (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  29.  
  30. #ifndef _CMDDEFS_
  31. #define _CMDDEFS_
  32.  
  33. #ifndef _ODTYPESM_
  34. #include "ODTypesM.idl"
  35. #endif
  36.  
  37. // The C/C++ output for this file can be compiled by C/C++ and Rez, since
  38. // It contains #defines for the command numbers of the standard menu items
  39. // of the document shell
  40.  
  41. // Command numbers below 20000 are reserved for the shell or container apps.
  42. // Command numbers above 20000 are reserved for parts.
  43.  
  44. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  45. #pragma somemittypes on
  46. #endif
  47.  
  48. // ** NOTE if any values change in here be sure to update the
  49. // ** src/include/c/odres.h file also to reflect identical
  50. // ** values.
  51.  
  52. #ifndef _COMMANDS_
  53. #define _COMMANDS_
  54.  
  55. const ODMenuID MENUID_ROOTPART_FIRST =     0X3000;
  56. const ODMenuID MENUID_ROOTPART_LAST  =     0X3FFF;
  57.  
  58. const ODMenuID MENUID_SHPLGIN_FIRST    =   0x4000;
  59. const ODMenuID MENUID_SHPLGIN_LAST     =   0x4FFF;
  60.  
  61. const ODMenuID MENUID_ACTIVEPART_FIRST =   0x5000;
  62. const ODMenuID MENUID_ACTIVEPART_LAST  =   0x7FFF;
  63.  
  64. const ODMenuID MENUID_ACTIVEPART_USER  =   0x6F00;
  65.  
  66. const ODMenuID IDMS_DOCUMENT           =   2000;
  67. const ODMenuID DOC_NEW                 =   2001;
  68. const ODMenuID DOC_OPENAS              =   2002;
  69. const ODMenuID DOC_INSERT              =   2003;
  70. const ODMenuID DOC_SEPARATOR1          =   2004;
  71. const ODMenuID DOC_SAVE                =   2005;
  72. const ODMenuID DOC_SAVECOPY            =   2006;
  73. const ODMenuID DOC_REVERTTOSAVED       =   2007;
  74. const ODMenuID DOC_SEPARATOR2          =   2008;
  75. const ODMenuID DOC_DRAFTS              =   2009;
  76. const ODMenuID DOC_DRAFTS_MENU         =   2009;  /* MENU ID - same as DOC_DRAFTS */
  77. const ODMenuID DOC_DRAFTCREATE         =   2010;
  78. const ODMenuID DOC_DRAFTHISTORY        =   2011;
  79. const ODMenuID DOC_PROPERTIES          =   2012;
  80. const ODMenuID DOC_SETUP               =   2013;
  81. const ODMenuID DOC_SEPARATOR3          =   2014;
  82. const ODMenuID DOC_PRINT               =   2015;
  83. const ODMenuID DOC_SEPARATOR4          =   2016;
  84. const ODMenuID DOC_CLOSE               =   2017;
  85. const ODMenuID DOC_CLOSEDLG            =   2018;
  86. const ODMenuID DOC_SAVECH              =   2019;
  87. const ODMenuID DOC_DISCARD             =   2020;
  88. const ODMenuID DOC_CANCEL              =   2021;
  89.  
  90. const ODMenuID IDMS_EDIT               =   2100;
  91. const ODMenuID EDIT_UNDO               =   2101;
  92. const ODMenuID EDIT_REDO               =   2102;
  93. const ODMenuID EDIT_SEPARATOR1         =   2103;
  94. const ODMenuID EDIT_CREATE             =   2104;
  95. const ODMenuID EDIT_CUT                =   2105;
  96. const ODMenuID EDIT_COPY               =   2106;
  97. const ODMenuID EDIT_PASTE              =   2107;
  98. const ODMenuID EDIT_PASTEAS            =   2108;
  99. const ODMenuID EDIT_LINK_MENU          =   2109;  /* MENU ID  */
  100. const ODMenuID EDIT_PASTELINK          =   2110;
  101. const ODMenuID EDIT_BREAKLINK          =   2111;
  102. const ODMenuID EDIT_COPYLINKTO         =   2112;
  103. const ODMenuID EDIT_PASTELINKFROM      =   2113;
  104. const ODMenuID EDIT_SEPARATOR2         =   2114;
  105. const ODMenuID EDIT_DELETE             =   2115;
  106. const ODMenuID EDIT_SEPARATOR3         =   2116;
  107. const ODMenuID EDIT_SELECTALL          =   2117;
  108. const ODMenuID EDIT_DESELECTALL        =   2118;
  109. const ODMenuID EDIT_SEPARATOR4         =   2119;
  110. const ODMenuID EDIT_OPENSEL            =   2120;
  111. const ODMenuID EDIT_SELPROPERTIES      =   2121;
  112. const ODMenuID EDIT_INSERT             =   2122;
  113. const ODMenuID EDIT_VIEWINWINDOW       =   2312;
  114. const ODMenuID EDIT_SEPARATOR5         =   2124;
  115. const ODMenuID EDIT_LINKINFO           =   2125;
  116.  
  117. const ODMenuID IDMS_HELP               =   2200;
  118. const ODMenuID HELP_INDEX_OD           =   2201;
  119. const ODMenuID HELP_GENERAL            =   2202;
  120. const ODMenuID HELP_USING              =   2203;
  121. const ODMenuID HELP_SEPARATOR1         =   2204;
  122. const ODMenuID HELP_PRODUCTINFO        =   2205;
  123.  
  124. const ODMenuID IDMS_VIEW               =   2350;
  125. const ODMenuID VIEW_OPENAS             =   2300;
  126. const ODMenuID VIEW_OAICON             =   2301;
  127. const ODMenuID VIEW_OATREE             =   2302;
  128. const ODMenuID VIEW_OADETAILS          =   2303;
  129. const ODMenuID VIEW_OAWINDOW           =   2304;
  130. const ODMenuID VIEW_PROPERTIES         =   2305;
  131. const ODMenuID VIEW_SHOWAS             =   2306;
  132. const ODMenuID VIEW_SASMALLICON        =   2307;
  133. const ODMenuID VIEW_SALARGEICON        =   2308;
  134. const ODMenuID VIEW_SATHUMBNAIL        =   2309;
  135. const ODMenuID VIEW_SAFRAME            =   2310;
  136. const ODMenuID VIEW_SEPARATOR1         =   2311;
  137. const ODMenuID VIEW_VIEWINWINDOW       =   2312;
  138.  
  139. const ODMenuID ID_BASEPOPUP            =   501;
  140.  
  141. // ole interop items
  142. const ODMenuID DOC_EXIT                =  10020;
  143. const ODMenuID DOC_UPDATE              =  10021;
  144.  
  145. #endif // _COMMANDS_
  146.  
  147. #if defined(_PLATFORM_MACINTOSH)
  148. const ODCommandID  kODCommandShellFirst     = 1000;
  149. const ODCommandID  kODCommandShellLast      = 20000;
  150.  
  151. const ODCommandID  kODCommandAppleMenu      = 1000;
  152. const ODCommandID  kODCommandAbout          = 1001;
  153.  
  154. const ODCommandID  kODCommandDocumentMenu   = 2000;
  155. const ODCommandID  kODCommandNew            = 2001;
  156. const ODCommandID  kODCommandOpenDocument   = 2003;
  157. const ODCommandID  kODCommandDeleteDocument = 2006;
  158. const ODCommandID  kODCommandSave           = 2007;
  159. const ODCommandID  kODCommandSaveACopy      = 2008;
  160. const ODCommandID  kODCommandRevert         = 2009;
  161. const ODCommandID  kODCommandDrafts         = 2010;
  162. const ODCommandID  kODCommandDocumentInfo   = 2011;
  163. const ODCommandID  kODCommandPageSetup      = 2012;
  164. const ODCommandID  kODCommandPrint          = 2013;
  165. const ODCommandID  kODCommandClose          = 2005;
  166.  
  167. const ODCommandID  kODCommandEditMenu       = 3000;
  168. const ODCommandID  kODCommandUndo           = 3001;
  169. const ODCommandID  kODCommandRedo           = 3002;
  170. const ODCommandID  kODCommandCut            = 3003;
  171. const ODCommandID  kODCommandCopy           = 3004;
  172. const ODCommandID  kODCommandPaste          = 3005;
  173. const ODCommandID  kODCommandPasteAs        = 3006;
  174. const ODCommandID  kODCommandClear          = 3007;
  175. const ODCommandID  kODCommandSelectAll      = 3008;
  176. const ODCommandID  kODCommandGetPartInfo    = 3009;
  177. const ODCommandID  kODCommandOpen           = 2002;
  178. const ODCommandID  kODCommandPreferences    = 3010;
  179. const ODCommandID  kODCommandViewAsWin      = 3011;
  180. #elif defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_) || defined(_PLATFORM_OS2_)
  181. const ODCommandID  kODCommandDocumentMenu    = IDMS_DOCUMENT;
  182. const ODCommandID  kODCommandNew             = DOC_NEW;
  183. const ODCommandID  kODCommandOpenDocument    = DOC_OPENAS;
  184. const ODCommandID  kODCommandSave            = DOC_SAVE;
  185. const ODCommandID  kODCommandSaveACopy       = DOC_SAVECOPY;
  186. const ODCommandID  kODCommandRevert          = DOC_REVERTTOSAVED;
  187. const ODCommandID  kODCommandDraft           = DOC_DRAFTS;
  188. const ODCommandID  kODCommandDraftsMenu      = DOC_DRAFTS;
  189. const ODCommandID  kODCommandDraftCreate     = DOC_DRAFTCREATE;
  190. const ODCommandID  kODCommandDraftHist       = DOC_DRAFTHISTORY;
  191. const ODCommandID  kODCommandDocumentInfo    = DOC_PROPERTIES;
  192. const ODCommandID  kODCommandPageSetup       = DOC_SETUP;
  193. const ODCommandID  kODCommandPrint           = DOC_PRINT;
  194. const ODCommandID  kODCommandClose           = DOC_CLOSE;
  195. const ODCommandID  kODCommandCloseDlg        = DOC_CLOSEDLG;
  196. const ODCommandID  kODCommandSaveChanges     = DOC_SAVECH;
  197. const ODCommandID  kODCommandDiscardChanges  = DOC_DISCARD;
  198. const ODCommandID  kODCommandCancel          = DOC_CANCEL;
  199. const ODCommandID  kODCommandExit            = DOC_EXIT;
  200. const ODCommandID  kODCommandUpdate          = DOC_UPDATE;
  201.  
  202. const ODCommandID  kODCommandEditMenu        = IDMS_EDIT;
  203. const ODCommandID  kODCommandUndo            = EDIT_UNDO;
  204. const ODCommandID  kODCommandRedo            = EDIT_REDO;
  205. const ODCommandID  kODCommandCreate          = EDIT_CREATE;
  206. const ODCommandID  kODCommandCut             = EDIT_CUT;
  207. const ODCommandID  kODCommandCopy            = EDIT_COPY;
  208. const ODCommandID  kODCommandPaste           = EDIT_PASTE;
  209. const ODCommandID  kODCommandPasteAs         = EDIT_PASTEAS;
  210. const ODCommandID  kODCommandLinksMenu       = EDIT_LINK_MENU;
  211. const ODCommandID  kODCommandPasteLink       = EDIT_PASTELINK;
  212. const ODCommandID  kODCommandBreakLink       = EDIT_BREAKLINK;
  213. const ODCommandID  kODCommandLinkInfo        = EDIT_LINKINFO;
  214. const ODCommandID  kODCommandDelete          = EDIT_DELETE;
  215. const ODCommandID  kODCommandSelectAll       = EDIT_SELECTALL;
  216. const ODCommandID  kODCommandDeselectAll     = EDIT_DESELECTALL;
  217. const ODCommandID  kODCommandOpen            = EDIT_OPENSEL;
  218. const ODCommandID  kODCommandPartInfo        = EDIT_SELPROPERTIES;
  219. const ODCommandID  kODCommandInsert          = EDIT_INSERT;
  220.  
  221. const ODCommandID  kODCommandViewMenu        = IDMS_VIEW;
  222. const ODCommandID  kODCommandViewOpenAs      = VIEW_OPENAS;
  223. const ODCommandID  kODCommandViewOAIcon      = VIEW_OAICON;
  224. const ODCommandID  kODCommandViewOATree      = VIEW_OATREE;
  225. const ODCommandID  kODCommandViewOADetails   = VIEW_OADETAILS;
  226. const ODCommandID  kODCommandViewOAWindow    = VIEW_OAWINDOW;
  227. const ODCommandID  kODCommandViewProperties  = VIEW_PROPERTIES;
  228. const ODCommandID  kODCommandViewShowAs      = VIEW_SHOWAS;
  229. const ODCommandID  kODCommandViewSmallIcon   = VIEW_SASMALLICON;
  230. const ODCommandID  kODCommandViewLargeIcon   = VIEW_SALARGEICON;
  231. const ODCommandID  kODCommandViewThumbNail   = VIEW_SATHUMBNAIL;
  232. const ODCommandID  kODCommandViewFrame       = VIEW_SAFRAME;
  233. const ODCommandID  kODCommandViewAsWin       = VIEW_VIEWINWINDOW;
  234.  
  235. const ODCommandID  kODCommandHelpMenu        = IDMS_HELP;
  236. const ODCommandID  kODCommandHelpIndex       = HELP_INDEX_OD;
  237. const ODCommandID  kODCommandHelpGeneral     = HELP_GENERAL;
  238. const ODCommandID  kODCommandHelpUsing       = HELP_USING;
  239. const ODCommandID  kODCommandHelpInfo        = HELP_PRODUCTINFO;
  240.  
  241. const ODCommandID  kODCommandBasePopup       = ID_BASEPOPUP;
  242. #endif
  243.  
  244. #if defined(__SOMIDL__) && defined(EMIT_GLOBAL_CONSTANTS)
  245. #pragma somemittypes off
  246. #endif
  247.  
  248. module OpenDoc_Commands
  249. {
  250.         const string OpenDoc_Commands_Version = "1.0.";
  251. };
  252.  
  253. #endif  //# _CMDDEFS_
  254.