home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
tybc4
/
xped4
/
apxprint.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-13
|
1KB
|
51 lines
#if !defined(__apxprint_h) // Sentry use file only if it's not already included.
#define __apxprint_h
/* Main xped4
Copyright ⌐ 1993. All Rights Reserved.
SUBSYSTEM: xped4.exe Application
FILE: APXPrint.H
AUTHOR:
OVERVIEW
========
Class definition for APXPrintOut (TPrintOut).
*/
#include <owl\owlpch.h>
#pragma hdrstop
#include <owl\printer.h>
class APXPrintOut : public TPrintout {
public:
APXPrintOut (TPrinter *printer, const char far *title, TWindow* window, BOOL scale = TRUE) : TPrintout(title)
{ Printer = printer; Window = window; Scale = scale; MapMode = MM_ANISOTROPIC; }
void GetDialogInfo (int& minPage, int& maxPage, int& selFromPage, int& selToPage);
void BeginPrinting ();
void BeginPage (TRect &clientR);
void PrintPage (int page, TRect& rect, unsigned flags);
void EndPage ();
void SetBanding (BOOL b) { Banding = b; }
BOOL HasPage (int pageNumber);
protected:
TWindow *Window;
BOOL Scale;
TPrinter *Printer;
int MapMode;
int PrevMode;
TSize OldVExt, OldWExt;
TRect OrgR;
};
#endif // __apxprint_h sentry.