home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Hello / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.5 KB  |  90 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 1 $
  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 ODDragResult CanAcceptDrop(Environment* ev, ODDragItemIterator* dragInfo);
  56.  
  57.     virtual FW_Boolean    DoAdjustMenus(Environment* ev,
  58.                                       FW_CMenuBar* menuBar, 
  59.                                       FW_Boolean hasMenuFocus,
  60.                                       FW_Boolean isRoot);
  61.  
  62.     virtual FW_Boolean    DoMouseDown(Environment* ev, const FW_CMouseEvent& theMouseEvent);
  63.  
  64.     virtual void        Draw(Environment *ev, 
  65.                              ODFacet* odFacet, 
  66.                              ODShape* invalidShape);
  67.  
  68.     virtual void        FrameShapeChanged(Environment* ev);
  69.     virtual void        CreateSubViews(Environment* ev);
  70.  
  71.     virtual FW_CDragCommand* NewDragCommand(Environment *ev, 
  72.                                             FW_CFrame* theFrame,
  73.                                             const FW_CMouseEvent& theMouseEvent);
  74.     virtual FW_CDropCommand* NewDropCommand(Environment *ev,
  75.                                             FW_CFrame* frame,
  76.                                             ODDragItemIterator* dropInfo, 
  77.                                             ODFacet* odFacet, 
  78.                                             const FW_CPoint& dropPoint);
  79.  
  80.     virtual FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  81.  
  82. //----------------------------------------------------------------------------------------
  83. //    Data Members
  84. //
  85.   private:
  86.     CHelloContent*         fHelloContent;
  87. };
  88.  
  89. #endif
  90.