]>
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 #if WXWIN_COMPATIBILITY_2_4
66 dialog.GetPrintData().SetSetupDialog(true);
68 return (dialog.ShowModal() == wxID_OK);
77 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
, wxPrintDialogData
*data
):
78 wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
83 wxOS2PrintPreview::wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
, wxPrintData
*data
):
84 wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
89 wxOS2PrintPreview::~wxOS2PrintPreview()
93 bool wxOS2PrintPreview::Print(bool WXUNUSED(interactive
))
97 // wxOS2Printer printer(&m_printData);
98 // return printer.Print(m_previewFrame, m_printPrintout, interactive);
102 void wxOS2PrintPreview::DetermineScaling()
107 #endif //wxUSE_PRINTING_ARCHITECTURE