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"
21 // ---------------------------------------------------------------------------
22 // Represents the printer: manages printing a wxPrintout object
23 // ---------------------------------------------------------------------------
25 class WXDLLEXPORT wxWindowsPrinter
: public wxPrinterBase
27 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter
)
30 wxWindowsPrinter(wxPrintDialogData
*data
= NULL
);
31 virtual ~wxWindowsPrinter();
33 virtual bool Print(wxWindow
*parent
,
36 virtual wxDC
* PrintDialog(wxWindow
*parent
);
37 virtual bool Setup(wxWindow
*parent
);
40 WXFARPROC m_lpAbortProc
;
43 // ---------------------------------------------------------------------------
44 // wxPrintPreview: programmer creates an object of this class to preview a
46 // ---------------------------------------------------------------------------
48 class WXDLLEXPORT wxWindowsPrintPreview
: public wxPrintPreviewBase
50 DECLARE_CLASS(wxWindowsPrintPreview
)
53 wxWindowsPrintPreview(wxPrintout
*printout
,
54 wxPrintout
*printoutForPrinting
= NULL
,
55 wxPrintDialogData
*data
= NULL
);
56 wxWindowsPrintPreview(wxPrintout
*printout
,
57 wxPrintout
*printoutForPrinting
,
59 virtual ~wxWindowsPrintPreview();
61 virtual bool Print(bool interactive
);
62 virtual void DetermineScaling();