X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/463c4d7193481ac27626b282ccf0ac178f029abd..f81bd28859d95c2a8f8b6ec71885f8770b5e5e1a:/src/palmos/dcprint.cpp diff --git a/src/palmos/dcprint.cpp b/src/palmos/dcprint.cpp index c3be3f4588..058a2d1fe3 100644 --- a/src/palmos/dcprint.cpp +++ b/src/palmos/dcprint.cpp @@ -1,10 +1,10 @@ ///////////////////////////////////////////////////////////////////////////// // Name: src/palmos/dcprint.cpp // Purpose: wxPrinterDC class -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/13/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "dcprint.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -28,6 +24,10 @@ #pragma hdrstop #endif +#if wxUSE_PRINTING_ARCHITECTURE + +#include "wx/dcprint.h" + #ifndef WX_PRECOMP #include "wx/string.h" #include "wx/log.h" @@ -36,15 +36,12 @@ #include "wx/math.h" #endif -#if wxUSE_PRINTING_ARCHITECTURE - #include "wx/palmos/private.h" #if wxUSE_WXDIB #include "wx/palmos/dib.h" #endif -#include "wx/dcprint.h" // ---------------------------------------------------------------------------- // wxWin macros @@ -103,6 +100,14 @@ void wxPrinterDC::EndPage() { } +wxRect wxPrinterDC::GetPaperRect() const +{ + // Use page rect if we can't get paper rect. + wxCoord w, h; + GetSize(&w, &h); + return wxRect(0, 0, w, h); +} + // Returns default device and port names static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName) { @@ -138,7 +143,7 @@ bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest, 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)) { return false;