]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/os2/print.cpp
Test the commit announcement bot some more by fixing more gtk signal callback handler...
[wxWidgets.git] / src / os2 / print.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/os2/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/list.h"
17 #include "wx/utils.h"
18 #include "wx/app.h"
19#endif
20
21#if wxUSE_PRINTING_ARCHITECTURE
22
23#include "wx/os2/printos2.h"
24#include "wx/generic/prntdlgg.h"
25
26IMPLEMENT_DYNAMIC_CLASS(wxOS2Printer, wxPrinterBase)
27IMPLEMENT_CLASS(wxOS2PrintPreview, wxPrintPreviewBase)
28
29/*
30 * Printer
31 */
32
33wxOS2Printer::wxOS2Printer(wxPrintDialogData *data):
34 wxPrinterBase(data)
35{
36}
37
38wxOS2Printer::~wxOS2Printer()
39{
40}
41
42bool wxOS2Printer::Print(wxWindow *WXUNUSED(parent),
43 wxPrintout *WXUNUSED(printout),
44 bool WXUNUSED(prompt))
45{
46 // TODO. See wxPostScriptPrinter::Print for hints.
47 return false;
48}
49
50wxDC* wxOS2Printer::PrintDialog(wxWindow *WXUNUSED(parent))
51{
52// TODO:
53/*
54 wxPrintDialog dialog(parent, & m_printData);
55 return (dialog.GetPrintDC());
56*/
57 return NULL;
58}
59
60bool wxOS2Printer::Setup(wxWindow *WXUNUSED(parent))
61{
62// TODO:
63/*
64 wxPrintDialog dialog(parent, & m_printData);
65#if WXWIN_COMPATIBILITY_2_4
66 dialog.GetPrintData().SetSetupDialog(true);
67#endif
68 return (dialog.ShowModal() == wxID_OK);
69*/
70 return false;
71}
72
73/*
74 * Print preview
75 */
76
77wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintDialogData *data):
78 wxPrintPreviewBase(printout, printoutForPrinting, data)
79{
80 DetermineScaling();
81}
82
83wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
84 wxPrintPreviewBase(printout, printoutForPrinting, data)
85{
86 DetermineScaling();
87}
88
89wxOS2PrintPreview::~wxOS2PrintPreview()
90{
91}
92
93bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive))
94{
95 if (!m_printPrintout)
96 return false;
97// wxOS2Printer printer(&m_printData);
98// return printer.Print(m_previewFrame, m_printPrintout, interactive);
99 return false;
100}
101
102void wxOS2PrintPreview::DetermineScaling()
103{
104 // TODO
105}
106
107#endif //wxUSE_PRINTING_ARCHITECTURE