1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        src/qt/dcprint.cpp
3 // Author:      Peter Most
4 // Copyright:   (c) Peter Most
5 // Licence:     wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
7 
8 // For compilers that support precompilation, includes "wx.h".
9 #include "wx/wxprec.h"
10 
11 #include "wx/dcprint.h"
12 #include "wx/qt/dcprint.h"
13 
wxIMPLEMENT_CLASS(wxPrinterDCImpl,wxDCImpl)14 wxIMPLEMENT_CLASS(wxPrinterDCImpl,wxDCImpl)
15 
16 wxPrinterDCImpl::wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData & )
17     : wxDCImpl( owner )
18 {
19 }
20 
21 
CanDrawBitmap() const22 bool wxPrinterDCImpl::CanDrawBitmap() const
23 {
24     return false;
25 }
26 
CanGetTextExtent() const27 bool wxPrinterDCImpl::CanGetTextExtent() const
28 {
29     return false;
30 }
31 
DoGetSize(int * WXUNUSED (width),int * WXUNUSED (height)) const32 void wxPrinterDCImpl::DoGetSize(int *WXUNUSED(width), int *WXUNUSED(height)) const
33 {
34 }
35 
DoGetSizeMM(int * WXUNUSED (width),int * WXUNUSED (height)) const36 void wxPrinterDCImpl::DoGetSizeMM(int* WXUNUSED(width), int* WXUNUSED(height)) const
37 {
38 }
39 
GetDepth() const40 int wxPrinterDCImpl::GetDepth() const
41 {
42     return 0;
43 }
44 
GetPPI() const45 wxSize wxPrinterDCImpl::GetPPI() const
46 {
47     return wxSize();
48 }
49 
SetFont(const wxFont & WXUNUSED (font))50 void wxPrinterDCImpl::SetFont(const wxFont& WXUNUSED(font))
51 {
52 }
53 
SetPen(const wxPen & WXUNUSED (pen))54 void wxPrinterDCImpl::SetPen(const wxPen& WXUNUSED(pen))
55 {
56 }
57 
SetBrush(const wxBrush & WXUNUSED (brush))58 void wxPrinterDCImpl::SetBrush(const wxBrush& WXUNUSED(brush))
59 {
60 }
61 
SetBackground(const wxBrush & WXUNUSED (brush))62 void wxPrinterDCImpl::SetBackground(const wxBrush& WXUNUSED(brush))
63 {
64 }
65 
SetBackgroundMode(int WXUNUSED (mode))66 void wxPrinterDCImpl::SetBackgroundMode(int WXUNUSED(mode))
67 {
68 }
69 
70 
71 #if wxUSE_PALETTE
SetPalette(const wxPalette & WXUNUSED (palette))72 void wxPrinterDCImpl::SetPalette(const wxPalette& WXUNUSED(palette))
73 {
74 }
75 #endif // wxUSE_PALETTE
76 
SetLogicalFunction(wxRasterOperationMode WXUNUSED (function))77 void wxPrinterDCImpl::SetLogicalFunction(wxRasterOperationMode WXUNUSED(function))
78 {
79 }
80 
GetCharHeight() const81 wxCoord wxPrinterDCImpl::GetCharHeight() const
82 {
83     return wxCoord();
84 }
85 
GetCharWidth() const86 wxCoord wxPrinterDCImpl::GetCharWidth() const
87 {
88     return wxCoord();
89 }
90 
DoGetTextExtent(const wxString & WXUNUSED (string),wxCoord * WXUNUSED (x),wxCoord * WXUNUSED (y),wxCoord * WXUNUSED (descent),wxCoord * WXUNUSED (externalLeading),const wxFont * WXUNUSED (theFont)) const91 void wxPrinterDCImpl::DoGetTextExtent(const wxString& WXUNUSED(string),
92                              wxCoord *WXUNUSED(x), wxCoord *WXUNUSED(y),
93                              wxCoord *WXUNUSED(descent),
94                              wxCoord *WXUNUSED(externalLeading),
95                              const wxFont *WXUNUSED(theFont) ) const
96 {
97 }
98 
Clear()99 void wxPrinterDCImpl::Clear()
100 {
101 }
102 
DoSetClippingRegion(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),wxCoord WXUNUSED (width),wxCoord WXUNUSED (height))103 void wxPrinterDCImpl::DoSetClippingRegion(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
104                                  wxCoord WXUNUSED(width), wxCoord WXUNUSED(height))
105 {
106 }
107 
DoSetDeviceClippingRegion(const wxRegion & WXUNUSED (region))108 void wxPrinterDCImpl::DoSetDeviceClippingRegion(const wxRegion& WXUNUSED(region))
109 {
110 }
111 
DoFloodFill(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),const wxColour & WXUNUSED (col),wxFloodFillStyle WXUNUSED (style))112 bool wxPrinterDCImpl::DoFloodFill(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), const wxColour& WXUNUSED(col),
113                          wxFloodFillStyle WXUNUSED(style) )
114 {
115     return false;
116 }
117 
DoGetPixel(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),wxColour * WXUNUSED (col)) const118 bool wxPrinterDCImpl::DoGetPixel(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), wxColour *WXUNUSED(col)) const
119 {
120     return false;
121 }
122 
DoDrawPoint(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y))123 void wxPrinterDCImpl::DoDrawPoint(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y))
124 {
125 }
126 
DoDrawLine(wxCoord WXUNUSED (x1),wxCoord WXUNUSED (y1),wxCoord WXUNUSED (x2),wxCoord WXUNUSED (y2))127 void wxPrinterDCImpl::DoDrawLine(wxCoord WXUNUSED(x1), wxCoord WXUNUSED(y1), wxCoord WXUNUSED(x2), wxCoord WXUNUSED(y2))
128 {
129 }
130 
DoDrawArc(wxCoord WXUNUSED (x1),wxCoord WXUNUSED (y1),wxCoord WXUNUSED (x2),wxCoord WXUNUSED (y2),wxCoord WXUNUSED (xc),wxCoord WXUNUSED (yc))131 void wxPrinterDCImpl::DoDrawArc(wxCoord WXUNUSED(x1), wxCoord WXUNUSED(y1),
132                        wxCoord WXUNUSED(x2), wxCoord WXUNUSED(y2),
133                        wxCoord WXUNUSED(xc), wxCoord WXUNUSED(yc))
134 {
135 }
136 
DoDrawEllipticArc(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),wxCoord WXUNUSED (w),wxCoord WXUNUSED (h),double WXUNUSED (sa),double WXUNUSED (ea))137 void wxPrinterDCImpl::DoDrawEllipticArc(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), wxCoord WXUNUSED(w), wxCoord WXUNUSED(h),
138                                double WXUNUSED(sa), double WXUNUSED(ea))
139 {
140 }
141 
DoDrawRectangle(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),wxCoord WXUNUSED (width),wxCoord WXUNUSED (height))142 void wxPrinterDCImpl::DoDrawRectangle(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), wxCoord WXUNUSED(width), wxCoord WXUNUSED(height))
143 {
144 }
145 
DoDrawRoundedRectangle(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),wxCoord WXUNUSED (width),wxCoord WXUNUSED (height),double WXUNUSED (radius))146 void wxPrinterDCImpl::DoDrawRoundedRectangle(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
147                                     wxCoord WXUNUSED(width), wxCoord WXUNUSED(height),
148                                     double WXUNUSED(radius))
149 {
150 }
151 
DoDrawEllipse(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),wxCoord WXUNUSED (width),wxCoord WXUNUSED (height))152 void wxPrinterDCImpl::DoDrawEllipse(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
153                            wxCoord WXUNUSED(width), wxCoord WXUNUSED(height))
154 {
155 }
156 
DoCrossHair(wxCoord WXUNUSED (x),wxCoord WXUNUSED (y))157 void wxPrinterDCImpl::DoCrossHair(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y))
158 {
159 }
160 
DoDrawIcon(const wxIcon & WXUNUSED (icon),wxCoord WXUNUSED (x),wxCoord WXUNUSED (y))161 void wxPrinterDCImpl::DoDrawIcon(const wxIcon& WXUNUSED(icon), wxCoord WXUNUSED(x), wxCoord WXUNUSED(y))
162 {
163 }
164 
DoDrawBitmap(const wxBitmap & WXUNUSED (bmp),wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),bool WXUNUSED (useMask))165 void wxPrinterDCImpl::DoDrawBitmap(const wxBitmap &WXUNUSED(bmp), wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
166                           bool WXUNUSED(useMask))
167 {
168 }
169 
DoDrawText(const wxString & WXUNUSED (text),wxCoord WXUNUSED (x),wxCoord WXUNUSED (y))170 void wxPrinterDCImpl::DoDrawText(const wxString& WXUNUSED(text), wxCoord WXUNUSED(x), wxCoord WXUNUSED(y))
171 {
172 }
173 
DoDrawRotatedText(const wxString & WXUNUSED (text),wxCoord WXUNUSED (x),wxCoord WXUNUSED (y),double WXUNUSED (angle))174 void wxPrinterDCImpl::DoDrawRotatedText(const wxString& WXUNUSED(text),
175                                wxCoord WXUNUSED(x), wxCoord WXUNUSED(y), double WXUNUSED(angle))
176 {
177 }
178 
DoBlit(wxCoord WXUNUSED (xdest),wxCoord WXUNUSED (ydest),wxCoord WXUNUSED (width),wxCoord WXUNUSED (height),wxDC * WXUNUSED (source),wxCoord WXUNUSED (xsrc),wxCoord WXUNUSED (ysrc),wxRasterOperationMode WXUNUSED (rop),bool WXUNUSED (useMask),wxCoord WXUNUSED (xsrcMask),wxCoord WXUNUSED (ysrcMask))179 bool wxPrinterDCImpl::DoBlit(wxCoord WXUNUSED(xdest), wxCoord WXUNUSED(ydest),
180                     wxCoord WXUNUSED(width), wxCoord WXUNUSED(height),
181                     wxDC *WXUNUSED(source),
182                     wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
183                     wxRasterOperationMode WXUNUSED(rop),
184                     bool WXUNUSED(useMask),
185                     wxCoord WXUNUSED(xsrcMask),
186                     wxCoord WXUNUSED(ysrcMask))
187 {
188     return false;
189 }
190 
DoDrawLines(int WXUNUSED (n),const wxPoint WXUNUSED (points)[],wxCoord WXUNUSED (xoffset),wxCoord WXUNUSED (yoffset))191 void wxPrinterDCImpl::DoDrawLines(int WXUNUSED(n), const wxPoint WXUNUSED(points)[],
192                          wxCoord WXUNUSED(xoffset), wxCoord WXUNUSED(yoffset) )
193 {
194 }
195 
DoDrawPolygon(int WXUNUSED (n),const wxPoint WXUNUSED (points)[],wxCoord WXUNUSED (xoffset),wxCoord WXUNUSED (yoffset),wxPolygonFillMode WXUNUSED (fillStyle))196 void wxPrinterDCImpl::DoDrawPolygon(int WXUNUSED(n), const wxPoint WXUNUSED(points)[],
197                        wxCoord WXUNUSED(xoffset), wxCoord WXUNUSED(yoffset),
198                        wxPolygonFillMode WXUNUSED(fillStyle) )
199 {
200 }
201 
202 
203