X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..d174f457e6a3337d85dbfe1152308cf548e07fa3:/include/wx/msw/dcprint.h diff --git a/include/wx/msw/dcprint.h b/include/wx/msw/dcprint.h index 9329b8523d..29a79daf18 100644 --- a/include/wx/msw/dcprint.h +++ b/include/wx/msw/dcprint.h @@ -9,8 +9,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef _WX_DCPRINT_H_ -#define _WX_DCPRINT_H_ +#ifndef _WX_MSW_DCPRINT_H_ +#define _WX_MSW_DCPRINT_H_ #if wxUSE_PRINTING_ARCHITECTURE @@ -34,6 +34,8 @@ public: virtual void StartPage(); virtual void EndPage(); + wxRect GetPaperRect(); + protected: virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask = false); @@ -41,6 +43,11 @@ protected: wxCoord width, wxCoord height, wxDC *source, wxCoord xsrc, wxCoord ysrc, int rop = wxCOPY, bool useMask = false, wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord); + virtual void DoGetSize(int *w, int *h) const + { + GetDeviceSize(w, h); + } + // init the dc void Init(); @@ -59,6 +66,5 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data); #endif // wxUSE_PRINTING_ARCHITECTURE -#endif - // _WX_DCPRINT_H_ +#endif // _WX_MSW_DCPRINT_H_