home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / GraphicsGX / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.5 KB  |  48 lines  |  [TEXT/CWIE]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0 d11 $
  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. //=======================================================================
  14. class CGraphicsGXPart;
  15. class FW_CPrintHandler;
  16. class FW_CGraphicContextGX;
  17.  
  18. //=======================================================================
  19. class CGraphicsGXFrame : public FW_CFrame {
  20. public:
  21.     FW_DECLARE_AUTO(CGraphicsGXFrame)
  22.                                 CGraphicsGXFrame(Environment* ev, 
  23.                                     ODFrame* odFrame, 
  24.                                     FW_CPresentation* presentation, 
  25.                                     CGraphicsGXPart* graphicsgxPart);
  26.     virtual                     ~CGraphicsGXFrame();
  27. protected:
  28. // overrides
  29.     virtual void                Draw(Environment *ev, 
  30.                                          ODFacet* odFacet, 
  31.                                          ODShape* invalidShape);
  32. // ----- Printing ------
  33.     virtual FW_CPrintHandler*    NewPrintHandler(Environment* ev);
  34.     virtual    FW_Boolean            IsCurrentlyPrintable(Environment* ev) const;
  35.     virtual void                GetPrintContentExtent(Environment *ev, FW_CPoint& extent) const;
  36. // new members
  37.     virtual void                MyDrawWithODF(Environment *ev, 
  38.                                              ODFacet* odFacet, 
  39.                                              ODShape* invalidShape);
  40.     virtual void                MyDrawGXBoxes(Environment *ev, 
  41.                                              FW_CGraphicContextGX& context);
  42.     virtual void                MyDrawGXText(Environment *ev, 
  43.                                              FW_CGraphicContextGX& context);
  44. };
  45.  
  46. //=======================================================================
  47. #endif
  48.