home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / WINSTAT.IDL < prev    next >
Text File  |  1995-12-13  |  7KB  |  263 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /********************************************************************/
  12.  
  13.  
  14. #ifndef _WINSTAT_
  15. #define _WINSTAT_
  16.  
  17. #ifndef _ODOBJECT_
  18. #include "ODObject.idl"
  19. #endif
  20.  
  21. //=====================================================================================
  22. // Classes defined in this interface
  23. //=====================================================================================
  24.  
  25. interface  ODWindowState;
  26.  
  27. //=====================================================================================
  28. // Classes used by this interface
  29. //=====================================================================================
  30.  
  31. interface  ODCanvas;
  32. interface  ODDraft;
  33. interface  ODFacet;
  34. interface  ODFrame;
  35. interface  ODMenuBar;
  36. interface  ODPart;
  37. interface  ODSession;
  38. interface  ODShape;
  39. interface  ODSession;
  40. interface  ODTransform;
  41. interface  ODWindow;
  42. interface  ODWindowIterator;
  43. #ifdef _PLATFORM_OS2_
  44. interface  ODPopup;
  45. #endif
  46.  
  47.  
  48. //=====================================================================================
  49. // ODWindowState
  50. //=====================================================================================
  51.  
  52. interface ODWindowState :  ODObject
  53. {
  54.  
  55.   ODWindow RegisterWindow(in ODPlatformWindow newWindow,
  56.               in ODType frameType,
  57.                  in ODBoolean isRootWindow,
  58.               in ODBoolean isResizable,
  59.               in ODBoolean isFloating,
  60.               in ODBoolean shouldSave,
  61.               in ODBoolean shouldDispose,              
  62.               in ODPart rootPart,
  63.               in ODTypeToken viewType,
  64.               in ODTypeToken presentation,
  65.               in ODFrame sourceFrame);
  66.  
  67.   ODWindow RegisterWindowForFrame(in ODPlatformWindow newWindow,
  68.               in ODFrame frame,
  69.                  in ODBoolean isRootWindow,
  70.               in ODBoolean isResizable,
  71.               in ODBoolean isFloating,
  72.               in ODBoolean shouldSave,
  73.               in ODBoolean shouldDispose,              
  74.               in ODFrame sourceFrame);
  75.  
  76.   ODWindow AcquireWindow(in ODID id);
  77.  
  78.   void Internalize(in ODDraft draft);
  79.  
  80.   void Externalize(in ODDraft draft);
  81.  
  82.   void SetDefaultWindowTitles(in ODDraft draft);
  83.  
  84.   void OpenWindows(in ODDraft draft);
  85.  
  86.   void CloseWindows(in ODDraft draft);
  87.  
  88.   ODUShort GetWindowCount();
  89.  
  90.   ODUShort GetRootWindowCount(in ODDraft draft);
  91.  
  92.   ODUShort GetTotalRootWindowCount();
  93.  
  94.   ODBoolean IsODWindow(in ODPlatformWindow aWindow);
  95.  
  96.   ODWindow  AcquireODWindow(in ODPlatformWindow aWindow);
  97.  
  98.   ODWindowIterator  CreateWindowIterator();
  99.  
  100.   ODWindow  AcquireActiveWindow();
  101.  
  102.   void SetBaseMenuBar(in ODMenuBar theMenuBar);
  103.  
  104.   ODMenuBar  CopyBaseMenuBar();
  105.  
  106.   void AdjustPartMenus();
  107.  
  108.   ODMenuBar CreateMenuBar(in ODPlatformMenuBar menuBar);
  109.  
  110.   ODCanvas CreateCanvas(in ODGraphicsSystem graphicsSystem,
  111.               in ODPlatformCanvas platformCanvas,
  112.               in ODBoolean isDynamic,
  113.               in ODBoolean isOffscreen);
  114.  
  115.   ODFacet CreateFacet(in ODFrame frame,
  116.               in ODShape clipShape,
  117.               in ODTransform externalTransform,
  118.               in ODCanvas canvas,
  119.               in ODCanvas biasCanvas);
  120.  
  121.   ODMenuBar  AcquireCurrentMenuBar();
  122.  
  123.   ODMenuBar  AcquireBaseMenuBar();
  124.  
  125. #ifdef _PLATFORM_MACINTOSH_
  126.  
  127.         void DeactivateFrontWindows();
  128.  
  129.     void ActivateFrontWindows();
  130.  
  131.     ODWindow AcquireFrontWindow();
  132.  
  133.     ODWindow AcquireFrontFloatingWindow();
  134.  
  135.     ODWindow AcquireFrontRootWindow();
  136.  
  137. #endif
  138.  
  139. #ifdef _PLATFORM_OS2_
  140.  
  141.     void SetBasePopup(in ODPopup thePopup);
  142.  
  143.     ODPopup  CopyBasePopup();
  144.  
  145.     ODWindow AcquireFrontWindow();
  146.  
  147.     ODWindow AcquireFrontFloatingWindow();
  148.  
  149.     ODWindow AcquireFrontRootWindow();
  150. #endif
  151.  
  152.  
  153. #ifdef __SOMIDL__
  154. #ifdef _PLATFORM_MACINTOSH_
  155.   implementation
  156.     {
  157.       functionprefix = ODWindowState;
  158.  
  159.     override:
  160.       somInit,
  161.       somUninit,
  162.       Purge;
  163.  
  164.      releaseorder:
  165.        RegisterWindow,
  166.       RegisterWindowForFrame,
  167.       AcquireWindow,
  168.       Internalize,
  169.       Externalize,
  170.       SetDefaultWindowTitles,
  171.       OpenWindows,
  172.       CloseWindows,
  173.       GetWindowCount,
  174.       GetRootWindowCount,
  175.       GetTotalRootWindowCount,
  176.       IsODWindow,
  177.       AcquireODWindow,
  178.       CreateWindowIterator,
  179.       AcquireActiveWindow,
  180.       SetBaseMenuBar,
  181.       CopyBaseMenuBar,
  182.       AdjustPartMenus,
  183.       CreateMenuBar,
  184.       CreateCanvas,
  185.       CreateFacet,
  186.  
  187.       AcquireCurrentMenuBar,
  188.       AcquireBaseMenuBar,
  189.                         DeactivateFrontWindows,
  190.                         ActivateFrontWindows,
  191.       AcquireFrontWindow,
  192.       AcquireFrontFloatingWindow,
  193.       AcquireFrontRootWindow,
  194.                         reserved1, reserved2, reserved3, reserved4, reserved5, reserved6,
  195.                         reserved7, reserved8, reserved9, reserved10, reserved11, reserved12,
  196.                         reserved13, reserved14, reserved15, reserved16, reserved17, reserved18,
  197.       reserved19,reserved20,reserved21,reserved22,reserved23;
  198.  
  199.                 majorversion = 1; minorversion = 0;
  200.  
  201.  
  202.   };
  203. #endif
  204.  
  205. #ifdef _PLATFORM_OS2_
  206.   implementation
  207.     {
  208.       functionprefix = ODWindowState;
  209.  
  210.     override:
  211.       somInit,
  212.       somUninit,
  213.       Purge;
  214.  
  215.      releaseorder:
  216.        RegisterWindow,
  217.       RegisterWindowForFrame,
  218.       AcquireWindow,
  219.       Internalize,
  220.       Externalize,
  221.       SetDefaultWindowTitles,
  222.       OpenWindows,
  223.       CloseWindows,
  224.       GetWindowCount,
  225.       GetRootWindowCount,
  226.       GetTotalRootWindowCount,
  227.       IsODWindow,
  228.       AcquireODWindow,
  229.       CreateWindowIterator,
  230.       AcquireActiveWindow,
  231.       SetBaseMenuBar,
  232.       CopyBaseMenuBar,
  233.       AdjustPartMenus,
  234.       CreateMenuBar,
  235.       CreateCanvas,
  236.       CreateFacet,
  237.  
  238.       AcquireCurrentMenuBar,
  239.       AcquireBaseMenuBar,
  240.       DeactivateFrontWindows,
  241.       ActivateFrontWindows,
  242.       AcquireFrontWindow,
  243.       AcquireFrontFloatingWindow,
  244.       AcquireFrontRootWindow,
  245.       SetBasePopup,
  246.       CopyBasePopup,
  247.       reserved1, reserved2, reserved3, reserved4, reserved5, reserved6,
  248.       reserved7, reserved8, reserved9, reserved10, reserved11, reserved12,
  249.       reserved13, reserved14, reserved15, reserved16, reserved17, reserved18,
  250.       reserved19, reserved20, reserved21, reserved22;
  251.  
  252.     majorversion = 1; minorversion = 0;
  253.  
  254.  
  255.   };
  256. #endif
  257.  
  258. #endif
  259.  
  260. };
  261.  
  262. #endif // _WINSTAT_
  263.