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