1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/printwin.h
3 // Purpose: wxWindowsPrinter, wxWindowsPrintPreview classes
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PRINTWIN_H_
12 #define _WX_PRINTWIN_H_
14 #include "wx/prntbase.h"
16 // ---------------------------------------------------------------------------
17 // Represents the printer: manages printing a wxPrintout object
18 // ---------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxWindowsPrinter
: public wxPrinterBase
22 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter
)
25 wxWindowsPrinter(wxPrintDialogData
*data
= NULL
);
27 virtual bool Print(wxWindow
*parent
,
31 virtual wxDC
*PrintDialog(wxWindow
*parent
);
32 virtual bool Setup(wxWindow
*parent
);
35 wxDECLARE_NO_COPY_CLASS(wxWindowsPrinter
);
38 // ---------------------------------------------------------------------------
39 // wxPrintPreview: programmer creates an object of this class to preview a
41 // ---------------------------------------------------------------------------
43 class WXDLLIMPEXP_CORE wxWindowsPrintPreview
: public wxPrintPreviewBase
46 wxWindowsPrintPreview(wxPrintout
*printout
,
47 wxPrintout
*printoutForPrinting
= NULL
,
48 wxPrintDialogData
*data
= NULL
);
49 wxWindowsPrintPreview(wxPrintout
*printout
,
50 wxPrintout
*printoutForPrinting
,
52 virtual ~wxWindowsPrintPreview();
54 virtual bool Print(bool interactive
);
55 virtual void DetermineScaling();
58 #if wxUSE_ENH_METAFILE
59 virtual bool RenderPageIntoBitmap(wxBitmap
& bmp
, int pageNum
);
62 DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowsPrintPreview
)