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
;
42 DECLARE_NO_COPY_CLASS(wxWindowsPrinter
)
45 // ---------------------------------------------------------------------------
46 // wxPrintPreview: programmer creates an object of this class to preview a
48 // ---------------------------------------------------------------------------
50 class WXDLLEXPORT wxWindowsPrintPreview
: public wxPrintPreviewBase
52 DECLARE_CLASS(wxWindowsPrintPreview
)
55 wxWindowsPrintPreview(wxPrintout
*printout
,
56 wxPrintout
*printoutForPrinting
= NULL
,
57 wxPrintDialogData
*data
= NULL
);
58 wxWindowsPrintPreview(wxPrintout
*printout
,
59 wxPrintout
*printoutForPrinting
,
61 virtual ~wxWindowsPrintPreview();
63 virtual bool Print(bool interactive
);
64 virtual void DetermineScaling();