home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / APPSHELL.XH < prev    next >
Text File  |  1997-02-28  |  49KB  |  1,575 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: F:\build\os2\ship\include\AppShell.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.29.1.17
  7.  *     SOM Emitter emitxh: 2.47
  8.  */
  9.  
  10. #ifndef SOM_ApplicationShell_xh
  11. #define SOM_ApplicationShell_xh
  12.  
  13. class ApplicationShell;
  14.  
  15. #define ApplicationShell_MajorVersion 1
  16. #define ApplicationShell_MinorVersion 0
  17.  
  18. /* C++ SOM defs */
  19. #include <somcls.xh>
  20. #include <somcm.xh>
  21.  
  22. /* C++ parent defs */
  23. #ifndef SOM_OpenDocShell_xh
  24. #include <ODShell.xh>
  25. #endif
  26.  
  27. #ifndef ApplicationShell_API
  28. #define ApplicationShell_API
  29. /*
  30.  * -- The Class API
  31.  */
  32.  
  33. /*
  34.  * Start of bindings for IDL types
  35.  */
  36.  
  37. class SOMClass;
  38. class SOMObject;
  39. class ODFrame;
  40. class ODFacet;
  41. class ODPlatformCanvas;
  42. class OpenDocShell;
  43. class ODSession;
  44. class ODWindowState;
  45. class ODWindow;
  46. class ODDispatcher;
  47. class DocumentManager;
  48. class somf_TPrimitiveLinkedList;
  49. class somf_TPrimitiveLinkedListIterator;
  50. class ODDraft;
  51. class ApplicationShell;
  52.  
  53. /*
  54.  * End of bindings for IDL types.
  55.  */
  56.  
  57. /* A procedure to create the ApplicationShell Class */
  58. SOMEXTERN SOMClass * SOMLINK ApplicationShellNewClass(
  59.         integer4 majorVersion,
  60.         integer4 minorVersion);
  61.  
  62. /* The API to the ApplicationShell class object, and the methods it introduces. */
  63. SOMEXTERN struct ApplicationShellClassDataStructure {
  64.     SOMClass *classObject;
  65.     somMToken Go;
  66.     somMToken ProcessArgs;
  67.     somMToken OpenDocument;
  68.     somMToken CreateMenuBar;
  69.     somMToken InitWindowSystem;
  70.     somMToken Exec;
  71.     somMToken MainLoop;
  72.     somMToken DocumentNew;
  73.     somMToken DocumentOpen;
  74.     somMToken DocumentSave;
  75.     somMToken DocumentSaveAs;
  76.     somMToken DocumentRevert;
  77.     somMToken DocumentDraftCreate;
  78.     somMToken DocumentDraftHistory;
  79.     somMToken DocumentInfo;
  80.     somMToken DocumentPageSetup;
  81.     somMToken DocumentPrint;
  82.     somMToken DocumentClose;
  83.     somMToken DocumentAbout;
  84.     somMToken UpdateUndoMenus;
  85.     somMToken SendEventToRootPart;
  86.     somMToken CloseCleanup;
  87.     somMToken SetExecString;
  88.     somMToken GetExecString;
  89.     somMToken IsValidFileName;
  90.     somMToken HandleMenuEvent;
  91.     somMToken HandleCloseEvent;
  92.     somMToken HandleHelpEvent;
  93.     somMToken AdjustMenu;
  94.     somMToken GetEventType;
  95.     somMToken GetEventSubType;
  96.     somMToken GetEventWindow;
  97. } SOMDLINK ApplicationShellClassData;
  98. #define _ApplicationShell ApplicationShellClassData.classObject
  99.  
  100. /* The API to parentMtabs for ApplicationShell, and the instance data it introduces. */
  101. SOMEXTERN struct ApplicationShellCClassDataStructure {
  102.     somMethodTabs parentMtab;
  103.     somDToken              instanceDataToken;
  104. } SOMDLINK ApplicationShellCClassData;
  105.  
  106. /*
  107.  * -- Typedefs for ApplicationShell Method Procedures
  108.  */
  109. SOMEXTERN {
  110. typedef ODSLong   SOMLINK somTP_ApplicationShell_Go(ApplicationShell *somSelf, Environment *ev, 
  111.         long argc, 
  112.         char** argv);
  113. typedef somTP_ApplicationShell_Go *somTD_ApplicationShell_Go;
  114. typedef void   SOMLINK somTP_ApplicationShell_ProcessArgs(ApplicationShell *somSelf, Environment *ev, 
  115.         long argc, 
  116.         char** argv, 
  117.         char* fileName, 
  118.         char* partKind, 
  119.         ODUShort* actionFlag);
  120. typedef somTP_ApplicationShell_ProcessArgs *somTD_ApplicationShell_ProcessArgs;
  121. typedef ODBoolean   SOMLINK somTP_ApplicationShell_OpenDocument(ApplicationShell *somSelf, Environment *ev, 
  122.         DocumentManager* docMgr, 
  123.         char* fileName, 
  124.         char* partKind, 
  125.         ODUShort actionFlag);
  126. typedef somTP_ApplicationShell_OpenDocument *somTD_ApplicationShell_OpenDocument;
  127. typedef void   SOMLINK somTP_ApplicationShell_CreateMenuBar(ApplicationShell *somSelf, Environment *ev);
  128. typedef somTP_ApplicationShell_CreateMenuBar *somTD_ApplicationShell_CreateMenuBar;
  129. typedef void   SOMLINK somTP_ApplicationShell_InitWindowSystem(ApplicationShell *somSelf, Environment *ev);
  130. typedef somTP_ApplicationShell_InitWindowSystem *somTD_ApplicationShell_InitWindowSystem;
  131. typedef void   SOMLINK somTP_ApplicationShell_Exec(ApplicationShell *somSelf, Environment *ev, 
  132.         char* str);
  133. typedef somTP_ApplicationShell_Exec *somTD_ApplicationShell_Exec;
  134. typedef ODSLong   SOMLINK somTP_ApplicationShell_MainLoop(ApplicationShell *somSelf, Environment *ev);
  135. typedef somTP_ApplicationShell_MainLoop *somTD_ApplicationShell_MainLoop;
  136. typedef void   SOMLINK somTP_ApplicationShell_DocumentNew(ApplicationShell *somSelf, Environment *ev);
  137. typedef somTP_ApplicationShell_DocumentNew *somTD_ApplicationShell_DocumentNew;
  138. typedef void   SOMLINK somTP_ApplicationShell_DocumentOpen(ApplicationShell *somSelf, Environment *ev);
  139. typedef somTP_ApplicationShell_DocumentOpen *somTD_ApplicationShell_DocumentOpen;
  140. typedef void   SOMLINK somTP_ApplicationShell_DocumentSave(ApplicationShell *somSelf, Environment *ev);
  141. typedef somTP_ApplicationShell_DocumentSave *somTD_ApplicationShell_DocumentSave;
  142. typedef void   SOMLINK somTP_ApplicationShell_DocumentSaveAs(ApplicationShell *somSelf, Environment *ev);
  143. typedef somTP_ApplicationShell_DocumentSaveAs *somTD_ApplicationShell_DocumentSaveAs;
  144. typedef void   SOMLINK somTP_ApplicationShell_DocumentRevert(ApplicationShell *somSelf, Environment *ev);
  145. typedef somTP_ApplicationShell_DocumentRevert *somTD_ApplicationShell_DocumentRevert;
  146. typedef void   SOMLINK somTP_ApplicationShell_DocumentDraftCreate(ApplicationShell *somSelf, Environment *ev);
  147. typedef somTP_ApplicationShell_DocumentDraftCreate *somTD_ApplicationShell_DocumentDraftCreate;
  148. typedef void   SOMLINK somTP_ApplicationShell_DocumentDraftHistory(ApplicationShell *somSelf, Environment *ev);
  149. typedef somTP_ApplicationShell_DocumentDraftHistory *somTD_ApplicationShell_DocumentDraftHistory;
  150. typedef void   SOMLINK somTP_ApplicationShell_DocumentInfo(ApplicationShell *somSelf, Environment *ev);
  151. typedef somTP_ApplicationShell_DocumentInfo *somTD_ApplicationShell_DocumentInfo;
  152. typedef void   SOMLINK somTP_ApplicationShell_DocumentPageSetup(ApplicationShell *somSelf, Environment *ev, 
  153.         ODEventData* event);
  154. typedef somTP_ApplicationShell_DocumentPageSetup *somTD_ApplicationShell_DocumentPageSetup;
  155. typedef void   SOMLINK somTP_ApplicationShell_DocumentPrint(ApplicationShell *somSelf, Environment *ev, 
  156.         ODEventData* event);
  157. typedef somTP_ApplicationShell_DocumentPrint *somTD_ApplicationShell_DocumentPrint;
  158. typedef void   SOMLINK somTP_ApplicationShell_DocumentClose(ApplicationShell *somSelf, Environment *ev);
  159. typedef somTP_ApplicationShell_DocumentClose *somTD_ApplicationShell_DocumentClose;
  160. typedef void   SOMLINK somTP_ApplicationShell_DocumentAbout(ApplicationShell *somSelf, Environment *ev);
  161. typedef somTP_ApplicationShell_DocumentAbout *somTD_ApplicationShell_DocumentAbout;
  162. typedef void   SOMLINK somTP_ApplicationShell_UpdateUndoMenus(ApplicationShell *somSelf, Environment *ev);
  163. typedef somTP_ApplicationShell_UpdateUndoMenus *somTD_ApplicationShell_UpdateUndoMenus;
  164. typedef void   SOMLINK somTP_ApplicationShell_SendEventToRootPart(ApplicationShell *somSelf, Environment *ev, 
  165.         ODEventData* event);
  166. typedef somTP_ApplicationShell_SendEventToRootPart *somTD_ApplicationShell_SendEventToRootPart;
  167. typedef void   SOMLINK somTP_ApplicationShell_CloseCleanup(ApplicationShell *somSelf, Environment *ev);
  168. typedef somTP_ApplicationShell_CloseCleanup *somTD_ApplicationShell_CloseCleanup;
  169. typedef void   SOMLINK somTP_ApplicationShell_SetExecString(ApplicationShell *somSelf, Environment *ev, 
  170.         char* execString);
  171. typedef somTP_ApplicationShell_SetExecString *somTD_ApplicationShell_SetExecString;
  172. typedef char*   SOMLINK somTP_ApplicationShell_GetExecString(ApplicationShell *somSelf, Environment *ev);
  173. typedef somTP_ApplicationShell_GetExecString *somTD_ApplicationShell_GetExecString;
  174. typedef ODBoolean   SOMLINK somTP_ApplicationShell_IsValidFileName(ApplicationShell *somSelf, Environment *ev, 
  175.         char* docName);
  176. typedef somTP_ApplicationShell_IsValidFileName *somTD_ApplicationShell_IsValidFileName;
  177. typedef ODBoolean   SOMLINK somTP_ApplicationShell_HandleMenuEvent(ApplicationShell *somSelf, Environment *ev, 
  178.         ODEventData* event);
  179. typedef somTP_ApplicationShell_HandleMenuEvent *somTD_ApplicationShell_HandleMenuEvent;
  180. typedef ODBoolean   SOMLINK somTP_ApplicationShell_HandleCloseEvent(ApplicationShell *somSelf, Environment *ev, 
  181.         ODEventData* event);
  182. typedef somTP_ApplicationShell_HandleCloseEvent *somTD_ApplicationShell_HandleCloseEvent;
  183. typedef ODBoolean   SOMLINK somTP_ApplicationShell_HandleHelpEvent(ApplicationShell *somSelf, Environment *ev, 
  184.         ODEventData* event);
  185. typedef somTP_ApplicationShell_HandleHelpEvent *somTD_ApplicationShell_HandleHelpEvent;
  186. typedef void   SOMLINK somTP_ApplicationShell_AdjustMenu(ApplicationShell *somSelf, Environment *ev);
  187. typedef somTP_ApplicationShell_AdjustMenu *somTD_ApplicationShell_AdjustMenu;
  188. typedef ODULong   SOMLINK somTP_ApplicationShell_GetEventType(ApplicationShell *somSelf, Environment *ev, 
  189.         ODEventData* event);
  190. typedef somTP_ApplicationShell_GetEventType *somTD_ApplicationShell_GetEventType;
  191. typedef ODULong   SOMLINK somTP_ApplicationShell_GetEventSubType(ApplicationShell *somSelf, Environment *ev, 
  192.         ODEventData* event);
  193. typedef somTP_ApplicationShell_GetEventSubType *somTD_ApplicationShell_GetEventSubType;
  194. typedef ODPlatformWindow   SOMLINK somTP_ApplicationShell_GetEventWindow(ApplicationShell *somSelf, Environment *ev, 
  195.         ODEventData* event);
  196. typedef somTP_ApplicationShell_GetEventWindow *somTD_ApplicationShell_GetEventWindow;
  197.  
  198. /*
  199.  * -- Typedefs for Reintroduced Wrapper Methods
  200.  */
  201. typedef void   SOMLINK somTP_ApplicationShell_InitOpenDocShell(ApplicationShell *somSelf, Environment *ev);
  202. typedef somTP_ApplicationShell_InitOpenDocShell *somTD_ApplicationShell_InitOpenDocShell;
  203. typedef ODBoolean   SOMLINK somTP_ApplicationShell_DispatchEvent(ApplicationShell *somSelf, Environment *ev, 
  204.         ODEventData* event);
  205. typedef somTP_ApplicationShell_DispatchEvent *somTD_ApplicationShell_DispatchEvent;
  206. typedef void   SOMLINK somTP_ApplicationShell_Terminate(ApplicationShell *somSelf, Environment *ev);
  207. typedef somTP_ApplicationShell_Terminate *somTD_ApplicationShell_Terminate;
  208. typedef DocumentManager*   SOMLINK somTP_ApplicationShell_CreateDocumentManager(ApplicationShell *somSelf, Environment *ev);
  209. typedef somTP_ApplicationShell_CreateDocumentManager *somTD_ApplicationShell_CreateDocumentManager;
  210. typedef void   SOMLINK somTP_ApplicationShell_DeleteDocumentManager(ApplicationShell *somSelf, Environment *ev, 
  211.         DocumentManager* docMgr);
  212. typedef somTP_ApplicationShell_DeleteDocumentManager *somTD_ApplicationShell_DeleteDocumentManager;
  213. typedef void   SOMLINK somTP_ApplicationShell_UpdateActiveDocumentManager(ApplicationShell *somSelf, Environment *ev, 
  214.         ODWindow* odWindow);
  215. typedef somTP_ApplicationShell_UpdateActiveDocumentManager *somTD_ApplicationShell_UpdateActiveDocumentManager;
  216. typedef DocumentManager*   SOMLINK somTP_ApplicationShell_GetActiveDocumentManager(ApplicationShell *somSelf, Environment *ev);
  217. typedef somTP_ApplicationShell_GetActiveDocumentManager *somTD_ApplicationShell_GetActiveDocumentManager;
  218. typedef void   SOMLINK somTP_ApplicationShell_SetActiveDocumentManager(ApplicationShell *somSelf, Environment *ev, 
  219.         DocumentManager* docMgr);
  220. typedef somTP_ApplicationShell_SetActiveDocumentManager *somTD_ApplicationShell_SetActiveDocumentManager;
  221. typedef DocumentManager*   SOMLINK somTP_ApplicationShell_GetDocumentManagerOfDraft(ApplicationShell *somSelf, Environment *ev, 
  222.         ODDraft* draft);
  223. typedef somTP_ApplicationShell_GetDocumentManagerOfDraft *somTD_ApplicationShell_GetDocumentManagerOfDraft;
  224. typedef somf_TPrimitiveLinkedListIterator*   SOMLINK somTP_ApplicationShell_CreateDocumentManagerIterator(ApplicationShell *somSelf, Environment *ev);
  225. typedef somTP_ApplicationShell_CreateDocumentManagerIterator *somTD_ApplicationShell_CreateDocumentManagerIterator;
  226. typedef void   SOMLINK somTP_ApplicationShell_DeleteDocumentManagerIterator(ApplicationShell *somSelf, Environment *ev, 
  227.         somf_TPrimitiveLinkedListIterator* docMgrIter);
  228. typedef somTP_ApplicationShell_DeleteDocumentManagerIterator *somTD_ApplicationShell_DeleteDocumentManagerIterator;
  229. typedef ODSession*   SOMLINK somTP_ApplicationShell_GetSession(ApplicationShell *somSelf, Environment *ev);
  230. typedef somTP_ApplicationShell_GetSession *somTD_ApplicationShell_GetSession;
  231. typedef ODDispatcher*   SOMLINK somTP_ApplicationShell_GetDispatcher(ApplicationShell *somSelf, Environment *ev);
  232. typedef somTP_ApplicationShell_GetDispatcher *somTD_ApplicationShell_GetDispatcher;
  233. typedef ODWindowState*   SOMLINK somTP_ApplicationShell_GetWindowState(ApplicationShell *somSelf, Environment *ev);
  234. typedef somTP_ApplicationShell_GetWindowState *somTD_ApplicationShell_GetWindowState;
  235. typedef void   SOMLINK somTP_ApplicationShell_SubClassResponsibility(ApplicationShell *somSelf, Environment *ev, 
  236.         char* methodName);
  237. typedef somTP_ApplicationShell_SubClassResponsibility *somTD_ApplicationShell_SubClassResponsibility;
  238. typedef WindowSystemData*   SOMLINK somTP_ApplicationShell_GetWindowSystemData(ApplicationShell *somSelf, Environment *ev);
  239. typedef somTP_ApplicationShell_GetWindowSystemData *somTD_ApplicationShell_GetWindowSystemData;
  240. typedef void   SOMLINK somTP_ApplicationShell_SetWindowSystemData(ApplicationShell *somSelf, Environment *ev, 
  241.         WindowSystemData* windowSystemData);
  242. typedef somTP_ApplicationShell_SetWindowSystemData *somTD_ApplicationShell_SetWindowSystemData;
  243. typedef long   SOMLINK somTP_ApplicationShell_GetArgc(ApplicationShell *somSelf, Environment *ev);
  244. typedef somTP_ApplicationShell_GetArgc *somTD_ApplicationShell_GetArgc;
  245. typedef void   SOMLINK somTP_ApplicationShell_SetArgc(ApplicationShell *somSelf, Environment *ev, 
  246.         long argc);
  247. typedef somTP_ApplicationShell_SetArgc *somTD_ApplicationShell_SetArgc;
  248. typedef char**   SOMLINK somTP_ApplicationShell_GetArgv(ApplicationShell *somSelf, Environment *ev);
  249. typedef somTP_ApplicationShell_GetArgv *somTD_ApplicationShell_GetArgv;
  250. typedef void   SOMLINK somTP_ApplicationShell_SetArgv(ApplicationShell *somSelf, Environment *ev, 
  251.         char** argv);
  252. typedef somTP_ApplicationShell_SetArgv *somTD_ApplicationShell_SetArgv;
  253. typedef void   SOMLINK somTP_ApplicationShell_somUninit(ApplicationShell *somSelf);
  254. typedef somTP_ApplicationShell_somUninit *somTD_ApplicationShell_somUninit;
  255. typedef void   SOMLINK somTP_ApplicationShell_somDefaultInit(ApplicationShell *somSelf, 
  256.         som3InitCtrl* ctrl);
  257. typedef somTP_ApplicationShell_somDefaultInit *somTD_ApplicationShell_somDefaultInit;
  258. typedef void   SOMLINK somTP_ApplicationShell_somDestruct(ApplicationShell *somSelf, 
  259.         octet doFree, 
  260.         som3DestructCtrl* ctrl);
  261. typedef somTP_ApplicationShell_somDestruct *somTD_ApplicationShell_somDestruct;
  262. typedef void   SOMLINK somTP_ApplicationShell_somDefaultCopyInit(ApplicationShell *somSelf, 
  263.         som3InitCtrl* ctrl, 
  264.         SOMObject* fromObj);
  265. typedef somTP_ApplicationShell_somDefaultCopyInit *somTD_ApplicationShell_somDefaultCopyInit;
  266. typedef ApplicationShell*   SOMLINK somTP_ApplicationShell_somDefaultAssign(ApplicationShell *somSelf, 
  267.         som3AssignCtrl* ctrl, 
  268.         SOMObject* fromObj);
  269. typedef somTP_ApplicationShell_somDefaultAssign *somTD_ApplicationShell_somDefaultAssign;
  270. typedef void   SOMLINK somTP_ApplicationShell_somDefaultConstCopyInit(ApplicationShell *somSelf, 
  271.         som3InitCtrl* ctrl, 
  272.         SOMObject* fromObj);
  273. typedef somTP_ApplicationShell_somDefaultConstCopyInit *somTD_ApplicationShell_somDefaultConstCopyInit;
  274. typedef void   SOMLINK somTP_ApplicationShell_somDefaultVCopyInit(ApplicationShell *somSelf, 
  275.         som3InitCtrl* ctrl, 
  276.         SOMObject* fromObj);
  277. typedef somTP_ApplicationShell_somDefaultVCopyInit *somTD_ApplicationShell_somDefaultVCopyInit;
  278. typedef void   SOMLINK somTP_ApplicationShell_somDefaultConstVCopyInit(ApplicationShell *somSelf, 
  279.         som3InitCtrl* ctrl, 
  280.         SOMObject* fromObj);
  281. typedef somTP_ApplicationShell_somDefaultConstVCopyInit *somTD_ApplicationShell_somDefaultConstVCopyInit;
  282. typedef ApplicationShell*   SOMLINK somTP_ApplicationShell_somDefaultConstAssign(ApplicationShell *somSelf, 
  283.         som3AssignCtrl* ctrl, 
  284.         SOMObject* fromObj);
  285. typedef somTP_ApplicationShell_somDefaultConstAssign *somTD_ApplicationShell_somDefaultConstAssign;
  286. typedef ApplicationShell*   SOMLINK somTP_ApplicationShell_somDefaultVAssign(ApplicationShell *somSelf, 
  287.         som3AssignCtrl* ctrl, 
  288.         SOMObject* fromObj);
  289. typedef somTP_ApplicationShell_somDefaultVAssign *somTD_ApplicationShell_somDefaultVAssign;
  290. typedef ApplicationShell*   SOMLINK somTP_ApplicationShell_somDefaultConstVAssign(ApplicationShell *somSelf, 
  291.         som3AssignCtrl* ctrl, 
  292.         SOMObject* fromObj);
  293. typedef somTP_ApplicationShell_somDefaultConstVAssign *somTD_ApplicationShell_somDefaultConstVAssign;
  294. typedef void   SOMLINK somTP_ApplicationShell_somInit(ApplicationShell *somSelf);
  295. typedef somTP_ApplicationShell_somInit *somTD_ApplicationShell_somInit;
  296. typedef void   SOMLINK somTP_ApplicationShell_somFree(ApplicationShell *somSelf);
  297. typedef somTP_ApplicationShell_somFree *somTD_ApplicationShell_somFree;
  298. typedef SOMClass*   SOMLINK somTP_ApplicationShell_somGetClass(ApplicationShell *somSelf);
  299. typedef somTP_ApplicationShell_somGetClass *somTD_ApplicationShell_somGetClass;
  300. typedef string   SOMLINK somTP_ApplicationShell_somGetClassName(ApplicationShell *somSelf);
  301. typedef somTP_ApplicationShell_somGetClassName *somTD_ApplicationShell_somGetClassName;
  302. typedef long   SOMLINK somTP_ApplicationShell_somGetSize(ApplicationShell *somSelf);
  303. typedef somTP_ApplicationShell_somGetSize *somTD_ApplicationShell_somGetSize;
  304. typedef boolean   SOMLINK somTP_ApplicationShell_somIsA(ApplicationShell *somSelf, 
  305.         SOMClass* aClassObj);
  306. typedef somTP_ApplicationShell_somIsA *somTD_ApplicationShell_somIsA;
  307. typedef boolean   SOMLINK somTP_ApplicationShell_somIsInstanceOf(ApplicationShell *somSelf, 
  308.         SOMClass* aClassObj);
  309. typedef somTP_ApplicationShell_somIsInstanceOf *somTD_ApplicationShell_somIsInstanceOf;
  310. typedef boolean   SOMLINK somTP_ApplicationShell_somRespondsTo(ApplicationShell *somSelf, 
  311.         somId mId);
  312. typedef somTP_ApplicationShell_somRespondsTo *somTD_ApplicationShell_somRespondsTo;
  313. typedef boolean   SOMLINK somTP_ApplicationShell_somDispatch(ApplicationShell *somSelf, 
  314.         somToken* retValue, 
  315.         somId methodId, 
  316.         va_list ap);
  317. typedef somTP_ApplicationShell_somDispatch *somTD_ApplicationShell_somDispatch;
  318. typedef boolean   SOMLINK somTP_ApplicationShell_somClassDispatch(ApplicationShell *somSelf, 
  319.         SOMClass* clsObj, 
  320.         somToken* retValue, 
  321.         somId methodId, 
  322.         va_list ap);
  323. typedef somTP_ApplicationShell_somClassDispatch *somTD_ApplicationShell_somClassDispatch;
  324. typedef boolean   SOMLINK somTP_ApplicationShell_somCastObj(ApplicationShell *somSelf, 
  325.         SOMClass* cls);
  326. typedef somTP_ApplicationShell_somCastObj *somTD_ApplicationShell_somCastObj;
  327. typedef boolean   SOMLINK somTP_ApplicationShell_somResetObj(ApplicationShell *somSelf);
  328. typedef somTP_ApplicationShell_somResetObj *somTD_ApplicationShell_somResetObj;
  329. typedef void   SOMLINK somTP_ApplicationShell_somDispatchV(ApplicationShell *somSelf, 
  330.         somId methodId, 
  331.         somId descriptor, 
  332.         va_list ap);
  333. typedef somTP_ApplicationShell_somDispatchV *somTD_ApplicationShell_somDispatchV;
  334. typedef long   SOMLINK somTP_ApplicationShell_somDispatchL(ApplicationShell *somSelf, 
  335.         somId methodId, 
  336.         somId descriptor, 
  337.         va_list ap);
  338. typedef somTP_ApplicationShell_somDispatchL *somTD_ApplicationShell_somDispatchL;
  339. typedef void*   SOMLINK somTP_ApplicationShell_somDispatchA(ApplicationShell *somSelf, 
  340.         somId methodId, 
  341.         somId descriptor, 
  342.         va_list ap);
  343. typedef somTP_ApplicationShell_somDispatchA *somTD_ApplicationShell_somDispatchA;
  344. typedef double   SOMLINK somTP_ApplicationShell_somDispatchD(ApplicationShell *somSelf, 
  345.         somId methodId, 
  346.         somId descriptor, 
  347.         va_list ap);
  348. typedef somTP_ApplicationShell_somDispatchD *somTD_ApplicationShell_somDispatchD;
  349. typedef SOMObject*   SOMLINK somTP_ApplicationShell_somPrintSelf(ApplicationShell *somSelf);
  350. typedef somTP_ApplicationShell_somPrintSelf *somTD_ApplicationShell_somPrintSelf;
  351. typedef void   SOMLINK somTP_ApplicationShell_somDumpSelf(ApplicationShell *somSelf, 
  352.         long level);
  353. typedef somTP_ApplicationShell_somDumpSelf *somTD_ApplicationShell_somDumpSelf;
  354. typedef void   SOMLINK somTP_ApplicationShell_somDumpSelfInt(ApplicationShell *somSelf, 
  355.         long level);
  356. typedef somTP_ApplicationShell_somDumpSelfInt *somTD_ApplicationShell_somDumpSelfInt;
  357. }
  358.  
  359. #endif /* ApplicationShell_API */
  360.  
  361.  
  362. /*
  363.  * -- This emitter treats Method Tokens as Thunks by default.
  364.  * -- Use the sc modifier "nothunks" to change this default
  365.  */
  366. #undef somresolve_
  367. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  368.  
  369. /*
  370.  * -- The C++ Wrapper Class for ApplicationShell
  371.  */
  372. class ApplicationShell : public OpenDocShell
  373. {
  374. public:
  375.  
  376. // ApplicationShell::new creates the class object if necessary, and then uses somNewNoInit
  377. // to allocate memory and create the object. Initialization is in ctors.
  378. void *operator new(size_t)
  379. {
  380.    if (!_ApplicationShell) ApplicationShellNewClass(ApplicationShell_MajorVersion,ApplicationShell_MinorVersion);
  381.    return (void*)
  382.       SOM_Resolve(_ApplicationShell,SOMClass,somNewNoInit)
  383.          ((SOMClass *)((void*)_ApplicationShell));
  384. }
  385.  
  386. // ApplicationShell::delete uses somDestruct.
  387. void operator delete(void * obj)
  388. {
  389.    if (obj && *(void**)obj) {
  390.       SOM_Resolve(obj,SOMObject,somFree)
  391.          ((SOMObject*)obj);
  392.    }
  393. }
  394.  
  395. ApplicationShell& operator=(ApplicationShell& fromObj)
  396. {
  397.    this->somDefaultAssign(0,(SOMObject*)((void*)&fromObj));
  398.    return *this;
  399. }
  400.  
  401. ApplicationShell()
  402. {
  403.    if (*(void**)this != 
  404.        ((somParentMtabStructPtr)
  405.         (ApplicationShellCClassData.parentMtab))->mtab)
  406.       return;
  407.    ((SOMObject*)((void*)this))->somDefaultInit(0);
  408. }
  409.  
  410. ApplicationShell(ApplicationShell* fromObj)
  411. {
  412.    if (*(void**)this != 
  413.        ((somParentMtabStructPtr)
  414.         (ApplicationShellCClassData.parentMtab))->mtab)
  415.       return;
  416.    ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
  417. }
  418.  
  419. #ifdef __IBMCPP__
  420. #pragma info(nocnv,nopar)
  421. #endif
  422. ApplicationShell(const ApplicationShell* fromObj)
  423. {
  424.    if (*(void**)this != 
  425.        ((somParentMtabStructPtr)
  426.         (ApplicationShellCClassData.parentMtab))->mtab)
  427.       return;
  428.    ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
  429. }
  430. #ifdef __IBMCPP__
  431. #pragma info(restore)
  432. #endif
  433.  
  434.  
  435. /* method: Go */
  436. ODSLong   Go(Environment *ev, 
  437.         long argc, 
  438.         char** argv)
  439. {
  440. #ifdef SOMCHKEXCEPT
  441.    ODSLong __somResult = 
  442.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,Go)
  443.     (this, ev,argc,argv);
  444.    if ( ev->_major != NO_EXCEPTION )
  445.       SOMCHKEXCEPT;
  446.    return __somResult;
  447. #else
  448.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,Go)
  449.     (this, ev,argc,argv);
  450. #endif
  451. }
  452.  
  453.  
  454. /* method: ProcessArgs */
  455. void   ProcessArgs(Environment *ev, 
  456.         long argc, 
  457.         char** argv, 
  458.         char* fileName, 
  459.         char* partKind, 
  460.         ODUShort* actionFlag)
  461. {
  462.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,ProcessArgs)
  463.     (this, ev,argc,argv,fileName,partKind,actionFlag);
  464. #ifdef SOMCHKEXCEPT
  465.    if ( ev->_major != NO_EXCEPTION )
  466.       SOMCHKEXCEPT;
  467. #endif
  468. }
  469.  
  470.  
  471. /* method: OpenDocument */
  472. ODBoolean   OpenDocument(Environment *ev, 
  473.         DocumentManager* docMgr, 
  474.         char* fileName, 
  475.         char* partKind, 
  476.         ODUShort actionFlag)
  477. {
  478. #ifdef SOMCHKEXCEPT
  479.    ODBoolean __somResult = 
  480.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,OpenDocument)
  481.     (this, ev,docMgr,fileName,partKind,actionFlag);
  482.    if ( ev->_major != NO_EXCEPTION )
  483.       SOMCHKEXCEPT;
  484.    return __somResult;
  485. #else
  486.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,OpenDocument)
  487.     (this, ev,docMgr,fileName,partKind,actionFlag);
  488. #endif
  489. }
  490.  
  491.  
  492. /* method: CreateMenuBar */
  493. void   CreateMenuBar(Environment *ev)
  494. {
  495.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,CreateMenuBar)
  496.     (this, ev);
  497. #ifdef SOMCHKEXCEPT
  498.    if ( ev->_major != NO_EXCEPTION )
  499.       SOMCHKEXCEPT;
  500. #endif
  501. }
  502.  
  503.  
  504. /* method: InitWindowSystem */
  505. void   InitWindowSystem(Environment *ev)
  506. {
  507.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,InitWindowSystem)
  508.     (this, ev);
  509. #ifdef SOMCHKEXCEPT
  510.    if ( ev->_major != NO_EXCEPTION )
  511.       SOMCHKEXCEPT;
  512. #endif
  513. }
  514.  
  515.  
  516. /* method: Exec */
  517. void   Exec(Environment *ev, 
  518.         char* str)
  519. {
  520.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,Exec)
  521.     (this, ev,str);
  522. #ifdef SOMCHKEXCEPT
  523.    if ( ev->_major != NO_EXCEPTION )
  524.       SOMCHKEXCEPT;
  525. #endif
  526. }
  527.  
  528.  
  529. /* method: MainLoop */
  530. ODSLong   MainLoop(Environment *ev)
  531. {
  532. #ifdef SOMCHKEXCEPT
  533.    ODSLong __somResult = 
  534.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,MainLoop)
  535.     (this, ev);
  536.    if ( ev->_major != NO_EXCEPTION )
  537.       SOMCHKEXCEPT;
  538.    return __somResult;
  539. #else
  540.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,MainLoop)
  541.     (this, ev);
  542. #endif
  543. }
  544.  
  545.  
  546. /* method: DocumentNew */
  547. void   DocumentNew(Environment *ev)
  548. {
  549.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentNew)
  550.     (this, ev);
  551. #ifdef SOMCHKEXCEPT
  552.    if ( ev->_major != NO_EXCEPTION )
  553.       SOMCHKEXCEPT;
  554. #endif
  555. }
  556.  
  557.  
  558. /* method: DocumentOpen */
  559. void   DocumentOpen(Environment *ev)
  560. {
  561.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentOpen)
  562.     (this, ev);
  563. #ifdef SOMCHKEXCEPT
  564.    if ( ev->_major != NO_EXCEPTION )
  565.       SOMCHKEXCEPT;
  566. #endif
  567. }
  568.  
  569.  
  570. /* method: DocumentSave */
  571. void   DocumentSave(Environment *ev)
  572. {
  573.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentSave)
  574.     (this, ev);
  575. #ifdef SOMCHKEXCEPT
  576.    if ( ev->_major != NO_EXCEPTION )
  577.       SOMCHKEXCEPT;
  578. #endif
  579. }
  580.  
  581.  
  582. /* method: DocumentSaveAs */
  583. void   DocumentSaveAs(Environment *ev)
  584. {
  585.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentSaveAs)
  586.     (this, ev);
  587. #ifdef SOMCHKEXCEPT
  588.    if ( ev->_major != NO_EXCEPTION )
  589.       SOMCHKEXCEPT;
  590. #endif
  591. }
  592.  
  593.  
  594. /* method: DocumentRevert */
  595. void   DocumentRevert(Environment *ev)
  596. {
  597.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentRevert)
  598.     (this, ev);
  599. #ifdef SOMCHKEXCEPT
  600.    if ( ev->_major != NO_EXCEPTION )
  601.       SOMCHKEXCEPT;
  602. #endif
  603. }
  604.  
  605.  
  606. /* method: DocumentDraftCreate */
  607. void   DocumentDraftCreate(Environment *ev)
  608. {
  609.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentDraftCreate)
  610.     (this, ev);
  611. #ifdef SOMCHKEXCEPT
  612.    if ( ev->_major != NO_EXCEPTION )
  613.       SOMCHKEXCEPT;
  614. #endif
  615. }
  616.  
  617.  
  618. /* method: DocumentDraftHistory */
  619. void   DocumentDraftHistory(Environment *ev)
  620. {
  621.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentDraftHistory)
  622.     (this, ev);
  623. #ifdef SOMCHKEXCEPT
  624.    if ( ev->_major != NO_EXCEPTION )
  625.       SOMCHKEXCEPT;
  626. #endif
  627. }
  628.  
  629.  
  630. /* method: DocumentInfo */
  631. void   DocumentInfo(Environment *ev)
  632. {
  633.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentInfo)
  634.     (this, ev);
  635. #ifdef SOMCHKEXCEPT
  636.    if ( ev->_major != NO_EXCEPTION )
  637.       SOMCHKEXCEPT;
  638. #endif
  639. }
  640.  
  641.  
  642. /* method: DocumentPageSetup */
  643. void   DocumentPageSetup(Environment *ev, 
  644.         ODEventData* event)
  645. {
  646.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentPageSetup)
  647.     (this, ev,event);
  648. #ifdef SOMCHKEXCEPT
  649.    if ( ev->_major != NO_EXCEPTION )
  650.       SOMCHKEXCEPT;
  651. #endif
  652. }
  653.  
  654.  
  655. /* method: DocumentPrint */
  656. void   DocumentPrint(Environment *ev, 
  657.         ODEventData* event)
  658. {
  659.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentPrint)
  660.     (this, ev,event);
  661. #ifdef SOMCHKEXCEPT
  662.    if ( ev->_major != NO_EXCEPTION )
  663.       SOMCHKEXCEPT;
  664. #endif
  665. }
  666.  
  667.  
  668. /* method: DocumentClose */
  669. void   DocumentClose(Environment *ev)
  670. {
  671.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentClose)
  672.     (this, ev);
  673. #ifdef SOMCHKEXCEPT
  674.    if ( ev->_major != NO_EXCEPTION )
  675.       SOMCHKEXCEPT;
  676. #endif
  677. }
  678.  
  679.  
  680. /* method: DocumentAbout */
  681. void   DocumentAbout(Environment *ev)
  682. {
  683.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,DocumentAbout)
  684.     (this, ev);
  685. #ifdef SOMCHKEXCEPT
  686.    if ( ev->_major != NO_EXCEPTION )
  687.       SOMCHKEXCEPT;
  688. #endif
  689. }
  690.  
  691.  
  692. /* method: UpdateUndoMenus */
  693. void   UpdateUndoMenus(Environment *ev)
  694. {
  695.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,UpdateUndoMenus)
  696.     (this, ev);
  697. #ifdef SOMCHKEXCEPT
  698.    if ( ev->_major != NO_EXCEPTION )
  699.       SOMCHKEXCEPT;
  700. #endif
  701. }
  702.  
  703.  
  704. /* method: SendEventToRootPart */
  705. void   SendEventToRootPart(Environment *ev, 
  706.         ODEventData* event)
  707. {
  708.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,SendEventToRootPart)
  709.     (this, ev,event);
  710. #ifdef SOMCHKEXCEPT
  711.    if ( ev->_major != NO_EXCEPTION )
  712.       SOMCHKEXCEPT;
  713. #endif
  714. }
  715.  
  716.  
  717. /* method: CloseCleanup */
  718. void   CloseCleanup(Environment *ev)
  719. {
  720.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,CloseCleanup)
  721.     (this, ev);
  722. #ifdef SOMCHKEXCEPT
  723.    if ( ev->_major != NO_EXCEPTION )
  724.       SOMCHKEXCEPT;
  725. #endif
  726. }
  727.  
  728.  
  729. /* method: SetExecString */
  730. void   SetExecString(Environment *ev, 
  731.         char* execString)
  732. {
  733.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,SetExecString)
  734.     (this, ev,execString);
  735. #ifdef SOMCHKEXCEPT
  736.    if ( ev->_major != NO_EXCEPTION )
  737.       SOMCHKEXCEPT;
  738. #endif
  739. }
  740.  
  741.  
  742. /* method: GetExecString */
  743. char*   GetExecString(Environment *ev)
  744. {
  745. #ifdef SOMCHKEXCEPT
  746.    char* __somResult = 
  747.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,GetExecString)
  748.     (this, ev);
  749.    if ( ev->_major != NO_EXCEPTION )
  750.       SOMCHKEXCEPT;
  751.    return __somResult;
  752. #else
  753.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,GetExecString)
  754.     (this, ev);
  755. #endif
  756. }
  757.  
  758.  
  759. /* method: IsValidFileName */
  760. ODBoolean   IsValidFileName(Environment *ev, 
  761.         char* docName)
  762. {
  763. #ifdef SOMCHKEXCEPT
  764.    ODBoolean __somResult = 
  765.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,IsValidFileName)
  766.     (this, ev,docName);
  767.    if ( ev->_major != NO_EXCEPTION )
  768.       SOMCHKEXCEPT;
  769.    return __somResult;
  770. #else
  771.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,IsValidFileName)
  772.     (this, ev,docName);
  773. #endif
  774. }
  775.  
  776.  
  777. /* method: HandleMenuEvent */
  778. ODBoolean   HandleMenuEvent(Environment *ev, 
  779.         ODEventData* event)
  780. {
  781. #ifdef SOMCHKEXCEPT
  782.    ODBoolean __somResult = 
  783.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,HandleMenuEvent)
  784.     (this, ev,event);
  785.    if ( ev->_major != NO_EXCEPTION )
  786.       SOMCHKEXCEPT;
  787.    return __somResult;
  788. #else
  789.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,HandleMenuEvent)
  790.     (this, ev,event);
  791. #endif
  792. }
  793.  
  794.  
  795. /* method: HandleCloseEvent */
  796. ODBoolean   HandleCloseEvent(Environment *ev, 
  797.         ODEventData* event)
  798. {
  799. #ifdef SOMCHKEXCEPT
  800.    ODBoolean __somResult = 
  801.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,HandleCloseEvent)
  802.     (this, ev,event);
  803.    if ( ev->_major != NO_EXCEPTION )
  804.       SOMCHKEXCEPT;
  805.    return __somResult;
  806. #else
  807.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,HandleCloseEvent)
  808.     (this, ev,event);
  809. #endif
  810. }
  811.  
  812.  
  813. /* method: HandleHelpEvent */
  814. ODBoolean   HandleHelpEvent(Environment *ev, 
  815.         ODEventData* event)
  816. {
  817. #ifdef SOMCHKEXCEPT
  818.    ODBoolean __somResult = 
  819.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,HandleHelpEvent)
  820.     (this, ev,event);
  821.    if ( ev->_major != NO_EXCEPTION )
  822.       SOMCHKEXCEPT;
  823.    return __somResult;
  824. #else
  825.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,HandleHelpEvent)
  826.     (this, ev,event);
  827. #endif
  828. }
  829.  
  830.  
  831. /* method: AdjustMenu */
  832. void   AdjustMenu(Environment *ev)
  833. {
  834.    SOM_ResolveD(this,ApplicationShell,ApplicationShell,AdjustMenu)
  835.     (this, ev);
  836. #ifdef SOMCHKEXCEPT
  837.    if ( ev->_major != NO_EXCEPTION )
  838.       SOMCHKEXCEPT;
  839. #endif
  840. }
  841.  
  842.  
  843. /* method: GetEventType */
  844. ODULong   GetEventType(Environment *ev, 
  845.         ODEventData* event)
  846. {
  847. #ifdef SOMCHKEXCEPT
  848.    ODULong __somResult = 
  849.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,GetEventType)
  850.     (this, ev,event);
  851.    if ( ev->_major != NO_EXCEPTION )
  852.       SOMCHKEXCEPT;
  853.    return __somResult;
  854. #else
  855.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,GetEventType)
  856.     (this, ev,event);
  857. #endif
  858. }
  859.  
  860.  
  861. /* method: GetEventSubType */
  862. ODULong   GetEventSubType(Environment *ev, 
  863.         ODEventData* event)
  864. {
  865. #ifdef SOMCHKEXCEPT
  866.    ODULong __somResult = 
  867.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,GetEventSubType)
  868.     (this, ev,event);
  869.    if ( ev->_major != NO_EXCEPTION )
  870.       SOMCHKEXCEPT;
  871.    return __somResult;
  872. #else
  873.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,GetEventSubType)
  874.     (this, ev,event);
  875. #endif
  876. }
  877.  
  878.  
  879. /* method: GetEventWindow */
  880. ODPlatformWindow   GetEventWindow(Environment *ev, 
  881.         ODEventData* event)
  882. {
  883. #ifdef SOMCHKEXCEPT
  884.    ODPlatformWindow __somResult = 
  885.       SOM_ResolveD(this,ApplicationShell,ApplicationShell,GetEventWindow)
  886.     (this, ev,event);
  887.    if ( ev->_major != NO_EXCEPTION )
  888.       SOMCHKEXCEPT;
  889.    return __somResult;
  890. #else
  891.    return SOM_ResolveD(this,ApplicationShell,ApplicationShell,GetEventWindow)
  892.     (this, ev,event);
  893. #endif
  894. }
  895.  
  896.  
  897. /*
  898.  * Reintroduce inherited methods
  899.  */
  900.  
  901. /* method: InitOpenDocShell */
  902. void   InitOpenDocShell(Environment *ev)
  903. {
  904.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,InitOpenDocShell)
  905.     (this, ev);
  906. #ifdef SOMCHKEXCEPT
  907.    if ( ev->_major != NO_EXCEPTION )
  908.       SOMCHKEXCEPT;
  909. #endif
  910. }
  911.  
  912.  
  913. /* method: DispatchEvent */
  914. ODBoolean   DispatchEvent(Environment *ev, 
  915.         ODEventData* event)
  916. {
  917. #ifdef SOMCHKEXCEPT
  918.    ODBoolean __somResult = 
  919.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,DispatchEvent)
  920.     (this, ev,event);
  921.    if ( ev->_major != NO_EXCEPTION )
  922.       SOMCHKEXCEPT;
  923.    return __somResult;
  924. #else
  925.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,DispatchEvent)
  926.     (this, ev,event);
  927. #endif
  928. }
  929.  
  930.  
  931. /* method: Terminate */
  932. void   Terminate(Environment *ev)
  933. {
  934.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,Terminate)
  935.     (this, ev);
  936. #ifdef SOMCHKEXCEPT
  937.    if ( ev->_major != NO_EXCEPTION )
  938.       SOMCHKEXCEPT;
  939. #endif
  940. }
  941.  
  942.  
  943. /* method: CreateDocumentManager */
  944. DocumentManager*   CreateDocumentManager(Environment *ev)
  945. {
  946. #ifdef SOMCHKEXCEPT
  947.    DocumentManager* __somResult = 
  948.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,CreateDocumentManager)
  949.     (this, ev);
  950.    if ( ev->_major != NO_EXCEPTION )
  951.       SOMCHKEXCEPT;
  952.    return __somResult;
  953. #else
  954.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,CreateDocumentManager)
  955.     (this, ev);
  956. #endif
  957. }
  958.  
  959.  
  960. /* method: DeleteDocumentManager */
  961. void   DeleteDocumentManager(Environment *ev, 
  962.         DocumentManager* docMgr)
  963. {
  964.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,DeleteDocumentManager)
  965.     (this, ev,docMgr);
  966. #ifdef SOMCHKEXCEPT
  967.    if ( ev->_major != NO_EXCEPTION )
  968.       SOMCHKEXCEPT;
  969. #endif
  970. }
  971.  
  972.  
  973. /* method: UpdateActiveDocumentManager */
  974. void   UpdateActiveDocumentManager(Environment *ev, 
  975.         ODWindow* odWindow)
  976. {
  977.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,UpdateActiveDocumentManager)
  978.     (this, ev,odWindow);
  979. #ifdef SOMCHKEXCEPT
  980.    if ( ev->_major != NO_EXCEPTION )
  981.       SOMCHKEXCEPT;
  982. #endif
  983. }
  984.  
  985.  
  986. /* method: GetActiveDocumentManager */
  987. DocumentManager*   GetActiveDocumentManager(Environment *ev)
  988. {
  989. #ifdef SOMCHKEXCEPT
  990.    DocumentManager* __somResult = 
  991.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetActiveDocumentManager)
  992.     (this, ev);
  993.    if ( ev->_major != NO_EXCEPTION )
  994.       SOMCHKEXCEPT;
  995.    return __somResult;
  996. #else
  997.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetActiveDocumentManager)
  998.     (this, ev);
  999. #endif
  1000. }
  1001.  
  1002.  
  1003. /* method: SetActiveDocumentManager */
  1004. void   SetActiveDocumentManager(Environment *ev, 
  1005.         DocumentManager* docMgr)
  1006. {
  1007.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,SetActiveDocumentManager)
  1008.     (this, ev,docMgr);
  1009. #ifdef SOMCHKEXCEPT
  1010.    if ( ev->_major != NO_EXCEPTION )
  1011.       SOMCHKEXCEPT;
  1012. #endif
  1013. }
  1014.  
  1015.  
  1016. /* method: GetDocumentManagerOfDraft */
  1017. DocumentManager*   GetDocumentManagerOfDraft(Environment *ev, 
  1018.         ODDraft* draft)
  1019. {
  1020. #ifdef SOMCHKEXCEPT
  1021.    DocumentManager* __somResult = 
  1022.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetDocumentManagerOfDraft)
  1023.     (this, ev,draft);
  1024.    if ( ev->_major != NO_EXCEPTION )
  1025.       SOMCHKEXCEPT;
  1026.    return __somResult;
  1027. #else
  1028.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetDocumentManagerOfDraft)
  1029.     (this, ev,draft);
  1030. #endif
  1031. }
  1032.  
  1033.  
  1034. /* method: CreateDocumentManagerIterator */
  1035. somf_TPrimitiveLinkedListIterator*   CreateDocumentManagerIterator(Environment *ev)
  1036. {
  1037. #ifdef SOMCHKEXCEPT
  1038.    somf_TPrimitiveLinkedListIterator* __somResult = 
  1039.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,CreateDocumentManagerIterator)
  1040.     (this, ev);
  1041.    if ( ev->_major != NO_EXCEPTION )
  1042.       SOMCHKEXCEPT;
  1043.    return __somResult;
  1044. #else
  1045.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,CreateDocumentManagerIterator)
  1046.     (this, ev);
  1047. #endif
  1048. }
  1049.  
  1050.  
  1051. /* method: DeleteDocumentManagerIterator */
  1052. void   DeleteDocumentManagerIterator(Environment *ev, 
  1053.         somf_TPrimitiveLinkedListIterator* docMgrIter)
  1054. {
  1055.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,DeleteDocumentManagerIterator)
  1056.     (this, ev,docMgrIter);
  1057. #ifdef SOMCHKEXCEPT
  1058.    if ( ev->_major != NO_EXCEPTION )
  1059.       SOMCHKEXCEPT;
  1060. #endif
  1061. }
  1062.  
  1063.  
  1064. /* method: GetSession */
  1065. ODSession*   GetSession(Environment *ev)
  1066. {
  1067. #ifdef SOMCHKEXCEPT
  1068.    ODSession* __somResult = 
  1069.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetSession)
  1070.     (this, ev);
  1071.    if ( ev->_major != NO_EXCEPTION )
  1072.       SOMCHKEXCEPT;
  1073.    return __somResult;
  1074. #else
  1075.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetSession)
  1076.     (this, ev);
  1077. #endif
  1078. }
  1079.  
  1080.  
  1081. /* method: GetDispatcher */
  1082. ODDispatcher*   GetDispatcher(Environment *ev)
  1083. {
  1084. #ifdef SOMCHKEXCEPT
  1085.    ODDispatcher* __somResult = 
  1086.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetDispatcher)
  1087.     (this, ev);
  1088.    if ( ev->_major != NO_EXCEPTION )
  1089.       SOMCHKEXCEPT;
  1090.    return __somResult;
  1091. #else
  1092.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetDispatcher)
  1093.     (this, ev);
  1094. #endif
  1095. }
  1096.  
  1097.  
  1098. /* method: GetWindowState */
  1099. ODWindowState*   GetWindowState(Environment *ev)
  1100. {
  1101. #ifdef SOMCHKEXCEPT
  1102.    ODWindowState* __somResult = 
  1103.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetWindowState)
  1104.     (this, ev);
  1105.    if ( ev->_major != NO_EXCEPTION )
  1106.       SOMCHKEXCEPT;
  1107.    return __somResult;
  1108. #else
  1109.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetWindowState)
  1110.     (this, ev);
  1111. #endif
  1112. }
  1113.  
  1114.  
  1115. /* method: SubClassResponsibility */
  1116. void   SubClassResponsibility(Environment *ev, 
  1117.         char* methodName)
  1118. {
  1119.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,SubClassResponsibility)
  1120.     (this, ev,methodName);
  1121. #ifdef SOMCHKEXCEPT
  1122.    if ( ev->_major != NO_EXCEPTION )
  1123.       SOMCHKEXCEPT;
  1124. #endif
  1125. }
  1126.  
  1127.  
  1128. /* method: GetWindowSystemData */
  1129. WindowSystemData*   GetWindowSystemData(Environment *ev)
  1130. {
  1131. #ifdef SOMCHKEXCEPT
  1132.    WindowSystemData* __somResult = 
  1133.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetWindowSystemData)
  1134.     (this, ev);
  1135.    if ( ev->_major != NO_EXCEPTION )
  1136.       SOMCHKEXCEPT;
  1137.    return __somResult;
  1138. #else
  1139.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetWindowSystemData)
  1140.     (this, ev);
  1141. #endif
  1142. }
  1143.  
  1144.  
  1145. /* method: SetWindowSystemData */
  1146. void   SetWindowSystemData(Environment *ev, 
  1147.         WindowSystemData* windowSystemData)
  1148. {
  1149.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,SetWindowSystemData)
  1150.     (this, ev,windowSystemData);
  1151. #ifdef SOMCHKEXCEPT
  1152.    if ( ev->_major != NO_EXCEPTION )
  1153.       SOMCHKEXCEPT;
  1154. #endif
  1155. }
  1156.  
  1157.  
  1158. /* method: GetArgc */
  1159. long   GetArgc(Environment *ev)
  1160. {
  1161. #ifdef SOMCHKEXCEPT
  1162.    long __somResult = 
  1163.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetArgc)
  1164.     (this, ev);
  1165.    if ( ev->_major != NO_EXCEPTION )
  1166.       SOMCHKEXCEPT;
  1167.    return __somResult;
  1168. #else
  1169.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetArgc)
  1170.     (this, ev);
  1171. #endif
  1172. }
  1173.  
  1174.  
  1175. /* method: SetArgc */
  1176. void   SetArgc(Environment *ev, 
  1177.         long argc)
  1178. {
  1179.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,SetArgc)
  1180.     (this, ev,argc);
  1181. #ifdef SOMCHKEXCEPT
  1182.    if ( ev->_major != NO_EXCEPTION )
  1183.       SOMCHKEXCEPT;
  1184. #endif
  1185. }
  1186.  
  1187.  
  1188. /* method: GetArgv */
  1189. char**   GetArgv(Environment *ev)
  1190. {
  1191. #ifdef SOMCHKEXCEPT
  1192.    char** __somResult = 
  1193.       SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetArgv)
  1194.     (this, ev);
  1195.    if ( ev->_major != NO_EXCEPTION )
  1196.       SOMCHKEXCEPT;
  1197.    return __somResult;
  1198. #else
  1199.    return SOM_ResolveD(this,ApplicationShell,OpenDocShell,GetArgv)
  1200.     (this, ev);
  1201. #endif
  1202. }
  1203.  
  1204.  
  1205. /* method: SetArgv */
  1206. void   SetArgv(Environment *ev, 
  1207.         char** argv)
  1208. {
  1209.    SOM_ResolveD(this,ApplicationShell,OpenDocShell,SetArgv)
  1210.     (this, ev,argv);
  1211. #ifdef SOMCHKEXCEPT
  1212.    if ( ev->_major != NO_EXCEPTION )
  1213.       SOMCHKEXCEPT;
  1214. #endif
  1215. }
  1216.  
  1217.  
  1218. /* method: somUninit */
  1219. void   somUninit()
  1220. {
  1221.    SOM_ResolveD(this,ApplicationShell,SOMObject,somUninit)
  1222.     (this);
  1223. }
  1224.  
  1225.  
  1226. /* initializer method: somDefaultInit */
  1227. void   somDefaultInit(som3InitCtrl* ctrl)
  1228. {
  1229.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultInit)
  1230.     (this,ctrl);
  1231. }
  1232.  
  1233.  
  1234. /* method: somDestruct */
  1235. void   somDestruct(octet doFree, 
  1236.         som3DestructCtrl* ctrl)
  1237. {
  1238.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDestruct)
  1239.     (this,doFree,ctrl);
  1240. }
  1241.  
  1242.  
  1243. /* initializer method: somDefaultCopyInit */
  1244. void   somDefaultCopyInit(som3InitCtrl* ctrl, 
  1245.         SOMObject* fromObj)
  1246. {
  1247.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultCopyInit)
  1248.     (this,ctrl,fromObj);
  1249. }
  1250.  
  1251.  
  1252. /* method: somDefaultAssign */
  1253. ApplicationShell*  somDefaultAssign(som3AssignCtrl* ctrl, 
  1254.         SOMObject* fromObj)
  1255. {
  1256.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultAssign)
  1257.     (this,ctrl,fromObj);
  1258. }
  1259.  
  1260.  
  1261. /* initializer method: somDefaultConstCopyInit */
  1262. void   somDefaultConstCopyInit(som3InitCtrl* ctrl, 
  1263.         SOMObject* fromObj)
  1264. {
  1265.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultConstCopyInit)
  1266.     (this,ctrl,fromObj);
  1267. }
  1268.  
  1269.  
  1270. /* initializer method: somDefaultVCopyInit */
  1271. void   somDefaultVCopyInit(som3InitCtrl* ctrl, 
  1272.         SOMObject* fromObj)
  1273. {
  1274.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultVCopyInit)
  1275.     (this,ctrl,fromObj);
  1276. }
  1277.  
  1278.  
  1279. /* initializer method: somDefaultConstVCopyInit */
  1280. void   somDefaultConstVCopyInit(som3InitCtrl* ctrl, 
  1281.         SOMObject* fromObj)
  1282. {
  1283.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultConstVCopyInit)
  1284.     (this,ctrl,fromObj);
  1285. }
  1286.  
  1287.  
  1288. /* method: somDefaultConstAssign */
  1289. ApplicationShell*  somDefaultConstAssign(som3AssignCtrl* ctrl, 
  1290.         SOMObject* fromObj)
  1291. {
  1292.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultConstAssign)
  1293.     (this,ctrl,fromObj);
  1294. }
  1295.  
  1296.  
  1297. /* method: somDefaultVAssign */
  1298. ApplicationShell*  somDefaultVAssign(som3AssignCtrl* ctrl, 
  1299.         SOMObject* fromObj)
  1300. {
  1301.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultVAssign)
  1302.     (this,ctrl,fromObj);
  1303. }
  1304.  
  1305.  
  1306. /* method: somDefaultConstVAssign */
  1307. ApplicationShell*  somDefaultConstVAssign(som3AssignCtrl* ctrl, 
  1308.         SOMObject* fromObj)
  1309. {
  1310.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somDefaultConstVAssign)
  1311.     (this,ctrl,fromObj);
  1312. }
  1313.  
  1314.  
  1315. /* method: somInit */
  1316. void   somInit()
  1317. {
  1318.    SOM_ResolveD(this,ApplicationShell,SOMObject,somInit)
  1319.     (this);
  1320. }
  1321.  
  1322.  
  1323. /* method: somFree */
  1324. void   somFree()
  1325. {
  1326.    SOM_ResolveD(this,ApplicationShell,SOMObject,somFree)
  1327.     (this);
  1328. }
  1329.  
  1330.  
  1331. /* method: somGetClass */
  1332. SOMClass*   somGetClass()
  1333. {
  1334.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somGetClass)
  1335.     (this);
  1336. }
  1337.  
  1338.  
  1339. /* method: somGetClassName */
  1340. string   somGetClassName()
  1341. {
  1342.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somGetClassName)
  1343.     (this);
  1344. }
  1345.  
  1346.  
  1347. /* method: somGetSize */
  1348. long   somGetSize()
  1349. {
  1350.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somGetSize)
  1351.     (this);
  1352. }
  1353.  
  1354.  
  1355. /* method: somIsA */
  1356. boolean   somIsA(SOMClass* aClassObj)
  1357. {
  1358.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somIsA)
  1359.     (this,aClassObj);
  1360. }
  1361.  
  1362.  
  1363. /* method: somIsInstanceOf */
  1364. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1365. {
  1366.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somIsInstanceOf)
  1367.     (this,aClassObj);
  1368. }
  1369.  
  1370.  
  1371. /* method: somRespondsTo */
  1372. boolean   somRespondsTo(somId mId)
  1373. {
  1374.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somRespondsTo)
  1375.     (this,mId);
  1376. }
  1377.  
  1378.  
  1379. /* va_list method: somDispatch */
  1380.  
  1381. /* the va_list invocation form */
  1382. boolean   ApplicationShell_somDispatch(somToken* retValue, 
  1383.         somId methodId, 
  1384.         va_list ap)
  1385. {return SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatch)
  1386.     (this,retValue,methodId,ap);
  1387. }
  1388.  
  1389. /* the varargs invocation form */
  1390. boolean   somDispatch(somToken* retValue, 
  1391.         somId methodId, 
  1392.         ...)
  1393. {
  1394.    va_list ap;
  1395.    va_start(ap, methodId);
  1396.    boolean __somResult = 
  1397.       SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatch)
  1398.     (this,retValue,methodId,ap);
  1399.    va_end(ap);
  1400.    return __somResult;
  1401. }
  1402.  
  1403.  
  1404. /* va_list method: somClassDispatch */
  1405.  
  1406. /* the va_list invocation form */
  1407. boolean   ApplicationShell_somClassDispatch(SOMClass* clsObj, 
  1408.         somToken* retValue, 
  1409.         somId methodId, 
  1410.         va_list ap)
  1411. {return SOM_ResolveD(this,ApplicationShell,SOMObject,somClassDispatch)
  1412.     (this,clsObj,retValue,methodId,ap);
  1413. }
  1414.  
  1415. /* the varargs invocation form */
  1416. boolean   somClassDispatch(SOMClass* clsObj, 
  1417.         somToken* retValue, 
  1418.         somId methodId, 
  1419.         ...)
  1420. {
  1421.    va_list ap;
  1422.    va_start(ap, methodId);
  1423.    boolean __somResult = 
  1424.       SOM_ResolveD(this,ApplicationShell,SOMObject,somClassDispatch)
  1425.     (this,clsObj,retValue,methodId,ap);
  1426.    va_end(ap);
  1427.    return __somResult;
  1428. }
  1429.  
  1430.  
  1431. /* method: somCastObj */
  1432. boolean   somCastObj(SOMClass* cls)
  1433. {
  1434.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somCastObj)
  1435.     (this,cls);
  1436. }
  1437.  
  1438.  
  1439. /* method: somResetObj */
  1440. boolean   somResetObj()
  1441. {
  1442.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somResetObj)
  1443.     (this);
  1444. }
  1445.  
  1446.  
  1447. /* va_list method: somDispatchV */
  1448.  
  1449. /* the va_list invocation form */
  1450. void   ApplicationShell_somDispatchV(somId methodId, 
  1451.         somId descriptor, 
  1452.         va_list ap)
  1453. {   SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatchV)
  1454.     (this,methodId,descriptor,ap);
  1455. }
  1456.  
  1457. /* the varargs invocation form */
  1458. void   somDispatchV(somId methodId, 
  1459.         somId descriptor, 
  1460.         ...)
  1461. {
  1462.    va_list ap;
  1463.    va_start(ap, descriptor);
  1464.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatchV)
  1465.     (this,methodId,descriptor,ap);
  1466.    va_end(ap);
  1467. }
  1468.  
  1469.  
  1470. /* va_list method: somDispatchL */
  1471.  
  1472. /* the va_list invocation form */
  1473. long   ApplicationShell_somDispatchL(somId methodId, 
  1474.         somId descriptor, 
  1475.         va_list ap)
  1476. {return SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatchL)
  1477.     (this,methodId,descriptor,ap);
  1478. }
  1479.  
  1480. /* the varargs invocation form */
  1481. long   somDispatchL(somId methodId, 
  1482.         somId descriptor, 
  1483.         ...)
  1484. {
  1485.    va_list ap;
  1486.    va_start(ap, descriptor);
  1487.    long __somResult = 
  1488.       SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatchL)
  1489.     (this,methodId,descriptor,ap);
  1490.    va_end(ap);
  1491.    return __somResult;
  1492. }
  1493.  
  1494.  
  1495. /* va_list method: somDispatchA */
  1496.  
  1497. /* the va_list invocation form */
  1498. void*   ApplicationShell_somDispatchA(somId methodId, 
  1499.         somId descriptor, 
  1500.         va_list ap)
  1501. {return SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatchA)
  1502.     (this,methodId,descriptor,ap);
  1503. }
  1504.  
  1505. /* the varargs invocation form */
  1506. void*   somDispatchA(somId methodId, 
  1507.         somId descriptor, 
  1508.         ...)
  1509. {
  1510.    va_list ap;
  1511.    va_start(ap, descriptor);
  1512.    void* __somResult = 
  1513.       SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatchA)
  1514.     (this,methodId,descriptor,ap);
  1515.    va_end(ap);
  1516.    return __somResult;
  1517. }
  1518.  
  1519.  
  1520. /* va_list method: somDispatchD */
  1521.  
  1522. /* the va_list invocation form */
  1523. double   ApplicationShell_somDispatchD(somId methodId, 
  1524.         somId descriptor, 
  1525.         va_list ap)
  1526. {return SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatchD)
  1527.     (this,methodId,descriptor,ap);
  1528. }
  1529.  
  1530. /* the varargs invocation form */
  1531. double   somDispatchD(somId methodId, 
  1532.         somId descriptor, 
  1533.         ...)
  1534. {
  1535.    va_list ap;
  1536.    va_start(ap, descriptor);
  1537.    double __somResult = 
  1538.       SOM_ResolveD(this,ApplicationShell,SOMObject,somDispatchD)
  1539.     (this,methodId,descriptor,ap);
  1540.    va_end(ap);
  1541.    return __somResult;
  1542. }
  1543.  
  1544.  
  1545. /* method: somPrintSelf */
  1546. SOMObject*   somPrintSelf()
  1547. {
  1548.    return SOM_ResolveD(this,ApplicationShell,SOMObject,somPrintSelf)
  1549.     (this);
  1550. }
  1551.  
  1552.  
  1553. /* method: somDumpSelf */
  1554. void   somDumpSelf(long level)
  1555. {
  1556.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDumpSelf)
  1557.     (this,level);
  1558. }
  1559.  
  1560.  
  1561. /* method: somDumpSelfInt */
  1562. void   somDumpSelfInt(long level)
  1563. {
  1564.    SOM_ResolveD(this,ApplicationShell,SOMObject,somDumpSelfInt)
  1565.     (this,level);
  1566. }
  1567.  
  1568.  
  1569.  
  1570. };   /* ApplicationShell */
  1571.  
  1572.  
  1573.  
  1574. #endif       /* SOM_ApplicationShell_xh */
  1575.