]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/dcprint.cpp
Committing in .
[wxWidgets.git] / src / palmos / dcprint.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/dcprint.cpp
3 // Purpose: wxPrinterDC class
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 #if wxUSE_PRINTING_ARCHITECTURE
28
29 #include "wx/dcprint.h"
30
31 #ifndef WX_PRECOMP
32 #include "wx/string.h"
33 #include "wx/log.h"
34 #include "wx/window.h"
35 #include "wx/dcmemory.h"
36 #include "wx/math.h"
37 #endif
38
39 #include "wx/palmos/private.h"
40
41 #if wxUSE_WXDIB
42 #include "wx/palmos/dib.h"
43 #endif
44
45
46 // ----------------------------------------------------------------------------
47 // wxWin macros
48 // ----------------------------------------------------------------------------
49
50 IMPLEMENT_CLASS(wxPrinterDC, wxDC)
51
52 // ============================================================================
53 // implementation
54 // ============================================================================
55
56 // ----------------------------------------------------------------------------
57 // wxPrinterDC construction
58 // ----------------------------------------------------------------------------
59
60 // This form is deprecated
61 wxPrinterDC::wxPrinterDC(const wxString& driver_name,
62 const wxString& device_name,
63 const wxString& file,
64 bool interactive,
65 int orientation)
66 {
67 }
68
69 wxPrinterDC::wxPrinterDC(const wxPrintData& printData)
70 {
71 }
72
73
74 wxPrinterDC::wxPrinterDC(WXHDC dc)
75 {
76 }
77
78 void wxPrinterDC::Init()
79 {
80 }
81
82 // ----------------------------------------------------------------------------
83 // wxPrinterDC {Start/End}{Page/Doc} methods
84 // ----------------------------------------------------------------------------
85
86 bool wxPrinterDC::StartDoc(const wxString& message)
87 {
88 return false;
89 }
90
91 void wxPrinterDC::EndDoc()
92 {
93 }
94
95 void wxPrinterDC::StartPage()
96 {
97 }
98
99 void wxPrinterDC::EndPage()
100 {
101 }
102
103 // Returns default device and port names
104 static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
105 {
106 return false;
107 }
108
109 // Gets an HDC for the specified printer configuration
110 WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
111 {
112 return (WXHDC) 0;
113 }
114
115 // ----------------------------------------------------------------------------
116 // wxPrinterDC bit blitting/bitmap drawing
117 // ----------------------------------------------------------------------------
118
119 // helper of DoDrawBitmap() and DoBlit()
120 static
121 bool DrawBitmapUsingStretchDIBits(HDC hdc,
122 const wxBitmap& bmp,
123 wxCoord x, wxCoord y)
124 {
125 return false;
126 }
127
128 void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
129 wxCoord x, wxCoord y,
130 bool useMask)
131 {
132 }
133
134 bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
135 wxCoord width, wxCoord height,
136 wxDC *source,
137 wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
138 int WXUNUSED(rop), bool useMask,
139 wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
140 {
141 return false;
142 }
143
144 #endif
145 // wxUSE_PRINTING_ARCHITECTURE