]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/os2/print.cpp
[ 1216436 ] cleanup 'shadow variable' warnings from gcc in headers.
[wxWidgets.git] / src / os2 / print.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: print.cpp
3// Purpose: Print framework
4// Author: David Webster
5// Modified by:
6// Created: 10/14/99
7// RCS-ID: $Id$
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
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"
20#endif
21
22#if wxUSE_PRINTING_ARCHITECTURE
23
24#include "wx/os2/printos2.h"
25#include "wx/generic/prntdlgg.h"
26
27IMPLEMENT_DYNAMIC_CLASS(wxOS2Printer, wxPrinterBase)
28IMPLEMENT_CLASS(wxOS2PrintPreview, wxPrintPreviewBase)
29
30/*
31 * Printer
32 */
33
34wxOS2Printer::wxOS2Printer(wxPrintDialogData *data):
35 wxPrinterBase(data)
36{
37}
38
39wxOS2Printer::~wxOS2Printer()
40{
41}
42
43bool wxOS2Printer::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
44{
45 // TODO. See wxPostScriptPrinter::Print for hints.
46 return FALSE;
47}
48
49wxDC* wxOS2Printer::PrintDialog(wxWindow *parent)
50{
51// TODO:
52/*
53 wxPrintDialog dialog(parent, & m_printData);
54 return (dialog.GetPrintDC());
55*/
56 return NULL;
57}
58
59bool wxOS2Printer::Setup(wxWindow *parent)
60{
61// TODO:
62/*
63 wxPrintDialog dialog(parent, & m_printData);
64 dialog.GetPrintData().SetSetupDialog(TRUE);
65 return (dialog.ShowModal() == wxID_OK);
66*/
67 return FALSE;
68}
69
70/*
71 * Print preview
72 */
73
74wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintDialogData *data):
75 wxPrintPreviewBase(printout, printoutForPrinting, data)
76{
77 DetermineScaling();
78}
79
80wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
81 wxPrintPreviewBase(printout, printoutForPrinting, data)
82{
83 DetermineScaling();
84}
85
86wxOS2PrintPreview::~wxOS2PrintPreview()
87{
88}
89
90bool wxOS2PrintPreview::Print(bool interactive)
91{
92 if (!m_printPrintout)
93 return FALSE;
94// wxOS2Printer printer(&m_printData);
95// return printer.Print(m_previewFrame, m_printPrintout, interactive);
96 return FALSE;
97}
98
99void wxOS2PrintPreview::DetermineScaling()
100{
101 // TODO
102}
103
104#endif //wxUSE_PRINTING_ARCHITECTURE