]> git.saurik.com Git - wxWidgets.git/blame - src/os2/print.cpp
Removed WXWIN_COMPATIBILITY_2_2 together with code guarded by it.
[wxWidgets.git] / src / os2 / print.cpp
CommitLineData
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 23
21708c73 24#include "wx/os2/printos2.h"
11e59d47 25#include "wx/generic/prntdlgg.h"
0e320a79 26
7804d121
DW
27IMPLEMENT_DYNAMIC_CLASS(wxOS2Printer, wxPrinterBase)
28IMPLEMENT_CLASS(wxOS2PrintPreview, wxPrintPreviewBase)
0e320a79
DW
29
30/*
31 * Printer
32 */
11e59d47 33
21708c73
SN
34wxOS2Printer::wxOS2Printer(wxPrintDialogData *data):
35 wxPrinterBase(data)
0e320a79
DW
36{
37}
38
7804d121 39wxOS2Printer::~wxOS2Printer()
0e320a79
DW
40{
41}
42
7804d121 43bool wxOS2Printer::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
0e320a79
DW
44{
45 // TODO. See wxPostScriptPrinter::Print for hints.
46 return FALSE;
47}
48
7804d121 49wxDC* 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 59bool 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
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
7804d121 90bool wxOS2PrintPreview::Print(bool interactive)
0e320a79
DW
91{
92 if (!m_printPrintout)
93 return FALSE;
21708c73 94// wxOS2Printer printer(&m_printData);
11e59d47
DW
95// return printer.Print(m_previewFrame, m_printPrintout, interactive);
96 return FALSE;
0e320a79
DW
97}
98
7804d121 99void wxOS2PrintPreview::DetermineScaling()
0e320a79
DW
100{
101 // TODO
102}
103
7e99520b 104#endif //wxUSE_PRINTING_ARCHITECTURE