1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/printmac.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"
17 * Represents the printer: manages printing a wxPrintout object
20 class WXDLLIMPEXP_CORE wxMacPrinter
: public wxPrinterBase
22 DECLARE_DYNAMIC_CLASS(wxMacPrinter
)
25 wxMacPrinter(wxPrintDialogData
*data
= NULL
);
26 virtual ~wxMacPrinter();
28 virtual bool Print(wxWindow
*parent
,
31 virtual wxDC
* PrintDialog(wxWindow
*parent
);
32 virtual bool Setup(wxWindow
*parent
);
38 * Programmer creates an object of this class to preview a wxPrintout.
41 class WXDLLIMPEXP_CORE wxMacPrintPreview
: public wxPrintPreviewBase
43 DECLARE_CLASS(wxMacPrintPreview
)
46 wxMacPrintPreview(wxPrintout
*printout
,
47 wxPrintout
*printoutForPrinting
= NULL
,
48 wxPrintDialogData
*data
= NULL
);
49 wxMacPrintPreview(wxPrintout
*printout
,
50 wxPrintout
*printoutForPrinting
,
52 virtual ~wxMacPrintPreview();
54 virtual bool Print(bool interactive
);
55 virtual void DetermineScaling();