home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / expert.pak / APXPRINT.H < prev    next >
C/C++ Source or Header  |  1997-07-23  |  1KB  |  55 lines

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