X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1058f652031c9b99daa7c701f09f16c3af7159c1..7f4f5e8c24607ead9b5e2f4c60658dcd61f028f4:/interface/wx/print.h?ds=sidebyside diff --git a/interface/wx/print.h b/interface/wx/print.h index 343dbb5b81..c782f96c9a 100644 --- a/interface/wx/print.h +++ b/interface/wx/print.h @@ -708,9 +708,26 @@ public: /** Returns @true if the printout is currently being used for previewing. + + @see GetPreview() */ virtual bool IsPreview() const; + /** + Returns the associated preview object if any. + + If this printout object is used for previewing, returns the associated + wxPrintPreview. Otherwise returns @NULL. + + The returned pointer is not owned by the printout and must not be + deleted. + + @see IsPreview() + + @since 2.9.1. + */ + wxPrintPreview *GetPreview() const; + /** Set the user scale and device origin of the wxDC associated with this wxPrintout so that one screen pixel maps to one device pixel on the DC.