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 / Draw / Sources / PrintHdl.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.8 KB  |  58 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PrintHdl.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef PRINTHDL_H
  13. #define PRINTHDL_H
  14.  
  15. #ifndef FWPRHDLR_H
  16. #include "FWPrHdlr.h"
  17. #endif
  18.  
  19. //========================================================================================
  20. // Forward Declaration
  21. //========================================================================================
  22.  
  23. class CDrawFrame;
  24. class CDrawPartContent;
  25. class FW_CPresentation;
  26.  
  27. //========================================================================================
  28. // CDrawPrintHandler
  29. //========================================================================================
  30.  
  31. class CDrawPrintHandler : public FW_CPrintHandler
  32. {
  33. //----------------------------------------------------------------------------------------
  34. // Initialization/destruction
  35. //
  36. public:
  37.     CDrawPrintHandler(Environment* ev, CDrawFrame* frame, CDrawPartContent* content, FW_CPresentation* presentation);
  38.     virtual ~CDrawPrintHandler();
  39.  
  40. //----------------------------------------------------------------------------------------
  41. // Inherited API
  42. //
  43. public:        
  44.     virtual FW_Boolean        IsCurrentlyPrintable(Environment* ev) const;
  45.     virtual void            GetPrintContentExtent(Environment *ev, FW_CPoint& extent) const;
  46. //    virtual FW_CFrame*        CreatePrintFrame(Environment* ev);
  47. //    virtual void            ReleasePrintFrame(Environment* ev);
  48.     
  49. //----------------------------------------------------------------------------------------
  50. // Data Members
  51. //
  52. public:        
  53.     CDrawPartContent*        fPartContent;
  54.     FW_CPresentation*        fPrintPresentation;
  55.     CDrawFrame*                fDrawFrame;
  56. };
  57.  
  58. #endif