]> git.saurik.com Git - wxWidgets.git/blob - src/os2/print.cpp
Suppress error output from Unix system information functions.
[wxWidgets.git] / src / os2 / print.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/print.cpp
3 // Purpose: Print framework
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/14/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/wxprec.h"
13
14 #if wxUSE_PRINTING_ARCHITECTURE
15
16 #ifndef WX_PRECOMP
17 #include <stdio.h>
18 #include "wx/list.h"
19 #include "wx/utils.h"
20 #include "wx/app.h"
21 #endif
22
23 #include "wx/os2/printos2.h"
24 #include "wx/generic/prntdlgg.h"
25
26 IMPLEMENT_DYNAMIC_CLASS(wxOS2Printer, wxPrinterBase)
27 IMPLEMENT_CLASS(wxOS2PrintPreview, wxPrintPreviewBase)
28
29 /*
30 * Printer
31 */
32
33 wxOS2Printer::wxOS2Printer(wxPrintDialogData *data):
34 wxPrinterBase(data)
35 {
36 }
37
38 wxOS2Printer::~wxOS2Printer()
39 {
40 }
41
42 bool wxOS2Printer::Print(wxWindow *WXUNUSED(parent),
43 wxPrintout *WXUNUSED(printout),
44 bool WXUNUSED(prompt))
45 {
46 // TODO. See wxPostScriptPrinter::Print for hints.
47 return false;
48 }
49
50 wxDC* wxOS2Printer::PrintDialog(wxWindow *WXUNUSED(parent))
51 {
52 // TODO:
53 /*
54 wxPrintDialog dialog(parent, & m_printData);
55 return (dialog.GetPrintDC());
56 */
57 return NULL;
58 }
59
60 bool wxOS2Printer::Setup(wxWindow *WXUNUSED(parent))
61 {
62 // TODO:
63 /*
64 wxPrintDialog dialog(parent, & m_printData);
65 return (dialog.ShowModal() == wxID_OK);
66 */
67 return false;
68 }
69
70 /*
71 * Print preview
72 */
73
74 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintDialogData *data):
75 wxPrintPreviewBase(printout, printoutForPrinting, data)
76 {
77 DetermineScaling();
78 }
79
80 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
81 wxPrintPreviewBase(printout, printoutForPrinting, data)
82 {
83 DetermineScaling();
84 }
85
86 wxOS2PrintPreview::~wxOS2PrintPreview()
87 {
88 }
89
90 bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive))
91 {
92 if (!m_printPrintout)
93 return false;
94 // wxOS2Printer printer(&m_printData);
95 // return printer.Print(m_previewFrame, m_printPrintout, interactive);
96 return false;
97 }
98
99 void wxOS2PrintPreview::DetermineScaling()
100 {
101 // TODO
102 }
103
104 #endif //wxUSE_PRINTING_ARCHITECTURE