home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / APXSDI.PAK / APXPRINT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.4 KB  |  53 lines

  1. //----------------------------------------------------------------------------
  2. //  Project ApxSdi
  3. //  Borland International
  4. //  Copyright ⌐ 1996. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:    ApxSdi Application
  7. //  FILE:         apxprint.h
  8. //  AUTHOR:
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  Class definition for TApxPrintout (TPrintout).
  13. //
  14. //----------------------------------------------------------------------------
  15. #if !defined(apxprint_h)  // Sentry use file only if it's not already included.
  16. #define apxprint_h
  17.  
  18. #include <owl/printer.h>
  19.  
  20.  
  21. class TApxPrintout : public TPrintout {
  22.   public:
  23.     TApxPrintout(TPrinter* printer, const char far* title, TWindow* window, bool scale = true)
  24.       : TPrintout(title)
  25.       {
  26.         Printer = printer;
  27.         Window = window;
  28.         Scale = scale;
  29.         MapMode = MM_ANISOTROPIC;
  30.         TotalPages = INT_MAX;
  31.       }
  32.  
  33.     void GetDialogInfo(int& minPage, int& maxPage, int& selFromPage, int& selToPage);
  34.     void BeginPage(TRect& clientR);
  35.     void PrintPage(int page, TRect& rect, unsigned flags);
  36.     void EndPage();
  37.     void SetBanding(bool b)        { Banding = b; }
  38.     bool HasPage(int pageNumber);
  39.  
  40.   protected:
  41.     TWindow*  Window;
  42.     bool      Scale;
  43.     TPrinter* Printer;
  44.     int       MapMode;
  45.  
  46.     int       PrevMode;
  47.     TSize     OldVExt, OldWExt;
  48.     TRect     OrgR;
  49.     int       TotalPages; 
  50. };
  51.  
  52. #endif  // apxprint_h
  53.