1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWindowsPrinter, wxWindowsPrintPreview classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart and Markus Holzem
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
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 WXFARPROC lpAbortProc
;
32 wxWindowsPrinter(wxPrintData
*data
= NULL
);
33 ~wxWindowsPrinter(void);
35 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
36 virtual bool PrintDialog(wxWindow
*parent
);
37 virtual bool Setup(wxWindow
*parent
);
42 * Programmer creates an object of this class to preview a wxPrintout.
45 class WXDLLEXPORT wxWindowsPrintPreview
: public wxPrintPreviewBase
47 DECLARE_CLASS(wxWindowsPrintPreview
)
50 wxWindowsPrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintData
*data
= NULL
);
51 ~wxWindowsPrintPreview(void);
53 virtual bool Print(bool interactive
);
54 virtual void DetermineScaling(void);