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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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
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();
65 DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowsPrintPreview
)