]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/print.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/print.cpp
3 // Purpose: Print framework
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
14 #if wxUSE_PRINTING_ARCHITECTURE
23 #include "wx/os2/printos2.h"
24 #include "wx/generic/prntdlgg.h"
26 IMPLEMENT_DYNAMIC_CLASS(wxOS2Printer
, wxPrinterBase
)
27 IMPLEMENT_CLASS(wxOS2PrintPreview
, wxPrintPreviewBase
)
33 wxOS2Printer::wxOS2Printer(wxPrintDialogData
*data
):
38 wxOS2Printer::~wxOS2Printer()
42 bool wxOS2Printer::Print(wxWindow
*WXUNUSED(parent
),
43 wxPrintout
*WXUNUSED(printout
),
44 bool WXUNUSED(prompt
))
46 // TODO. See wxPostScriptPrinter::Print for hints.
50 wxDC
* wxOS2Printer::PrintDialog(wxWindow
*WXUNUSED(parent
))
54 wxPrintDialog dialog(parent, & m_printData);
55 return (dialog.GetPrintDC());
60 bool wxOS2Printer::Setup(wxWindow
*WXUNUSED(parent
))
64 wxPrintDialog dialog(parent, & m_printData);
65 return (dialog.ShowModal() == wxID_OK);
74 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
, wxPrintDialogData
*data
):
75 wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
80 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
, wxPrintData
*data
):
81 wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
86 wxOS2PrintPreview::~wxOS2PrintPreview()
90 bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive
))
94 // wxOS2Printer printer(&m_printData);
95 // return printer.Print(m_previewFrame, m_printPrintout, interactive);
99 void wxOS2PrintPreview::DetermineScaling()
104 #endif //wxUSE_PRINTING_ARCHITECTURE