home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / PROGRAMS / EM_EDIT / SAMPLES.ZIP / OWL / APXPRINT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-19  |  1.3 KB  |  51 lines

  1. #if !defined(__apxprint_h)              // Sentry use file only if it's not already included.
  2. #define __apxprint_h
  3.  
  4. /*  Main emedit
  5.     Early Morning Software
  6.     Copyright ⌐ 1994. All Rights Reserved.
  7.  
  8.     SUBSYSTEM:    emedit.exe Application
  9.     FILE:         APXPrint.H
  10.     AUTHOR:       Ted Stockwell
  11.  
  12.  
  13.     OVERVIEW
  14.     ========
  15.     Class definition for APXPrintOut (TPrintOut).      
  16. */
  17.  
  18.  
  19. #include <owl\owlpch.h>
  20. #pragma hdrstop
  21.  
  22. #include <owl\printer.h>
  23.  
  24.  
  25. class APXPrintOut : public TPrintout {
  26. public:
  27.     APXPrintOut (TPrinter *printer, const char far *title, TWindow* window, BOOL scale = TRUE) : TPrintout(title)
  28.       { Printer = printer; Window = window; Scale = scale; MapMode = MM_ANISOTROPIC; }
  29.  
  30.     void GetDialogInfo (int& minPage, int& maxPage, int& selFromPage, int& selToPage);
  31.     void BeginPrinting ();
  32.     void BeginPage (TRect &clientR);
  33.     void PrintPage (int page, TRect& rect, unsigned flags);
  34.     void EndPage ();
  35.     void SetBanding (BOOL b)        { Banding = b; }
  36.     BOOL HasPage (int pageNumber);
  37.  
  38. protected:
  39.     TWindow     *Window;
  40.     BOOL        Scale;
  41.     TPrinter    *Printer;
  42.     int         MapMode;
  43.  
  44.     int         PrevMode;
  45.     TSize       OldVExt, OldWExt;
  46.     TRect       OrgR;
  47. };
  48.  
  49.  
  50. #endif          // __apxprint_h sentry.
  51.