]>
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"
28 #include "wx/string.h"
30 #include "wx/window.h"
31 #include "wx/dcmemory.h"
35 #if wxUSE_PRINTING_ARCHITECTURE
37 #include "wx/palmos/private.h"
40 #include "wx/palmos/dib.h"
43 #include "wx/dcprint.h"
45 // ----------------------------------------------------------------------------
47 // ----------------------------------------------------------------------------
49 IMPLEMENT_CLASS(wxPrinterDC
, wxDC
)
51 // ============================================================================
53 // ============================================================================
55 // ----------------------------------------------------------------------------
56 // wxPrinterDC construction
57 // ----------------------------------------------------------------------------
59 // This form is deprecated
60 wxPrinterDC::wxPrinterDC(const wxString
& driver_name
,
61 const wxString
& device_name
,
68 wxPrinterDC::wxPrinterDC(const wxPrintData
& printData
)
73 wxPrinterDC::wxPrinterDC(WXHDC dc
)
77 void wxPrinterDC::Init()
81 // ----------------------------------------------------------------------------
82 // wxPrinterDC {Start/End}{Page/Doc} methods
83 // ----------------------------------------------------------------------------
85 bool wxPrinterDC::StartDoc(const wxString
& message
)
90 void wxPrinterDC::EndDoc()
94 void wxPrinterDC::StartPage()
98 void wxPrinterDC::EndPage()
102 // Returns default device and port names
103 static bool wxGetDefaultDeviceName(wxString
& deviceName
, wxString
& portName
)
108 // Gets an HDC for the specified printer configuration
109 WXHDC WXDLLEXPORT
wxGetPrinterDC(const wxPrintData
& printDataConst
)
114 // ----------------------------------------------------------------------------
115 // wxPrinterDC bit blitting/bitmap drawing
116 // ----------------------------------------------------------------------------
118 // helper of DoDrawBitmap() and DoBlit()
120 bool DrawBitmapUsingStretchDIBits(HDC hdc
,
122 wxCoord x
, wxCoord y
)
127 void wxPrinterDC::DoDrawBitmap(const wxBitmap
& bmp
,
128 wxCoord x
, wxCoord y
,
133 bool wxPrinterDC::DoBlit(wxCoord xdest
, wxCoord ydest
,
134 wxCoord width
, wxCoord height
,
136 wxCoord
WXUNUSED(xsrc
), wxCoord
WXUNUSED(ysrc
),
137 int WXUNUSED(rop
), bool useMask
,
138 wxCoord
WXUNUSED(xsrcMask
), wxCoord
WXUNUSED(ysrcMask
))
144 // wxUSE_PRINTING_ARCHITECTURE