]>
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"
29 // Don't use the Windows printer if we're in wxUniv mode and using
30 // the PostScript architecture
31 #if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
34 #include "wx/window.h"
35 #include "wx/palmos/private.h"
39 #include "wx/msgdlg.h"
43 #include "wx/palmos/printpalm.h"
44 #include "wx/dcprint.h"
45 #include "wx/printdlg.h"
47 #include "wx/palmos/private.h"
49 // ---------------------------------------------------------------------------
51 // ---------------------------------------------------------------------------
53 // ---------------------------------------------------------------------------
55 // ---------------------------------------------------------------------------
57 IMPLEMENT_DYNAMIC_CLASS(wxPalmPrinter
, wxPrinterBase
)
58 IMPLEMENT_CLASS(wxPalmPrintPreview
, wxPrintPreviewBase
)
60 // ===========================================================================
62 // ===========================================================================
64 // ---------------------------------------------------------------------------
66 // ---------------------------------------------------------------------------
68 wxPalmPrinter::wxPalmPrinter(wxPrintDialogData
*data
)
73 wxPalmPrinter::~wxPalmPrinter()
77 bool wxPalmPrinter::Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
)
82 wxDC
* wxPalmPrinter::PrintDialog(wxWindow
*parent
)
84 wxDC
* dc
= (wxDC
*) NULL
;
89 bool wxPalmPrinter::Setup(wxWindow
*parent
)
98 wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout
*printout
,
99 wxPrintout
*printoutForPrinting
,
100 wxPrintDialogData
*data
)
101 : wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
105 wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout
*printout
,
106 wxPrintout
*printoutForPrinting
,
108 : wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
112 wxPalmPrintPreview::~wxPalmPrintPreview()
116 bool wxPalmPrintPreview::Print(bool interactive
)
121 void wxPalmPrintPreview::DetermineScaling()
126 // wxUSE_PRINTING_ARCHITECTURE