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_
15 #include "wx/prntbase.h"
17 // ---------------------------------------------------------------------------
18 // Represents the printer: manages printing a wxPrintout object
19 // ---------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxWindowsPrinter
: public wxPrinterBase
23 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter
)
26 wxWindowsPrinter(wxPrintDialogData
*data
= NULL
);
27 virtual ~wxWindowsPrinter();
29 virtual bool Print(wxWindow
*parent
,
33 virtual wxDC
*PrintDialog(wxWindow
*parent
);
34 virtual bool Setup(wxWindow
*parent
);
37 WXFARPROC m_lpAbortProc
;
39 DECLARE_NO_COPY_CLASS(wxWindowsPrinter
)
42 // ---------------------------------------------------------------------------
43 // wxPrintPreview: programmer creates an object of this class to preview a
45 // ---------------------------------------------------------------------------
47 class WXDLLIMPEXP_CORE wxWindowsPrintPreview
: public wxPrintPreviewBase
50 wxWindowsPrintPreview(wxPrintout
*printout
,
51 wxPrintout
*printoutForPrinting
= NULL
,
52 wxPrintDialogData
*data
= NULL
);
53 wxWindowsPrintPreview(wxPrintout
*printout
,
54 wxPrintout
*printoutForPrinting
,
56 virtual ~wxWindowsPrintPreview();
58 virtual bool Print(bool interactive
);
59 virtual void DetermineScaling();
62 DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowsPrintPreview
)