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(__APPLE__)
16 #pragma interface "printwin.h"
19 #include "wx/prntbase.h"
22 * Represents the printer: manages printing a wxPrintout object
25 class WXDLLEXPORT wxMacPrinter
: public wxPrinterBase
27 DECLARE_DYNAMIC_CLASS(wxMacPrinter
)
30 wxMacPrinter(wxPrintDialogData
*data
= NULL
);
31 virtual ~wxMacPrinter();
33 virtual bool Print(wxWindow
*parent
,
36 virtual wxDC
* PrintDialog(wxWindow
*parent
);
37 virtual bool Setup(wxWindow
*parent
);
43 * Programmer creates an object of this class to preview a wxPrintout.
46 class WXDLLEXPORT wxMacPrintPreview
: public wxPrintPreviewBase
48 DECLARE_CLASS(wxMacPrintPreview
)
51 wxMacPrintPreview(wxPrintout
*printout
,
52 wxPrintout
*printoutForPrinting
= NULL
,
53 wxPrintDialogData
*data
= NULL
);
54 wxMacPrintPreview(wxPrintout
*printout
,
55 wxPrintout
*printoutForPrinting
,
57 virtual ~wxMacPrintPreview();
59 virtual bool Print(bool interactive
);
60 virtual void DetermineScaling();