]> git.saurik.com Git - wxWidgets.git/blob - src/os2/print.cpp
Another RTL fix.
[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 #if WXWIN_COMPATIBILITY_2_4
66 dialog.GetPrintData().SetSetupDialog(true);
67 #endif
68 return (dialog.ShowModal() == wxID_OK);
69 */
70 return false;
71 }
72
73 /*
74 * Print preview
75 */
76
77 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintDialogData *data):
78 wxPrintPreviewBase(printout, printoutForPrinting, data)
79 {
80 DetermineScaling();
81 }
82
83 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
84 wxPrintPreviewBase(printout, printoutForPrinting, data)
85 {
86 DetermineScaling();
87 }
88
89 wxOS2PrintPreview::~wxOS2PrintPreview()
90 {
91 }
92
93 bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive))
94 {
95 if (!m_printPrintout)
96 return false;
97 // wxOS2Printer printer(&m_printData);
98 // return printer.Print(m_previewFrame, m_printPrintout, interactive);
99 return false;
100 }
101
102 void wxOS2PrintPreview::DetermineScaling()
103 {
104 // TODO
105 }
106
107 #endif //wxUSE_PRINTING_ARCHITECTURE