]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/dcprint.cpp
Italian translation corrections from Roberto Boriotti.
[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 wxPrintOrientation 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 wxRect wxPrinterDC::GetPaperRect() const
104 {
105 // Use page rect if we can't get paper rect.
106 wxCoord w, h;
107 GetSize(&w, &h);
108 return wxRect(0, 0, w, h);
109 }
110
111 // Returns default device and port names
112 static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
113 {
114 return false;
115 }
116
117 // Gets an HDC for the specified printer configuration
118 WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
119 {
120 return (WXHDC) 0;
121 }
122
123 // ----------------------------------------------------------------------------
124 // wxPrinterDC bit blitting/bitmap drawing
125 // ----------------------------------------------------------------------------
126
127 // helper of DoDrawBitmap() and DoBlit()
128 static
129 bool DrawBitmapUsingStretchDIBits(HDC hdc,
130 const wxBitmap& bmp,
131 wxCoord x, wxCoord y)
132 {
133 return false;
134 }
135
136 void wxPrinterDC::DoDrawBitmap(const wxBitmap& bmp,
137 wxCoord x, wxCoord y,
138 bool useMask)
139 {
140 }
141
142 bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest,
143 wxCoord width, wxCoord height,
144 wxDC *source,
145 wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
146 wxRasterOperationMode WXUNUSED(rop), bool useMask,
147 wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
148 {
149 return false;
150 }
151
152 #endif
153 // wxUSE_PRINTING_ARCHITECTURE