]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/printpalm.cpp
implement wxGTK wxBitmapButton in terms of wxButton
[wxWidgets.git] / src / palmos / printpalm.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/printpalm.cpp
3 // Purpose: wxPalmPrinter framework
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ===========================================================================
13 // declarations
14 // ===========================================================================
15
16 // ---------------------------------------------------------------------------
17 // headers
18 // ---------------------------------------------------------------------------
19
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
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)
30
31 #ifndef WX_PRECOMP
32 #include "wx/window.h"
33 #include "wx/palmos/private.h"
34 #include "wx/utils.h"
35 #include "wx/dc.h"
36 #include "wx/app.h"
37 #include "wx/msgdlg.h"
38 #include "wx/intl.h"
39 #include "wx/log.h"
40 #include "wx/dcprint.h"
41 #endif
42
43 #include "wx/palmos/printpalm.h"
44 #include "wx/printdlg.h"
45 #include "wx/palmos/private.h"
46
47 // ---------------------------------------------------------------------------
48 // private functions
49 // ---------------------------------------------------------------------------
50
51 // ---------------------------------------------------------------------------
52 // wxWin macros
53 // ---------------------------------------------------------------------------
54
55 IMPLEMENT_DYNAMIC_CLASS(wxPalmPrinter, wxPrinterBase)
56 IMPLEMENT_CLASS(wxPalmPrintPreview, wxPrintPreviewBase)
57
58 // ===========================================================================
59 // implementation
60 // ===========================================================================
61
62 // ---------------------------------------------------------------------------
63 // Printer
64 // ---------------------------------------------------------------------------
65
66 wxPalmPrinter::wxPalmPrinter(wxPrintDialogData *data)
67 : wxPrinterBase(data)
68 {
69 }
70
71 wxPalmPrinter::~wxPalmPrinter()
72 {
73 }
74
75 bool wxPalmPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
76 {
77 return false;
78 }
79
80 wxDC* wxPalmPrinter::PrintDialog(wxWindow *parent)
81 {
82 wxDC* dc = NULL;
83
84 return dc;
85 }
86
87 bool wxPalmPrinter::Setup(wxWindow *parent)
88 {
89 return false;
90 }
91
92 /*
93 * Print preview
94 */
95
96 wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout *printout,
97 wxPrintout *printoutForPrinting,
98 wxPrintDialogData *data)
99 : wxPrintPreviewBase(printout, printoutForPrinting, data)
100 {
101 }
102
103 wxPalmPrintPreview::wxPalmPrintPreview(wxPrintout *printout,
104 wxPrintout *printoutForPrinting,
105 wxPrintData *data)
106 : wxPrintPreviewBase(printout, printoutForPrinting, data)
107 {
108 }
109
110 wxPalmPrintPreview::~wxPalmPrintPreview()
111 {
112 }
113
114 bool wxPalmPrintPreview::Print(bool interactive)
115 {
116 return false;
117 }
118
119 void wxPalmPrintPreview::DetermineScaling()
120 {
121 // TODO
122 }
123
124 #endif
125 // wxUSE_PRINTING_ARCHITECTURE