]>
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "printpalm.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
33 // Don't use the Windows printer if we're in wxUniv mode and using
34 // the PostScript architecture
35 #if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
38 #include "wx/window.h"
39 #include "wx/palmos/private.h"
43 #include "wx/msgdlg.h"
47 #include "wx/palmos/printpalm.h"
48 #include "wx/dcprint.h"
49 #include "wx/printdlg.h"
51 #include "wx/palmos/private.h"
53 // ---------------------------------------------------------------------------
55 // ---------------------------------------------------------------------------
57 // ---------------------------------------------------------------------------
59 // ---------------------------------------------------------------------------
61 IMPLEMENT_DYNAMIC_CLASS(wxPalmPrinter
, wxPrinterBase
)
62 IMPLEMENT_CLASS(wxPalmPrintPreview
, wxPrintPreviewBase
)
64 // ===========================================================================
66 // ===========================================================================
68 // ---------------------------------------------------------------------------
70 // ---------------------------------------------------------------------------
72 wxPalmPrinter::wxPalmPrinter(wxPrintDialogData
*data
)
77 wxPalmPrinter::~wxPalmPrinter()
81 bool wxPalmPrinter::Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
)
86 wxDC
* wxPalmPrinter::PrintDialog(wxWindow
*parent
)
88 wxDC
* dc
= (wxDC
*) NULL
;
93 bool wxPalmPrinter::Setup(wxWindow
*parent
)
102 wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout
*printout
,
103 wxPrintout
*printoutForPrinting
,
104 wxPrintDialogData
*data
)
105 : wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
109 wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout
*printout
,
110 wxPrintout
*printoutForPrinting
,
112 : wxPrintPreviewBase(printout
, printoutForPrinting
, data
)
116 wxPalmPrintPreview::~wxPalmPrintPreview()
120 bool wxPalmPrintPreview::Print(bool interactive
)
125 void wxPalmPrintPreview::DetermineScaling()
130 // wxUSE_PRINTING_ARCHITECTURE