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