X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e273151278d28cceefe6eee8c49bc6915306805d..f4bc1aa27cb33f679d7e9c1518a7855bbc1fa471:/src/palmos/dcprint.cpp diff --git a/src/palmos/dcprint.cpp b/src/palmos/dcprint.cpp index 585116f684..dc154f7b2f 100644 --- a/src/palmos/dcprint.cpp +++ b/src/palmos/dcprint.cpp @@ -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() +{ + // 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) {