home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / bento / headers / winstat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  4.0 KB  |  151 lines

  1. /*
  2.     File:        XMPWindowState.h
  3.  
  4.     Contains:    Interface to XMPAbsWindowState class.
  5.  
  6.     Written by:    Richard Rodseth
  7.  
  8.     Copyright:    ⌐ 1992-94 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <5>      2/9/94    NP        Tiger Team cleanup.
  13.          <4>      2/7/94    NP        Tiger Team doings.
  14.          <3>      2/2/94    RR        Added SetDefaultWindowTitles
  15.          <2>     1/21/94    RR        Added shouldSave to CreateWindow
  16.          <1>     1/15/94    RR        first checked in
  17.         <16>     1/10/94    RR        Added CreateWindowIterator
  18.         <15>    12/21/93    JBS        CreateWindow with viewType & presentation
  19.         <14>    12/20/93    VL        Added CreateWindow and GetWindow.
  20.         <13>    12/20/93    RR        New Init Strategy
  21.         <12>     12/8/93    RR        Cleanup XMPMethod and forward declarations.
  22.                                     Move iterator to separate file
  23.         <11>    11/16/93    RR        Added AdjustPartMenus. Remove
  24.                                     SetMenuUpdateProc and UpdateBaseMenuBar
  25.         <10>    10/21/93    RR        Added GetRootWindowCount and
  26.                                     GetTotalRootWindowCount. GetWindowCount now
  27.                                     returns an unsigned short.
  28.          <9>     10/8/93    RR        Added IsXMPWindow
  29.          <8>     10/7/93    RR        Removed CreateWindow (use Draft call)
  30.          <7>     9/22/93    RR        Added OpenWindows and CloseWindows
  31.          <6>     9/22/93    RR        GetBaseMenuBar -> CopyBaseMenuBar
  32.          <5>     9/10/93    RR        Get/SetBaseMenuBar now take an XMPMenuBar*
  33.         <3>          6/30/93    RCR        Separate Abstract and Concrete classes.
  34.         <3>          4/29/93    RCR        Rename Includes.
  35.          <2>     4/23/93    RCR        Added Initialize and Purge
  36.          <1>     4/9/93        RCR        first checked in
  37.  
  38.     To Do:
  39. */
  40.  
  41. #ifndef _WINSTAT_
  42. #define _WINSTAT_
  43.  
  44. #ifndef _XMPOBJ_
  45. #include "XMPObj.h"
  46. #endif
  47.  
  48. #ifndef _XMPTYPES_
  49. #include "XMPTypes.h"
  50. #endif
  51.  
  52. //=====================================================================================
  53. // Classes defined in this interface
  54. //=====================================================================================
  55.  
  56. class XMPWindowState;                // The list of XMPWindows
  57.  
  58. //=====================================================================================
  59. // Classes used by this interface
  60. //=====================================================================================
  61.  
  62. class XMPSession;
  63. class XMPDraft;
  64. class XMPWindow;
  65. class XMPMenuBar;
  66. class XMPWindowIterator;                
  67. class XMPFrame;
  68.  
  69. //=====================================================================================
  70. // XMPWindowState
  71. //=====================================================================================
  72.  
  73. class XMPAbsWindowState : public XMPObject
  74. {
  75.   public:
  76.  
  77.     XMPAbsWindowState() {} 
  78.  
  79.     XMPVMethod ~XMPAbsWindowState() {}        
  80.             
  81.     XMPVMethod    XMPSize    Purge(XMPSize size)
  82.         = 0;
  83.     
  84.     XMPVMethod XMPWindow*     CreateWindow(XMPPlatformWindow newWindow, 
  85.                                      XMPBoolean isRootWindow,
  86.                                      XMPBoolean isResizable,
  87.                                      XMPBoolean isFloating,
  88.                                      XMPBoolean shouldSave,
  89.                                      XMPPart* rootPart,
  90.                                      XMPTypeToken viewType,
  91.                                      XMPTypeToken presentation,
  92.                                      XMPFrame* sourceFrame)
  93.         = 0;
  94.  
  95.     XMPVMethod XMPWindow*    GetWindow(XMPID id)
  96.         = 0;
  97.         
  98.     XMPVMethod void Internalize(XMPDraft* draft)
  99.         = 0;
  100.         
  101.     XMPVMethod void Externalize(XMPDraft* draft)
  102.         = 0;
  103.         
  104.     XMPMethod void SetDefaultWindowTitles(XMPDraft* draft)
  105.         = 0;
  106.  
  107.     XMPVMethod void OpenWindows(XMPDraft* draft)
  108.         = 0;
  109.         
  110.     XMPVMethod void CloseWindows(XMPDraft* draft)
  111.         = 0;
  112.         
  113.     XMPVMethod XMPUShort GetWindowCount()
  114.         = 0;
  115.     
  116.     XMPVMethod XMPUShort GetRootWindowCount(XMPDraft* draft)
  117.         = 0;
  118.     
  119.     XMPVMethod XMPUShort GetTotalRootWindowCount()
  120.         = 0;
  121.  
  122.     XMPVMethod XMPBoolean IsXMPWindow(XMPPlatformWindow aWindow)
  123.         = 0;
  124.         
  125.     XMPVMethod XMPWindow* GetXMPWindow(XMPPlatformWindow aWindow)
  126.         = 0;
  127.     
  128.     XMPVMethod XMPWindowIterator* CreateWindowIterator()
  129.         = 0;
  130.         
  131.     XMPVMethod XMPWindow* GetActiveWindow()
  132.         = 0;
  133.     
  134.     XMPVMethod void SetBaseMenuBar(XMPMenuBar* theMenuBar)
  135.         = 0;
  136.     
  137.     XMPVMethod XMPMenuBar* CopyBaseMenuBar()
  138.         = 0;
  139.  
  140.     XMPVMethod void AdjustPartMenus()
  141.          = 0;
  142. };
  143.  
  144. #ifdef PLATFORM_MACINTOSH
  145. #ifndef _WINSTATM_
  146. #include "WinStatM.h"
  147. #endif
  148. #endif
  149.  
  150. #endif // _WINSTAT_
  151.