#if !defined(__apxprev_h) // Sentry, use file only if it's not already included. #define __apxprev_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 PreviewWindow (Print Preview). */ #include #pragma hdrstop #include "apxprint.h" #include "oc3wlapp.rh" //{{TDecoratedFrame = PreviewWindow}} class PreviewWindow : public TDecoratedFrame { public: PreviewWindow (TWindow *parentWindow, TPrinter *printer, TWindow* currWindow, const char far* title, TLayoutWindow* client); ~PreviewWindow (); int PageNumber; TWindow *CurrWindow; TControlBar *PreviewSpeedBar; TPreviewPage *Page1; TPreviewPage *Page2; TPrinter *Printer; TPrintDC *PrnDC; TSize *PrintExtent; APXPrintOut *Printout; private: TLayoutWindow *Client; void SpeedBarState (); void PPR_PreviousEnable (TCommandEnabler &tce); void PPR_NextEnable (TCommandEnabler &tce); void PPR_Previous (); void PPR_Next (); void PPR_OneUp (); void PPR_TwoUpEnable (TCommandEnabler &tce); void PPR_TwoUp (); void PPR_Done (); void CmPrintEnable (TCommandEnabler &tce); void CmPrint (); //{{PreviewWindowVIRTUAL_BEGIN}} protected: virtual void SetupWindow (); //{{PreviewWindowVIRTUAL_END}} //{{PreviewWindowRSP_TBL_BEGIN}} protected: //{{PreviewWindowRSP_TBL_END}} DECLARE_RESPONSE_TABLE(PreviewWindow); }; //{{PreviewWindow}} #endif // __apxprev_h sentry.