]> git.saurik.com Git - wxWidgets.git/blame - src/os2/print.cpp
Fix after removal of PRIOR/NEXT in common headers (duplicates change in GTK2 sources).
[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
14#ifndef WX_PRECOMP
521bf4ff
WS
15 #include <stdio.h>
16 #include "wx/list.h"
17 #include "wx/utils.h"
18 #include "wx/app.h"
0e320a79
DW
19#endif
20
7e99520b 21#if wxUSE_PRINTING_ARCHITECTURE
cdf1e714 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);
cb7d7375
WS
65#if WXWIN_COMPATIBILITY_2_4
66 dialog.GetPrintData().SetSetupDialog(true);
67#endif
0e320a79 68 return (dialog.ShowModal() == wxID_OK);
11e59d47 69*/
cb7d7375 70 return false;
0e320a79
DW
71}
72
73/*
74 * Print preview
75 */
76
21708c73
SN
77wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintDialogData *data):
78 wxPrintPreviewBase(printout, printoutForPrinting, data)
79{
80 DetermineScaling();
81}
82
7804d121 83wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
0e320a79
DW
84 wxPrintPreviewBase(printout, printoutForPrinting, data)
85{
86 DetermineScaling();
87}
88
7804d121 89wxOS2PrintPreview::~wxOS2PrintPreview()
0e320a79
DW
90{
91}
92
cb7d7375 93bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive))
0e320a79
DW
94{
95 if (!m_printPrintout)
cb7d7375 96 return false;
21708c73 97// wxOS2Printer printer(&m_printData);
11e59d47 98// return printer.Print(m_previewFrame, m_printPrintout, interactive);
cb7d7375 99 return false;
0e320a79
DW
100}
101
7804d121 102void wxOS2PrintPreview::DetermineScaling()
0e320a79
DW
103{
104 // TODO
105}
106
7e99520b 107#endif //wxUSE_PRINTING_ARCHITECTURE