const wxString& device_name,
const wxString& file,
bool interactive,
- int orientation)
+ wxPrintOrientation orientation)
{
m_isInteractive = interactive;
}
-wxRect wxPrinterDCImpl::GetPaperRect()
+wxRect wxPrinterDCImpl::GetPaperRect() const
{
if (!IsOk()) return wxRect(0, 0, 0, 0);
NULL, // no driver name as we use device name
deviceName.wx_str(),
NULL, // unused
- wx_static_cast(DEVMODE *, lockDevMode.Get())
+ static_cast<DEVMODE *>(lockDevMode.Get())
);
if ( !hDC )
- wxLogLastError(_T("CreateDC(printer)"));
+ {
+ wxLogLastError(wxT("CreateDC(printer)"));
+ }
return (WXHDC) hDC;
#endif // PostScript/Windows printing
DIBSECTION ds;
if ( !::GetObject(dib.GetHandle(), sizeof(ds), &ds) )
{
- wxLogLastError(_T("GetObject(DIBSECTION)"));
+ wxLogLastError(wxT("GetObject(DIBSECTION)"));
return false;
}
wxCoord x, wxCoord y,
bool useMask)
{
- wxCHECK_RET( bmp.Ok(), _T("invalid bitmap in wxPrinterDC::DrawBitmap") );
+ wxCHECK_RET( bmp.Ok(), wxT("invalid bitmap in wxPrinterDC::DrawBitmap") );
int width = bmp.GetWidth(),
height = bmp.GetHeight();
wxCoord width, wxCoord height,
wxDC *source,
wxCoord WXUNUSED(xsrc), wxCoord WXUNUSED(ysrc),
- int WXUNUSED(rop), bool useMask,
+ wxRasterOperationMode WXUNUSED(rop), bool useMask,
wxCoord WXUNUSED(xsrcMask), wxCoord WXUNUSED(ysrcMask))
{
wxDCImpl *impl = source->GetImpl();