#if !defined(__apxprint_h) // Sentry use file only if it's not already included. #define __apxprint_h /***************************************************************************** * * Copyright (c) 1999, KL GROUP INC. All Rights Reserved. * http://www.klgroup.com * * This file is provided for demonstration and educational uses only. * Permission to use, copy, modify and distribute this file for * any purpose and without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies, and that the name of KL Group not be used in advertising * or publicity pertaining to this material without the specific, * prior written permission of an authorized representative of * KL Group. * * KL GROUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY * OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. KL GROUP SHALL NOT BE LIABLE FOR ANY * DAMAGES SUFFERED BY USERS AS A RESULT OF USING, MODIFYING OR * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. */ /* Project oc3owl OVERVIEW ======== Class definition for APXPrintOut (TPrintOut). */ #include #pragma hdrstop 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.