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

  1. /* @(#)Z 1.23 com/src/docshell/idl/AppShell.idl, odshell, od96os2, odos29712d 97/03/21 17:37:27 (96/10/29 09:24:27) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odshell
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 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.  
  29.  
  30. #ifndef _APPSHELLSHELL_
  31. #define _APPSHELLSHELL_
  32.  
  33. #include <somobj.idl>
  34. #include "ODShell.idl"
  35.  
  36. #ifndef _ODTYPESM_
  37. #include "ODTypesM.idl"
  38. #endif
  39.  
  40. //==============================================================================
  41. // Classes defined in this interface
  42. //==============================================================================
  43.  
  44. interface   ApplicationShell;
  45.  
  46. //==============================================================================
  47. // Classes used by this interface
  48. //==============================================================================
  49.  
  50. interface   DocumentManager;
  51.  
  52. //==============================================================================
  53. // Implementation Types
  54. //==============================================================================
  55.  
  56.  
  57. //==============================================================================
  58. // ApplicationShell
  59. //==============================================================================
  60.  
  61. interface ApplicationShell :  OpenDocShell
  62. {
  63.     ODSLong     Go(in long argc, in char **argv);
  64.     void     ProcessArgs(in long argc, in char **argv, in char *fileName,
  65.                             in char *partKind, out ODUShort actionFlag);
  66.     ODBoolean     OpenDocument(in DocumentManager docMgr, in char *fileName, 
  67.                      in char *partKind, in ODUShort actionFlag);
  68.     void     CreateMenuBar();
  69.     void     InitWindowSystem();
  70.     void     Exec(in char *str);
  71.     ODSLong     MainLoop();
  72.     void     DocumentNew();
  73.     void     DocumentOpen();
  74.     void     DocumentSave();
  75.     void     DocumentSaveAs();
  76.     void     DocumentRevert();
  77.     void     DocumentDraftCreate();
  78.     void     DocumentDraftHistory();
  79.     void     DocumentInfo();
  80.     void     DocumentPageSetup(in ODEventData* event);
  81.     void     DocumentPrint(in ODEventData* event);
  82.     void     DocumentClose();
  83.     void     DocumentAbout();
  84.     void     UpdateUndoMenus();
  85.     void     SendEventToRootPart(in ODEventData* event);
  86.     void     CloseCleanup();
  87.     void     SetExecString(in char *execString);
  88.     char*     GetExecString();
  89.     ODBoolean   IsValidFileName(in char *docName);
  90.     ODBoolean    HandleMenuEvent(in ODEventData *event);
  91.     ODBoolean    HandleCloseEvent(in ODEventData *event);
  92.     ODBoolean    HandleHelpEvent(in ODEventData *event);
  93.     void    AdjustMenu();
  94.     ODULong    GetEventType(in ODEventData *event);
  95.     ODULong    GetEventSubType(in ODEventData *event);
  96.     ODPlatformWindow GetEventWindow(in ODEventData *event);
  97.  
  98.  
  99. #ifdef __SOMIDL__
  100.     implementation
  101.     {
  102.         majorversion = 1; minorversion = 0;
  103.  
  104.         functionprefix = ApplicationShell;
  105.  
  106.     override:
  107.         DispatchEvent;
  108.         
  109.         releaseorder:
  110.             Go,
  111.             ProcessArgs,
  112.             OpenDocument,
  113.             CreateMenuBar,
  114.             InitWindowSystem,
  115.         Exec,
  116.             MainLoop,
  117.             DocumentNew,
  118.             DocumentOpen,
  119.             DocumentSave,
  120.             DocumentSaveAs,
  121.             DocumentRevert,
  122.             DocumentDraftCreate,
  123.             DocumentDraftHistory,
  124.             DocumentInfo,
  125.             DocumentPageSetup,
  126.             DocumentPrint,
  127.             DocumentClose,
  128.             DocumentAbout,
  129.             UpdateUndoMenus,
  130.             SendEventToRootPart,
  131.             CloseCleanup,
  132.             SetExecString,
  133.             GetExecString,
  134.             IsValidFileName,
  135.             HandleMenuEvent,
  136.             HandleCloseEvent,
  137.             HandleHelpEvent,
  138.             AdjustMenu,
  139.             GetEventType,
  140.             GetEventSubType,
  141.             GetEventWindow;
  142.  
  143.         #ifdef __PRIVATE__
  144.         char    fExecString[256];
  145.         #endif
  146.   };
  147. #endif
  148. };
  149.  
  150.  
  151. #endif // _APPSHELLSHELL_
  152.