1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWindowsPrinter, wxWindowsPrintPreview classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRINTWIN_H_
13 #define _WX_PRINTWIN_H_
16 #pragma interface "printwin.h"
19 #include "wx/prntbase.h"
22 * Represents the printer: manages printing a wxPrintout object
25 class WXDLLEXPORT wxWindowsPrinter
: public wxPrinterBase
27 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter
)
30 wxWindowsPrinter(wxPrintData
*data
= NULL
);
31 ~wxWindowsPrinter(void);
33 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
34 virtual bool PrintDialog(wxWindow
*parent
);
35 virtual bool Setup(wxWindow
*parent
);
38 WXFARPROC m_lpAbortProc
;
43 * Programmer creates an object of this class to preview a wxPrintout.
46 class WXDLLEXPORT wxWindowsPrintPreview
: public wxPrintPreviewBase
48 DECLARE_CLASS(wxWindowsPrintPreview
)
51 wxWindowsPrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintData
*data
= NULL
);
52 ~wxWindowsPrintPreview(void);
54 virtual bool Print(bool interactive
);
55 virtual void DetermineScaling(void);