home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Tools & Goodies / IntlTest / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-09-12  |  2.9 KB  |  104 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FRAME_H
  11. #define FRAME_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWFRAME_H
  16. #include "FWFrame.h"
  17. #endif
  18.  
  19. #ifndef FWDRGDRP_H
  20. #include "FWDrgDrp.h"
  21. #endif
  22.  
  23. // ----- Foundation Layer -----
  24.  
  25. #ifndef FWRECEVR_H
  26. #include "FWRecevr.h"
  27. #endif
  28.  
  29. //========================================================================================
  30. // Forward Declarations
  31. //========================================================================================
  32.  
  33. class CIntlTestPart;
  34. class CIntlTestView;
  35. class CIntlTestSelection;
  36. class FW_CEditView;
  37. class FW_CViewTabber;
  38.  
  39. //========================================================================================
  40. // CIntlTestFrame
  41. //========================================================================================
  42.  
  43. class CIntlTestFrame : public FW_CFrame, public FW_MDroppableFrame, public FW_MReceiver
  44. {
  45.   public:
  46.     FW_DECLARE_AUTO(CIntlTestFrame)
  47.  
  48.     CIntlTestFrame(    Environment* ev, 
  49.                     ODFrame* odFrame, 
  50.                     FW_CPresentation* presentation, 
  51.                     CIntlTestPart* part);
  52.  
  53.     virtual ~CIntlTestFrame();
  54.     
  55. //----------------------------------------------------------------------------------------
  56. //    Inherited API
  57. //
  58.     virtual void            CreateSubViews(Environment* ev);
  59.  
  60.     virtual void            Draw(Environment *ev, 
  61.                                  ODFacet* odFacet, 
  62.                                  ODShape* invalidShape);
  63.  
  64.     virtual void            FacetAdded(Environment* ev, ODFacet* facet, unsigned short facetCount);
  65.  
  66.     virtual FW_CDropCommand* NewDropCommand(Environment *ev,
  67.                                             FW_CFrame* frame,
  68.                                             ODDragItemIterator* dropInfo, 
  69.                                             ODFacet* odFacet, 
  70.                                             const FW_CPoint& dropPoint);
  71.  
  72.     virtual FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  73.  
  74.     // ----- FW_MReceiver overrides ----- 
  75.     virtual void         HandleNotification(Environment* ev, const FW_CNotification& notification);
  76.  
  77. //----------------------------------------------------------------------------------------
  78. //    New Stuff
  79. //
  80.     FW_CEditView*        FindEditView(Environment* ev, ODID id);
  81.     ODID                GetActiveEditViewId(Environment* ev);
  82.     CIntlTestPart*        GetIntlTestPart();
  83.  
  84.     void                GetContentRect(Environment* ev, FW_CRect& rect, FW_CPoint& extent);
  85.     FW_CEditView*        HitTest(Environment* ev, const FW_CPoint& where);
  86.  
  87. //----------------------------------------------------------------------------------------
  88. //    Data Members
  89. //
  90.   private:
  91.     CIntlTestPart*         fTestPart;
  92.     CIntlTestView*        fTestView;
  93.     CIntlTestSelection*    fTestSelection;
  94.     FW_CViewTabber*        fViewTabber;
  95. };
  96.  
  97. //========================================================================================
  98. inline CIntlTestPart* CIntlTestFrame::GetIntlTestPart()
  99. {
  100.     return fTestPart;
  101. }
  102.  
  103. #endif
  104.