home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / ODShell.idl < prev    next >
Text File  |  1997-04-02  |  5KB  |  147 lines

  1. /* @(#)Z 1.21 com/src/docshell/idl/ODShell.idl, odshell, od96os2, odos29712d 97/03/21 17:37:26 (96/10/29 09:24:36) */
  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. #ifndef _OPENDOCSHELL_
  30. #define _OPENDOCSHELL_
  31.  
  32. #include <somobj.idl>
  33.  
  34. #ifndef _ODTYPESM_
  35. #include "ODTypesM.idl"
  36. #endif
  37.  
  38. //==============================================================================
  39. // Classes defined in this interface
  40. //==============================================================================
  41.  
  42. interface   OpenDocShell;
  43.  
  44. //==============================================================================
  45. // Classes used by this interface
  46. //==============================================================================
  47.  
  48. interface   ODSession;
  49. interface   ODWindowState;
  50. interface   ODWindow;
  51. interface   ODDispatcher;
  52. interface   DocumentManager;
  53. interface   ODPlatformWindow;
  54. interface   somf_TPrimitiveLinkedList;
  55. interface   somf_TPrimitiveLinkedListIterator;
  56. interface   ODDraft;
  57.  
  58. //==============================================================================
  59. // Implementation Types
  60. //==============================================================================
  61.  
  62. typedef somToken WindowSystemData;
  63.  
  64. //==============================================================================
  65. // OpenDocShell
  66. //==============================================================================
  67.  
  68. interface OpenDocShell :  SOMObject
  69. {
  70.     void            InitOpenDocShell();
  71.     ODBoolean            DispatchEvent(in ODEventData* event);
  72.     void            Terminate();
  73.     DocumentManager        CreateDocumentManager();
  74.     void            DeleteDocumentManager(
  75.                         in DocumentManager docMgr);
  76.     void                        UpdateActiveDocumentManager(
  77.                         in ODWindow odWindow);
  78.     DocumentManager             GetActiveDocumentManager();
  79.     void                        SetActiveDocumentManager(
  80.                                       in DocumentManager docMgr);
  81.     DocumentManager             GetDocumentManagerOfDraft(in ODDraft draft);
  82.     somf_TPrimitiveLinkedListIterator  CreateDocumentManagerIterator();
  83.     void                        DeleteDocumentManagerIterator(
  84.                           in somf_TPrimitiveLinkedListIterator 
  85.                              docMgrIter);
  86.     ODSession                   GetSession();
  87.     ODDispatcher                GetDispatcher();
  88.     ODWindowState               GetWindowState();
  89.     void            SubClassResponsibility(in char *methodName);
  90.     WindowSystemData*        GetWindowSystemData();
  91.     void            SetWindowSystemData(
  92.                     in WindowSystemData* windowSystemData);
  93.     long            GetArgc();
  94.     void            SetArgc(in long argc);
  95.     char**            GetArgv();
  96.     void            SetArgv(in char** argv);
  97.  
  98.  
  99. #ifdef __SOMIDL__
  100.     implementation
  101.     {
  102.         majorversion = 1; minorversion = 0;
  103.  
  104.         functionprefix = OpenDocShell;
  105.  
  106.         override:
  107.             somUninit;
  108.  
  109.         releaseorder:
  110.             InitOpenDocShell,
  111.             DispatchEvent,
  112.             Terminate,
  113.             CreateDocumentManager,
  114.             DeleteDocumentManager,
  115.             UpdateActiveDocumentManager,
  116.             GetActiveDocumentManager,
  117.             SetActiveDocumentManager,
  118.             CreateDocumentManagerIterator,
  119.             DeleteDocumentManagerIterator,
  120.             GetSession,
  121.             GetDispatcher,
  122.             GetWindowState,
  123.             SubClassResponsibility,
  124.             GetWindowSystemData,
  125.             SetWindowSystemData,
  126.             GetArgc,
  127.             SetArgc,
  128.             GetArgv,
  129.             SetArgv,
  130.             GetDocumentManagerOfDraft;
  131.  
  132.            passthru C_xh =
  133.                 "#ifndef _ODTYPES_"
  134.                 "#include \"ODTypes.h\""
  135.                 "#endif"
  136.                 "#ifndef SOM_ODWindowState_xh"
  137.                 "#include \"WinStat.xh\""
  138.                 "#endif"
  139.             "";
  140.  
  141.   };
  142. #endif
  143. };
  144.  
  145.  
  146. #endif // _OPENDOCSHELL_
  147.