]> git.saurik.com Git - wxWidgets.git/blame - src/os2/print.cpp
Fix recreating of wxBitmapComboBox using untyped client data.
[wxWidgets.git] / src / os2 / print.cpp
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
cb7d7375 2// Name: src/os2/print.cpp
0e320a79 3// Purpose: Print framework
11e59d47 4// Author: David Webster
0e320a79 5// Modified by:
11e59d47 6// Created: 10/14/99
11e59d47 7// Copyright: (c) David Webster
65571936 8// Licence: wxWindows licence
0e320a79
DW
9/////////////////////////////////////////////////////////////////////////////
10
cdf1e714
DW
11#include "wx/wxprec.h"
12
8ecff181
WS
13#if wxUSE_PRINTING_ARCHITECTURE
14
cdf1e714 15#ifndef WX_PRECOMP
521bf4ff
WS
16 #include <stdio.h>
17 #include "wx/list.h"
18 #include "wx/utils.h"
19 #include "wx/app.h"
0e320a79
DW
20#endif
21
21708c73 22#include "wx/os2/printos2.h"
11e59d47 23#include "wx/generic/prntdlgg.h"
0e320a79 24
7804d121
DW
25IMPLEMENT_DYNAMIC_CLASS(wxOS2Printer, wxPrinterBase)
26IMPLEMENT_CLASS(wxOS2PrintPreview, wxPrintPreviewBase)
0e320a79
DW
27
28/*
29 * Printer
30 */
11e59d47 31
21708c73
SN
32wxOS2Printer::wxOS2Printer(wxPrintDialogData *data):
33 wxPrinterBase(data)
0e320a79
DW
34{
35}
36
7804d121 37wxOS2Printer::~wxOS2Printer()
0e320a79
DW
38{
39}
40
cb7d7375
WS
41bool wxOS2Printer::Print(wxWindow *WXUNUSED(parent),
42 wxPrintout *WXUNUSED(printout),
43 bool WXUNUSED(prompt))
0e320a79
DW
44{
45 // TODO. See wxPostScriptPrinter::Print for hints.
cb7d7375 46 return false;
0e320a79
DW
47}
48
cb7d7375 49wxDC* wxOS2Printer::PrintDialog(wxWindow *WXUNUSED(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
cb7d7375 59bool wxOS2Printer::Setup(wxWindow *WXUNUSED(parent))
0e320a79 60{
11e59d47
DW
61// TODO:
62/*
0e320a79 63 wxPrintDialog dialog(parent, & m_printData);
0e320a79 64 return (dialog.ShowModal() == wxID_OK);
11e59d47 65*/
cb7d7375 66 return false;
0e320a79
DW
67}
68
69/*
70 * Print preview
71 */
72
21708c73
SN
73wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintDialogData *data):
74 wxPrintPreviewBase(printout, printoutForPrinting, data)
75{
76 DetermineScaling();
77}
78
7804d121 79wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
0e320a79
DW
80 wxPrintPreviewBase(printout, printoutForPrinting, data)
81{
82 DetermineScaling();
83}
84
7804d121 85wxOS2PrintPreview::~wxOS2PrintPreview()
0e320a79
DW
86{
87}
88
cb7d7375 89bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive))
0e320a79
DW
90{
91 if (!m_printPrintout)
cb7d7375 92 return false;
21708c73 93// wxOS2Printer printer(&m_printData);
11e59d47 94// return printer.Print(m_previewFrame, m_printPrintout, interactive);
cb7d7375 95 return false;
0e320a79
DW
96}
97
7804d121 98void wxOS2PrintPreview::DetermineScaling()
0e320a79
DW
99{
100 // TODO
101}
102
7e99520b 103#endif //wxUSE_PRINTING_ARCHITECTURE