home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / tybc4 / xped4 / apxprev.h < prev    next >
C/C++ Source or Header  |  1994-02-13  |  2KB  |  72 lines

  1. #if !defined(__apxprev_h)               // Sentry, use file only if it's not already included.
  2. #define __apxprev_h
  3.  
  4. /*  Main xped4
  5.     
  6.     Copyright ⌐ 1993. All Rights Reserved.
  7.  
  8.     SUBSYSTEM:    xped4.exe Application
  9.     FILE:         APXPrev.H
  10.     AUTHOR:       
  11.  
  12.  
  13.     OVERVIEW
  14.     ========
  15.     Class definition for PreviewWindow (Print Preview).      
  16. */
  17.  
  18.  
  19. #include <owl\owlpch.h>
  20. #pragma hdrstop
  21.  
  22. #include <owl\controlb.h>
  23. #include <owl\printdia.h>
  24. #include <owl\preview.h>
  25.  
  26. #include "apxprint.h"
  27. #include "xped4app.rh"
  28.  
  29.  
  30. //{{TDecoratedFrame = PreviewWindow}}
  31. class PreviewWindow : public TDecoratedFrame {
  32. public:
  33.     PreviewWindow (TWindow *parentWindow, TPrinter *printer, TWindow* currWindow, const char far* title, TLayoutWindow* client);
  34.     ~PreviewWindow ();
  35.  
  36.     int             PageNumber;
  37.  
  38.     TWindow         *CurrWindow;
  39.     TControlBar     *PreviewSpeedBar;
  40.     TPreviewPage    *Page1;
  41.     TPreviewPage    *Page2;
  42.     TPrinter        *Printer;
  43.  
  44.     TPrintDC        *PrnDC;
  45.     TSize           *PrintExtent;
  46.     APXPrintOut     *Printout;
  47.  
  48. private:
  49.     TLayoutWindow   *Client;
  50.  
  51.     void SpeedBarState ();
  52.  
  53. //{{PreviewWindowVIRTUAL_BEGIN}}
  54. protected:
  55.     virtual void SetupWindow ();
  56. //{{PreviewWindowVIRTUAL_END}}
  57.  
  58. //{{PreviewWindowRSP_TBL_BEGIN}}
  59. protected:
  60.     void PPR_Previous ();
  61.     void PPR_Next ();
  62.     void PPR_OneUp ();
  63.     void PPR_TwoUp ();
  64.     void EvNCLButtonDown (UINT wHitTestCode, TPoint & point);
  65.     void EvClose ();
  66. //{{PreviewWindowRSP_TBL_END}}
  67. DECLARE_RESPONSE_TABLE(PreviewWindow);
  68. };    //{{PreviewWindow}}
  69.  
  70.  
  71. #endif      // __apxprev_h sentry.
  72.