]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/dcprint.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/dcprint.cpp
3 // Purpose: wxPrinterDC class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
27 #if wxUSE_PRINTING_ARCHITECTURE
29 #include "wx/dcprint.h"
32 #include "wx/string.h"
34 #include "wx/window.h"
35 #include "wx/dcmemory.h"
39 #include "wx/palmos/private.h"
42 #include "wx/palmos/dib.h"
46 // ----------------------------------------------------------------------------
48 // ----------------------------------------------------------------------------
50 IMPLEMENT_CLASS(wxPrinterDC
, wxDC
)
52 // ============================================================================
54 // ============================================================================
56 // ----------------------------------------------------------------------------
57 // wxPrinterDC construction
58 // ----------------------------------------------------------------------------
60 // This form is deprecated
61 wxPrinterDC::wxPrinterDC(const wxString
& driver_name
,
62 const wxString
& device_name
,
69 wxPrinterDC::wxPrinterDC(const wxPrintData
& printData
)
74 wxPrinterDC::wxPrinterDC(WXHDC dc
)
78 void wxPrinterDC::Init()
82 // ----------------------------------------------------------------------------
83 // wxPrinterDC {Start/End}{Page/Doc} methods
84 // ----------------------------------------------------------------------------
86 bool wxPrinterDC::StartDoc(const wxString
& message
)
91 void wxPrinterDC::EndDoc()
95 void wxPrinterDC::StartPage()
99 void wxPrinterDC::EndPage()
103 // Returns default device and port names
104 static bool wxGetDefaultDeviceName(wxString
& deviceName
, wxString
& portName
)
109 // Gets an HDC for the specified printer configuration
110 WXHDC WXDLLEXPORT
wxGetPrinterDC(const wxPrintData
& printDataConst
)
115 // ----------------------------------------------------------------------------
116 // wxPrinterDC bit blitting/bitmap drawing
117 // ----------------------------------------------------------------------------
119 // helper of DoDrawBitmap() and DoBlit()
121 bool DrawBitmapUsingStretchDIBits(HDC hdc
,
123 wxCoord x
, wxCoord y
)
128 void wxPrinterDC::DoDrawBitmap(const wxBitmap
& bmp
,
129 wxCoord x
, wxCoord y
,
134 bool wxPrinterDC::DoBlit(wxCoord xdest
, wxCoord ydest
,
135 wxCoord width
, wxCoord height
,
137 wxCoord
WXUNUSED(xsrc
), wxCoord
WXUNUSED(ysrc
),
138 int WXUNUSED(rop
), bool useMask
,
139 wxCoord
WXUNUSED(xsrcMask
), wxCoord
WXUNUSED(ysrcMask
))
145 // wxUSE_PRINTING_ARCHITECTURE