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 / Graphics3D / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.8 KB  |  57 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. // ---- MacOS includes -----
  14. #include "QD3DViewer.h"        // TQ3ViewerObject
  15.  
  16. //=======================================================================
  17. class FW_CMenuEvent;
  18. class FW_CPrintHandler;
  19.  
  20. //=======================================================================
  21. class CGraphics3DFrame : public FW_CFrame {
  22. public:
  23.     FW_DECLARE_AUTO(CGraphics3DFrame)
  24.     
  25.                         CGraphics3DFrame(Environment* ev, 
  26.                                     ODFrame* odFrame, 
  27.                                     FW_CPresentation* presentation, 
  28.                                     CGraphics3DContent* content);
  29.     virtual             ~CGraphics3DFrame();
  30. protected:
  31. // overrides
  32.     virtual void        FacetAdded(Environment* ev, ODFacet* facet, 
  33.                                     unsigned short facetCount);
  34.     virtual void        Draw(Environment *ev, 
  35.                              ODFacet* odFacet, 
  36.                              ODShape* invalidShape);
  37.     virtual void        FrameShapeChanged(Environment* ev);
  38.     virtual FW_Handled    DoAdjustMenus(Environment* ev,
  39.                                       FW_CMenuBar* menuBar, 
  40.                                       FW_Boolean hasMenuFocus,
  41.                                       FW_Boolean isRoot);
  42.     virtual FW_Handled    DoMenu(Environment* ev,
  43.                                const FW_CMenuEvent& theMenuEvent);
  44.     virtual FW_Handled     DoMouseDown(Environment* ev, 
  45.                                 const FW_CMouseEvent& theMouseEvent);
  46. // overrides printing
  47.     virtual FW_CPrintHandler*    NewPrintHandler(Environment* ev);
  48.     virtual    FW_Boolean            IsCurrentlyPrintable(Environment* ev) const;
  49.     virtual void                GetPrintContentExtent(Environment *ev, FW_CPoint& extent) const;
  50. // new members
  51. private:
  52.     TQ3ViewerObject        fViewer;
  53. };
  54.  
  55. //=======================================================================
  56. #endif
  57.