]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/printwin.h
show the function in which the assert failure occured if the compiler supports it
[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 #include "wx/prntbase.h"
16
17 // ---------------------------------------------------------------------------
18 // Represents the printer: manages printing a wxPrintout object
19 // ---------------------------------------------------------------------------
20
21 class WXDLLEXPORT wxWindowsPrinter : public wxPrinterBase
22 {
23 DECLARE_DYNAMIC_CLASS(wxWindowsPrinter)
24
25 public:
26 wxWindowsPrinter(wxPrintDialogData *data = NULL);
27 virtual ~wxWindowsPrinter();
28
29 virtual bool Print(wxWindow *parent,
30 wxPrintout *printout,
31 bool prompt = true);
32 virtual wxDC* PrintDialog(wxWindow *parent);
33 virtual bool Setup(wxWindow *parent);
34
35 private:
36 WXFARPROC m_lpAbortProc;
37
38 DECLARE_NO_COPY_CLASS(wxWindowsPrinter)
39 };
40
41 // ---------------------------------------------------------------------------
42 // wxPrintPreview: programmer creates an object of this class to preview a
43 // wxPrintout.
44 // ---------------------------------------------------------------------------
45
46 class WXDLLEXPORT wxWindowsPrintPreview : public wxPrintPreviewBase
47 {
48 public:
49 wxWindowsPrintPreview(wxPrintout *printout,
50 wxPrintout *printoutForPrinting = NULL,
51 wxPrintDialogData *data = NULL);
52 wxWindowsPrintPreview(wxPrintout *printout,
53 wxPrintout *printoutForPrinting,
54 wxPrintData *data);
55 virtual ~wxWindowsPrintPreview();
56
57 virtual bool Print(bool interactive);
58 virtual void DetermineScaling();
59
60 private:
61 DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowsPrintPreview)
62 };
63
64 #endif
65 // _WX_PRINTWIN_H_