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 / ODFDev / Hello / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.5 KB  |  88 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. //========================================================================================
  24. // Forward Declarations
  25. //========================================================================================
  26.  
  27. class FW_CMenuEvent;
  28.  
  29. class CHelloPart;
  30. class CHelloContent;
  31.  
  32. //========================================================================================
  33. // CHelloFrame
  34. //========================================================================================
  35.  
  36. class CHelloFrame : public FW_CFrame, public FW_MDroppableFrame, public FW_MDraggableFrame
  37. {
  38. //----------------------------------------------------------------------------------------
  39. //    Initialization/Destruction
  40. //
  41.   public:
  42.   
  43.     FW_DECLARE_AUTO(CHelloFrame)
  44.     
  45.     CHelloFrame(Environment* ev, 
  46.                 ODFrame* odFrame, 
  47.                 FW_CPresentation* presentation, 
  48.                 CHelloContent* content);
  49.  
  50.     virtual ~CHelloFrame();
  51.     
  52. //----------------------------------------------------------------------------------------
  53. //    Inherited API
  54. //
  55.     virtual FW_Handled            DoAdjustMenus(Environment* ev,
  56.                                       FW_CMenuBar* menuBar, 
  57.                                       FW_Boolean hasMenuFocus,
  58.                                       FW_Boolean isRoot);
  59.  
  60.     virtual FW_Handled            DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  61.  
  62.     virtual void                Draw(Environment *ev, 
  63.                                      ODFacet* odFacet, 
  64.                                      ODShape* invalidShape);
  65.  
  66.     virtual void                FrameShapeChanged(Environment* ev);
  67.     virtual void                CreateSubViews(Environment* ev);
  68.  
  69.     virtual FW_CDragCommand*     NewDragCommand(Environment *ev, 
  70.                                             FW_CFrame* theFrame,
  71.                                             const FW_CMouseEvent& theMouseEvent);
  72.     virtual FW_CDropCommand*     NewDropCommand(Environment *ev,
  73.                                             FW_CFrame* frame,
  74.                                             ODDragItemIterator* dropInfo, 
  75.                                             ODFacet* odFacet, 
  76.                                             const FW_CPoint& dropPoint);
  77.  
  78.     virtual FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  79.  
  80. //----------------------------------------------------------------------------------------
  81. //    Data Members
  82. //
  83.   private:
  84.     CHelloContent*         fHelloContent;
  85. };
  86.  
  87. #endif
  88.