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