]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/printpalm.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/printpalm.cpp
3 // Purpose: wxPalmPrinter framework
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
27 // Don't use the Windows printer if we're in wxUniv mode and using
28 // the PostScript architecture
29 #if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
32 #include "wx/window.h"
33 #include "wx/palmos/private.h"
37 #include "wx/msgdlg.h"
40 #include "wx/dcprint.h"
43 #include "wx/palmos/printpalm.h"
44 #include "wx/printdlg.h"
45 #include "wx/palmos/private.h"
47 // ---------------------------------------------------------------------------
49 // ---------------------------------------------------------------------------
51 // ---------------------------------------------------------------------------
53 // ---------------------------------------------------------------------------
55 IMPLEMENT_DYNAMIC_CLASS(wxPalmPrinter
, wxPrinterBase
)
56 IMPLEMENT_CLASS(wxPalmPrintPreview
, wxPrintPreviewBase
)
58 // ===========================================================================
60 // ===========================================================================
62 // ---------------------------------------------------------------------------
64 // ---------------------------------------------------------------------------
66 wxPalmPrinter::wxPalmPrinter(wxPrintDialogData
*data
)
71 wxPalmPrinter::~wxPalmPrinter()
75 bool wxPalmPrinter::Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
)
80 wxDC
* wxPalmPrinter::PrintDialog(wxWindow
*parent
)
87 bool wxPalmPrinter::Setup(wxWindow
*parent
)
96 wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout
*printout
,
97 wxPrintout
*printoutForPrinting
,
98 wxPrintDialogData
*data
)
99 : wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
103 wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout
*printout
,
104 wxPrintout
*printoutForPrinting
,
106 : wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
110 wxPalmPrintPreview::~wxPalmPrintPreview()
114 bool wxPalmPrintPreview::Print(bool interactive
)
119 void wxPalmPrintPreview::DetermineScaling()
125 // wxUSE_PRINTING_ARCHITECTURE