1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/printmac.h
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"
18 * Represents the printer: manages printing a wxPrintout object
21 class WXDLLIMPEXP_CORE wxMacPrinter
: public wxPrinterBase
23 DECLARE_DYNAMIC_CLASS(wxMacPrinter
)
26 wxMacPrinter(wxPrintDialogData
*data
= NULL
);
27 virtual ~wxMacPrinter();
29 virtual bool Print(wxWindow
*parent
,
32 virtual wxDC
* PrintDialog(wxWindow
*parent
);
33 virtual bool Setup(wxWindow
*parent
);
39 * Programmer creates an object of this class to preview a wxPrintout.
42 class WXDLLIMPEXP_CORE wxMacPrintPreview
: public wxPrintPreviewBase
44 DECLARE_CLASS(wxMacPrintPreview
)
47 wxMacPrintPreview(wxPrintout
*printout
,
48 wxPrintout
*printoutForPrinting
= NULL
,
49 wxPrintDialogData
*data
= NULL
);
50 wxMacPrintPreview(wxPrintout
*printout
,
51 wxPrintout
*printoutForPrinting
,
53 virtual ~wxMacPrintPreview();
55 virtual bool Print(bool interactive
);
56 virtual void DetermineScaling();