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

  1. /*
  2.     File:        XMPWindow.h
  3.  
  4.     Contains:    Interface to XMPAbsWindow class
  5.  
  6.     Written by:    Richard Rodseth
  7.  
  8.     Copyright:    ⌐ 1993-94 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <20>      2/9/94    NP        Tiger Team cleanup.
  13.         <19>      2/7/94    NP        Tiger Team doings.
  14.         <18>      2/1/94    CC        Added ShouldShowLinks() and
  15.                                     SetShouldShowLinks().
  16.         <17>     1/12/94    RR        Added CloseAndRemove
  17.         <16>    12/20/93    VL        XMPWindow is a RefCntObject now.
  18.         <15>    12/14/93    Té        InitWindow changes.  Internalize,
  19.                                     Initialize went away.
  20.         <14>     12/8/93    RR        Cleanup XMPMethod, includes and forward
  21.                                     declarations.
  22.         <13>    11/17/93    RR        Added ShouldSave accessors
  23.         <12>    11/12/93    JBS        use Facets
  24.         <11>    10/21/93    RR        Added IsRootWindow()
  25.         <10>     10/6/93    JA        Fwd-ref XMPPoint struct since it's not in
  26.                                     PlfmType.h anymore.
  27.          <9>     9/29/93    VL        Added InitializePersistent.
  28.          <8>     9/22/93    RR        Added Open() method
  29.          <7>      9/3/93    JBS        updated to use new Layout class
  30.          <4>    6/29/93    RCR        Separate Abstract/Concrete class
  31.          <3>    5/18/93    RCR        Deregister->Unregister
  32.          <2>    4/26/93    RCR        Added missing Initialize/Purge
  33.          <1>    4/9/93    RCR        First Checked In
  34.  
  35.     To Do:
  36. */
  37.  
  38. #ifndef _WINDOW_
  39. #define _WINDOW_
  40.  
  41. #ifndef _REFCTOBJ_
  42. #include "RefCtObj.h"
  43. #endif
  44.  
  45. #ifndef _XMPTYPES_
  46. #include "XMPTypes.h"
  47. #endif
  48.  
  49. //=====================================================================================
  50. // Classes defined in this interface
  51. //=====================================================================================
  52.  
  53. class XMPWindow;
  54.  
  55. //=====================================================================================
  56. // Classes used by this interface
  57. //=====================================================================================
  58.  
  59. class XMPFacet;
  60. class XMPFrame;
  61. class XMPStorageUnit;
  62.  
  63. struct XMPPoint;
  64.  
  65. //=====================================================================================
  66. // XMPWindow
  67. //=====================================================================================
  68.  
  69. class XMPAbsWindow : public XMPRefCntObject
  70. {    
  71. public:
  72.  
  73.     XMPAbsWindow(){}     
  74.     
  75.     XMPVMethod ~XMPAbsWindow() {}
  76.  
  77.     XMPVMethod XMPSize Purge(XMPSize size)
  78.         = 0;
  79.         
  80.     XMPVMethod XMPPlatformWindow GetPlatformWindow()
  81.         = 0;
  82.     
  83.     XMPVMethod XMPFrame*    GetSourceFrame()
  84.         = 0;
  85.     
  86.     XMPVMethod XMPFrame*    GetRootFrame()
  87.         = 0;
  88.     
  89.     XMPVMethod XMPFacet* GetFacetUnderPoint(XMPPoint aPoint)
  90.         = 0;
  91.     
  92.     XMPVMethod XMPBoolean IsActive()
  93.         = 0;
  94.     
  95.     XMPVMethod void Open()
  96.         = 0;
  97.     
  98.     XMPVMethod void Close()
  99.         = 0;
  100.     
  101.     XMPVMethod void CloseAndRemove()
  102.         = 0;
  103.     
  104.     XMPVMethod void Show()
  105.         = 0;
  106.     
  107.     XMPVMethod void Hide()
  108.         = 0;
  109.     
  110.     XMPVMethod XMPBoolean IsShown()
  111.         = 0;
  112.         
  113.     XMPVMethod XMPBoolean IsResizable()
  114.         = 0;
  115.     
  116.     XMPVMethod XMPBoolean IsRootWindow()
  117.         = 0;
  118.  
  119.     XMPVMethod XMPBoolean ShouldSave()
  120.         = 0;
  121.         
  122.     XMPVMethod void SetShouldSave(XMPBoolean shouldSave)
  123.         = 0;
  124.         
  125.     XMPVMethod XMPBoolean ShouldShowLinks()
  126.         = 0;
  127.         
  128.     XMPVMethod void SetShouldShowLinks(XMPBoolean shouldShowLinks)
  129.         = 0;
  130.  
  131. public: // Private by convention
  132.     
  133.     XMPVMethod void HandleActivateEvent(XMPEventData theEvent)
  134.         = 0;
  135.     
  136.     XMPVMethod void HandleUpdateEvent(XMPEventData theEvent)
  137.         = 0;
  138.     
  139.     XMPVMethod void Resized()
  140.         = 0;
  141. };
  142.  
  143. #ifdef PLATFORM_MACINTOSH
  144. #ifndef _WindowM_
  145. #include "WindowM.h"
  146. #endif
  147. #endif
  148.  
  149. #endif // _WINDOW_
  150.