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

  1. /* @(#) 1.20 com/src/ui/idl/WinStat.idl, odui, od96os2, odos29712d 2/19/97 15:20:19 [3/21/97 17:20:49] */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odui
  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. /********************************************************************/
  29. /*  Licensed Materials - Property of IBM                            */
  30. /*                                                                  */
  31. /*                                                                  */
  32. /* Copyright (C) International Business Machines Corp., 1994.       */
  33. /* Copyright (C) Apple Computer, Inc., 1994                         */
  34. /*                                                                  */
  35. /*  US Government Users Restricted Rights -                         */
  36. /*  Use, duplication, or disclosure restricted                      */
  37. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  38. /********************************************************************/
  39. //#     Copyright:      (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  40.  
  41. #ifndef _WINSTAT_
  42. #define _WINSTAT_
  43.  
  44. #ifndef _ODOBJECT_
  45. #include "ODObject.idl"
  46. #endif
  47.  
  48. //=====================================================================================
  49. // Classes defined in this interface
  50. //=====================================================================================
  51.  
  52. interface  ODWindowState;
  53.  
  54. //=====================================================================================
  55. // Classes used by this interface
  56. //=====================================================================================
  57.  
  58. interface  ODCanvas;
  59. interface  ODDraft;
  60. interface  ODFacet;
  61. interface  ODFrame;
  62. interface  ODMenuBar;
  63. interface  ODPart;
  64. interface  ODShape;
  65. interface  ODTransform;
  66. interface  ODWindow;
  67. interface  ODWindowIterator;
  68. #if defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_UNIX_)
  69. interface  ODPopup;
  70. #endif
  71.  
  72. #ifdef _PLATFORM_UNIX_
  73. typedef somToken Display;
  74. typedef somToken Screen;
  75. typedef somToken XtAppContext;
  76. typedef somToken Widget;
  77. #endif
  78.  
  79.  
  80. //=====================================================================================
  81. // ODWindowState
  82. //=====================================================================================
  83.  
  84.  
  85. interface ODWindowState :  ODObject
  86. {
  87.  
  88.         ODWindow RegisterWindow(in ODPlatformWindow newWindow,
  89.                                                         in ODType frameType,
  90.                                                         in ODBoolean isRootWindow,
  91.                                                         in ODBoolean isResizable,
  92.                                                         in ODBoolean isFloating,
  93.                                                         in ODBoolean shouldSave,
  94.                                                         in ODBoolean shouldDispose,
  95.                                                         in ODPart rootPart,
  96.                                                         in ODTypeToken viewType,
  97.                                                         in ODTypeToken presentation,
  98.                                                         in ODFrame sourceFrame);
  99.  
  100.         ODWindow RegisterWindowForFrame(in ODPlatformWindow newWindow,
  101.                                                         in ODFrame frame,
  102.                                                         in ODBoolean isRootWindow,
  103.                                                         in ODBoolean isResizable,
  104.                                                         in ODBoolean isFloating,
  105.                                                         in ODBoolean shouldSave,
  106.                                                         in ODBoolean shouldDispose,
  107.                                                         in ODFrame sourceFrame);
  108.  
  109.         ODWindow AcquireWindow(in ODID id);
  110.  
  111.         void Internalize(in ODDraft draft);
  112.  
  113.         void Externalize(in ODDraft draft);
  114.  
  115.         void SetDefaultWindowTitles(in ODDraft draft);
  116.  
  117.         void OpenWindows(in ODDraft draft);
  118.  
  119.         void CloseWindows(in ODDraft draft);
  120.  
  121.         ODUShort GetWindowCount();
  122.  
  123.         ODUShort GetRootWindowCount(in ODDraft draft);
  124.  
  125.         ODUShort GetTotalRootWindowCount();
  126.  
  127.         ODBoolean IsODWindow(in ODPlatformWindow aWindow);
  128.  
  129.         ODWindow  AcquireODWindow(in ODPlatformWindow aWindow);
  130.  
  131.         ODWindowIterator  CreateWindowIterator();
  132.  
  133.         ODWindow  AcquireActiveWindow();
  134.  
  135.         void SetBaseMenuBar(in ODMenuBar theMenuBar);
  136.  
  137.         ODMenuBar  CopyBaseMenuBar();
  138.  
  139.         void AdjustPartMenus();
  140.  
  141. #ifdef _PLATFORM_WIN32_
  142.         ODPopup   CreatePopupMenuEx(in ODPlatformMenuBar popupMenu,
  143.                                     in ODUShort          subMenuIDcount,
  144.                                     in ODMenuIDInfo*     subMenuIDinfo);
  145.  
  146.         ODMenuBar CreateMenuBarEx(in ODPlatformMenuBar  menuBar,
  147.                                   in ODUShort           subMenuIDcount,
  148.                                   in ODMenuIDInfo*      subMenuIDinfo);
  149. #endif // PLATFORM_WIN32
  150.  
  151. #if defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_UNIX_)
  152.         ODPopup   CreatePopupMenu(in ODPlatformMenuBar popupMenu);
  153. #endif // PLATFORM_OS2, PLATFORM_WIN32, PLATFORM_UNIX
  154.  
  155.         ODMenuBar CreateMenuBar(in ODPlatformMenuBar menuBar);
  156.  
  157.         ODCanvas CreateCanvas(in ODGraphicsSystem graphicsSystem,
  158.                                                   in ODPlatformCanvas platformCanvas,
  159.                                                   in ODBoolean isDynamic,
  160.                                                   in ODBoolean isOffscreen);
  161.  
  162.         ODFacet CreateFacet(in ODFrame frame,
  163.                                             in ODShape clipShape,
  164.                                             in ODTransform externalTransform,
  165.                                             in ODCanvas canvas,
  166.                                             in ODCanvas biasCanvas);
  167.  
  168. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_UNIX_)
  169.  
  170.         ODMenuBar  AcquireCurrentMenuBar();
  171.  
  172.         ODMenuBar  AcquireBaseMenuBar();
  173.  
  174. #ifdef _PLATFORM_MACINTOSH_
  175.         void DeactivateFrontWindows();
  176.  
  177.     void ActivateFrontWindows();
  178. #endif
  179.  
  180.     ODWindow AcquireFrontWindow();
  181.  
  182.     ODWindow AcquireFrontFloatingWindow();
  183.  
  184.     ODWindow AcquireFrontRootWindow();
  185.  
  186. #endif //# _PLATFORM_MACINTOSH_ || _PLATFORM_OS2_ || _PLATFORM_WIN32_ || _PLATFORM_UNIX_
  187.  
  188. #if defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_UNIX_)
  189.  
  190.     void SetBasePopup(in ODPopup thePopup);
  191.  
  192.     ODPopup  CopyBasePopup();
  193.  
  194.     ODPopup    AcquireCurrentPopupMenu();
  195.  
  196.     ODPopup    AcquireBasePopupMenu();
  197.  
  198.     ODPlatformWindow CreatePlatformWindow(in ODBoolean isFloating);
  199. #endif
  200.  
  201. #ifdef _PLATFORM_UNIX_
  202.     Display*     GetDisplay();
  203.  
  204.     Screen*      GetScreen();
  205.  
  206.     XtAppContext GetAppContext();
  207. #endif
  208.  
  209.  
  210. #ifdef __SOMIDL__
  211. // #ifdef _PLATFORM_MACINTOSH_
  212.         implementation
  213.         {
  214.                 majorversion = 1; minorversion = 0;
  215.  
  216.                 functionprefix = ODWindowState;
  217.  
  218.                 override:
  219.                         somUninit,
  220.                         Purge;
  221.  
  222.            releaseorder:
  223.                         RegisterWindow,
  224.                         RegisterWindowForFrame,
  225.                         AcquireWindow,
  226.                         Internalize,
  227.                         Externalize,
  228.                         SetDefaultWindowTitles,
  229.                         OpenWindows,
  230.                         CloseWindows,
  231.                         GetWindowCount,
  232.                         GetRootWindowCount,
  233.                         GetTotalRootWindowCount,
  234.                         IsODWindow,
  235.                         AcquireODWindow,
  236.                         CreateWindowIterator,
  237.                         AcquireActiveWindow,
  238.                         SetBaseMenuBar,
  239.                         CopyBaseMenuBar,
  240.                         AdjustPartMenus,
  241.  
  242.                 #ifdef _PLATFORM_WIN32_
  243.                         CreatePopupMenuEx,
  244.                         CreateMenuBarEx,
  245.                 #endif // PLATFORM_WIN32
  246.  
  247.                 #if defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_UNIX_)
  248.                         CreatePopupMenu,
  249.                 #endif // PLATFORM_OS2, PLATFORM_WIN32, PLATFORM_UNIX
  250.  
  251.                         CreateMenuBar,
  252.                         CreateCanvas,
  253.                         CreateFacet,
  254.  
  255.                         AcquireCurrentMenuBar,
  256.                         AcquireBaseMenuBar,
  257.         #ifdef _PLATFORM_MACINTOSH_
  258.                         DeactivateFrontWindows,
  259.                         ActivateFrontWindows,
  260.         #endif
  261.                         AcquireFrontWindow,
  262.                         AcquireFrontFloatingWindow,
  263.                         AcquireFrontRootWindow,
  264.         #if defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_UNIX_)
  265.                         SetBasePopup,
  266.                         CopyBasePopup,
  267.                         AcquireCurrentPopupMenu,
  268.                         AcquireBasePopupMenu,
  269.                         CreatePlatformWindow,
  270.         #endif
  271. #ifdef _PLATFORM_UNIX_
  272.                         GetDisplay,
  273.                         GetScreen,
  274.                         GetAppContext,
  275. #endif
  276.  
  277.           #ifdef _PLATFORM_MACINTOSH_
  278.                         reserved1, reserved2, reserved3, reserved4, reserved5, reserved6,
  279.                         reserved7, reserved8, reserved9, reserved10, reserved11, reserved12,
  280.                         reserved13, reserved14, reserved15, reserved16, reserved17, reserved18,
  281.                         reserved19,reserved20,reserved21,reserved22,reserved23;
  282.           #endif
  283.           #if defined(_PLATFORM_OS2_) || defined(_PLATFORM_WIN32_)
  284.             reserved1, reserved2, reserved3, reserved4, reserved5, reserved6,
  285.             reserved7, reserved8, reserved9, reserved10, reserved11, reserved12,
  286.             reserved13, reserved14, reserved15, reserved16, reserved17, reserved18,
  287.             reserved19, reserved20, reserved21, reserved22, reserved23;
  288.           #endif
  289.           #ifdef _PLATFORM_UNIX_
  290.             reserved1, reserved2, reserved3, reserved4, reserved5, reserved6,
  291.             reserved7, reserved8, reserved9, reserved10, reserved11, reserved12,
  292.             reserved13, reserved14, reserved15, reserved16, reserved17, reserved18,
  293.             reserved19, reserved20, reserved21, reserved22, reserved23, reserved24,
  294.             reserved25, reserved26, reserved27;
  295.           #endif
  296.  
  297.  
  298.   };
  299. // #endif //# _PLATFORM_MACINTOSH_
  300. #endif //# __SOMIDL__
  301. };
  302.  
  303. #endif // _WINSTAT_
  304.