]>
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
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #include "wx/wxprec.h"
13 #if wxUSE_PRINTING_ARCHITECTURE
22 #include "wx/os2/printos2.h"
23 #include "wx/generic/prntdlgg.h"
25 IMPLEMENT_DYNAMIC_CLASS(wxOS2Printer
, wxPrinterBase
)
26 IMPLEMENT_CLASS(wxOS2PrintPreview
, wxPrintPreviewBase
)
32 wxOS2Printer::wxOS2Printer(wxPrintDialogData
*data
):
37 wxOS2Printer::~wxOS2Printer()
41 bool wxOS2Printer::Print(wxWindow
*WXUNUSED(parent
),
42 wxPrintout
*WXUNUSED(printout
),
43 bool WXUNUSED(prompt
))
45 // TODO. See wxPostScriptPrinter::Print for hints.
49 wxDC
* wxOS2Printer::PrintDialog(wxWindow
*WXUNUSED(parent
))
53 wxPrintDialog dialog(parent, & m_printData);
54 return (dialog.GetPrintDC());
59 bool wxOS2Printer::Setup(wxWindow
*WXUNUSED(parent
))
63 wxPrintDialog dialog(parent, & m_printData);
64 return (dialog.ShowModal() == wxID_OK);
73 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
, wxPrintDialogData
*data
):
74 wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
79 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
, wxPrintData
*data
):
80 wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
85 wxOS2PrintPreview::~wxOS2PrintPreview()
89 bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive
))
93 // wxOS2Printer printer(&m_printData);
94 // return printer.Print(m_previewFrame, m_printPrintout, interactive);
98 void wxOS2PrintPreview::DetermineScaling()
103 #endif //wxUSE_PRINTING_ARCHITECTURE