]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/printwin.h
wxBITMAP now uses XPM constructor for wxCocoa (like everything except wxMSW)
[wxWidgets.git] / include / wx / msw / printwin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: printwin.h
3 // Purpose: wxWindowsPrinter, wxWindowsPrintPreview classes
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_PRINTWIN_H_
13 #define _WX_PRINTWIN_H_
14
15 #ifdef __GNUG__
16 #pragma interface "printwin.h"
17 #endif
18
19 #include "wx/prntbase.h"
20
21 // ---------------------------------------------------------------------------
22 // Represents the printer: manages printing a wxPrintout object
23 // ---------------------------------------------------------------------------
24
25 class WXDLLEXPORT wxWindowsPrinter : public wxPrinterBase
26 {
27 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter)
28
29 public:
30 wxWindowsPrinter(wxPrintDialogData *data = NULL);
31 virtual ~wxWindowsPrinter();
32
33 virtual bool Print(wxWindow *parent,
34 wxPrintout *printout,
35 bool prompt = TRUE);
36 virtual wxDC* PrintDialog(wxWindow *parent);
37 virtual bool Setup(wxWindow *parent);
38
39 private:
40 WXFARPROC m_lpAbortProc;
41
42 DECLARE_NO_COPY_CLASS(wxWindowsPrinter)
43 };
44
45 // ---------------------------------------------------------------------------
46 // wxPrintPreview: programmer creates an object of this class to preview a
47 // wxPrintout.
48 // ---------------------------------------------------------------------------
49
50 class WXDLLEXPORT wxWindowsPrintPreview : public wxPrintPreviewBase
51 {
52 DECLARE_CLASS(wxWindowsPrintPreview)
53
54 public:
55 wxWindowsPrintPreview(wxPrintout *printout,
56 wxPrintout *printoutForPrinting = NULL,
57 wxPrintDialogData *data = NULL);
58 wxWindowsPrintPreview(wxPrintout *printout,
59 wxPrintout *printoutForPrinting,
60 wxPrintData *data);
61 virtual ~wxWindowsPrintPreview();
62
63 virtual bool Print(bool interactive);
64 virtual void DetermineScaling();
65 };
66
67 #endif
68 // _WX_PRINTWIN_H_