]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/dcprint.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/dcprint.h
3 // Purpose: wxPrinterDC class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCPRINT_H_
13 #define _WX_DCPRINT_H_
15 #if wxUSE_PRINTING_ARCHITECTURE
18 #include "wx/cmndata.h"
20 class WXDLLEXPORT wxPrinterDC
: public wxDC
23 // Create a printer DC [obsolete]
24 wxPrinterDC( const wxString
& rsDriver
25 ,const wxString
& rsDevice
26 ,const wxString
& rsOutput
27 ,bool bInteractive
= TRUE
28 ,int nOrientation
= wxPORTRAIT
31 // Create from print data
32 wxPrinterDC(const wxPrintData
& rData
);
33 wxPrinterDC(WXHDC hTheDC
);
35 bool StartDoc(const wxString
& rsMessage
);
40 wxRect
GetPaperRect();
43 virtual void DoDrawBitmap( const wxBitmap
& rBmp
46 ,bool bUseMask
= FALSE
48 virtual bool DoBlit( wxCoord vXdest
56 ,bool bUseMask
= FALSE
57 ,wxCoord vXsrcMask
= -1
58 ,wxCoord vYsrcMask
= -1
64 wxPrintData m_printData
;
66 DECLARE_CLASS(wxPrinterDC
)
67 }; // end of CLASS wxPrinterDC
69 // Gets an HDC for the specified printer configuration
70 WXHDC WXDLLEXPORT
wxGetPrinterDC(const wxPrintData
& rData
);
72 #endif // wxUSE_PRINTING_ARCHITECTURE