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