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