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