]> git.saurik.com Git - wxWidgets.git/blame - src/os2/print.cpp
Move constant strings to .rodata/.data.rel.ro ELF segment from .data by making them...
[wxWidgets.git] / src / os2 / print.cpp
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
cb7d7375 2// Name: src/os2/print.cpp
0e320a79 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
cb7d7375
WS
43bool wxOS2Printer::Print(wxWindow *WXUNUSED(parent),
44 wxPrintout *WXUNUSED(printout),
45 bool WXUNUSED(prompt))
0e320a79
DW
46{
47 // TODO. See wxPostScriptPrinter::Print for hints.
cb7d7375 48 return false;
0e320a79
DW
49}
50
cb7d7375 51wxDC* wxOS2Printer::PrintDialog(wxWindow *WXUNUSED(parent))
0e320a79 52{
11e59d47
DW
53// TODO:
54/*
0e320a79 55 wxPrintDialog dialog(parent, & m_printData);
11e59d47
DW
56 return (dialog.GetPrintDC());
57*/
58 return NULL;
0e320a79
DW
59}
60
cb7d7375 61bool wxOS2Printer::Setup(wxWindow *WXUNUSED(parent))
0e320a79 62{
11e59d47
DW
63// TODO:
64/*
0e320a79 65 wxPrintDialog dialog(parent, & m_printData);
cb7d7375
WS
66#if WXWIN_COMPATIBILITY_2_4
67 dialog.GetPrintData().SetSetupDialog(true);
68#endif
0e320a79 69 return (dialog.ShowModal() == wxID_OK);
11e59d47 70*/
cb7d7375 71 return false;
0e320a79
DW
72}
73
74/*
75 * Print preview
76 */
77
21708c73
SN
78wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintDialogData *data):
79 wxPrintPreviewBase(printout, printoutForPrinting, data)
80{
81 DetermineScaling();
82}
83
7804d121 84wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
0e320a79
DW
85 wxPrintPreviewBase(printout, printoutForPrinting, data)
86{
87 DetermineScaling();
88}
89
7804d121 90wxOS2PrintPreview::~wxOS2PrintPreview()
0e320a79
DW
91{
92}
93
cb7d7375 94bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive))
0e320a79
DW
95{
96 if (!m_printPrintout)
cb7d7375 97 return false;
21708c73 98// wxOS2Printer printer(&m_printData);
11e59d47 99// return printer.Print(m_previewFrame, m_printPrintout, interactive);
cb7d7375 100 return false;
0e320a79
DW
101}
102
7804d121 103void wxOS2PrintPreview::DetermineScaling()
0e320a79
DW
104{
105 // TODO
106}
107
7e99520b 108#endif //wxUSE_PRINTING_ARCHITECTURE