X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..914073189107fb2f0f4f78d7c98fbcc37c700d50:/src/palmos/dcprint.cpp diff --git a/src/palmos/dcprint.cpp b/src/palmos/dcprint.cpp index 22fea0a51e..81fabe9cb2 100644 --- a/src/palmos/dcprint.cpp +++ b/src/palmos/dcprint.cpp @@ -24,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" @@ -32,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 @@ -99,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) {