]> git.saurik.com Git - wxWidgets.git/blob - src/os2/print.cpp
Added header vs. library version check to configure,
[wxWidgets.git] / src / os2 / print.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: 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 #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"
20 #endif
21
22
23 #include "wx/os2/print.h"
24 #include "wx/generic/prntdlgg.h"
25
26 #if !USE_SHARED_LIBRARY
27 IMPLEMENT_DYNAMIC_CLASS(wxPrinter, wxPrinterBase)
28 IMPLEMENT_CLASS(wxPrintPreview, wxPrintPreviewBase)
29 #endif
30
31 /*
32 * Printer
33 */
34
35 wxPrinter::wxPrinter(wxPrintData *data):
36 wxPrinterBase((wxPrintDialogData*)data)
37 {
38 }
39
40 wxPrinter::~wxPrinter()
41 {
42 }
43
44 bool wxPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
45 {
46 // TODO. See wxPostScriptPrinter::Print for hints.
47 return FALSE;
48 }
49
50 wxDC* wxPrinter::PrintDialog(wxWindow *parent)
51 {
52 // TODO:
53 /*
54 wxPrintDialog dialog(parent, & m_printData);
55 return (dialog.GetPrintDC());
56 */
57 return NULL;
58 }
59
60 bool wxPrinter::Setup(wxWindow *parent)
61 {
62 // TODO:
63 /*
64 wxPrintDialog dialog(parent, & m_printData);
65 dialog.GetPrintData().SetSetupDialog(TRUE);
66 return (dialog.ShowModal() == wxID_OK);
67 */
68 return FALSE;
69 }
70
71 /*
72 * Print preview
73 */
74
75 wxPrintPreview::wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
76 wxPrintPreviewBase(printout, printoutForPrinting, data)
77 {
78 DetermineScaling();
79 }
80
81 wxPrintPreview::~wxPrintPreview()
82 {
83 }
84
85 bool wxPrintPreview::Print(bool interactive)
86 {
87 if (!m_printPrintout)
88 return FALSE;
89 // wxPrinter printer(&m_printData);
90 // return printer.Print(m_previewFrame, m_printPrintout, interactive);
91 return FALSE;
92 }
93
94 void wxPrintPreview::DetermineScaling()
95 {
96 // TODO
97 }
98