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 / Developer University / DU Projects / DataCopy / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.9 KB  |  62 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. #ifndef FWRECT_H
  14. #include <FWRect.h>            // FW_CRect
  15. #endif
  16.  
  17. //=======================================================================
  18. class FW_CClipboardCommand;
  19. class FW_CDragCommand;
  20. class FW_CDropCommand;
  21. class CDataCopyContent;
  22.  
  23. //=======================================================================
  24. class CDataCopyFrame : public FW_CFrame, public FW_MDraggableFrame, public  FW_MDroppableFrame {
  25. public:
  26.     FW_DECLARE_AUTO(CDataCopyFrame)
  27.     
  28.                         CDataCopyFrame(Environment* ev, 
  29.                                     ODFrame* odFrame, 
  30.                                     FW_CPresentation* presentation, 
  31.                                     CDataCopyContent* content);
  32.     virtual             ~CDataCopyFrame();
  33. protected:
  34. // overrides
  35.     virtual void                    Draw(Environment *ev, 
  36.                                             ODFacet* odFacet, 
  37.                                             ODShape* invalidShape);
  38.     virtual FW_Handled                 DoMouseDown(Environment* ev, 
  39.                                             const FW_CMouseEvent& theMouseEvent);
  40.     virtual FW_Handled                DoAdjustMenus(Environment* ev, 
  41.                                             FW_CMenuBar* menuBar, 
  42.                                             FW_Boolean hasMenuFocus,
  43.                                             FW_Boolean isRoot);
  44.     virtual FW_CClipboardCommand*    NewClipboardCommand(Environment* ev, 
  45.                                             ODCommandID commandID);
  46.     virtual FW_CDragCommand*        NewDragCommand(Environment *ev, 
  47.                                             FW_CFrame* theFrame, 
  48.                                             const FW_CMouseEvent& theMouseEvent);
  49.     virtual FW_CDropCommand*         NewDropCommand(Environment *ev,
  50.                                             FW_CFrame* frame,
  51.                                             ODDragItemIterator* dropInfo, 
  52.                                             ODFacet* odFacet, 
  53.                                             const FW_CPoint& dropPoint);
  54. // new members
  55. private:
  56.     CDataCopyContent*     fDataCopyContent;
  57.     FW_CRect             fFrameRect;
  58. };
  59.  
  60. //=======================================================================
  61. #endif
  62.