]> git.saurik.com Git - wxWidgets.git/blame - src/os2/print.cpp
cleanups after SciTech commit :-(
[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
7e99520b 22#if wxUSE_PRINTING_ARCHITECTURE
cdf1e714
DW
23
24#include "wx/os2/print.h"
11e59d47 25#include "wx/generic/prntdlgg.h"
0e320a79 26
0e320a79
DW
27IMPLEMENT_DYNAMIC_CLASS(wxPrinter, wxPrinterBase)
28IMPLEMENT_CLASS(wxPrintPreview, wxPrintPreviewBase)
0e320a79
DW
29
30/*
31 * Printer
32 */
11e59d47 33
0e320a79 34wxPrinter::wxPrinter(wxPrintData *data):
11e59d47 35 wxPrinterBase((wxPrintDialogData*)data)
0e320a79
DW
36{
37}
38
39wxPrinter::~wxPrinter()
40{
41}
42
43bool wxPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
44{
45 // TODO. See wxPostScriptPrinter::Print for hints.
46 return FALSE;
47}
48
11e59d47 49wxDC* wxPrinter::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
59bool wxPrinter::Setup(wxWindow *parent)
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
74wxPrintPreview::wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
75 wxPrintPreviewBase(printout, printoutForPrinting, data)
76{
77 DetermineScaling();
78}
79
80wxPrintPreview::~wxPrintPreview()
81{
82}
83
84bool wxPrintPreview::Print(bool interactive)
85{
86 if (!m_printPrintout)
87 return FALSE;
11e59d47
DW
88// wxPrinter printer(&m_printData);
89// return printer.Print(m_previewFrame, m_printPrintout, interactive);
90 return FALSE;
0e320a79
DW
91}
92
93void wxPrintPreview::DetermineScaling()
94{
95 // TODO
96}
97
7e99520b 98#endif //wxUSE_PRINTING_ARCHITECTURE