Added Get/SetParentWindow to allow the same easy printing object to be used even
if the original parent frame was deleted git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,6 +256,13 @@ public:
|
||||
// return page setting data objects.
|
||||
// (You can set their parameters.)
|
||||
|
||||
#if wxABI_VERSION >= 20805
|
||||
wxWindow* GetParentWindow() const { return m_ParentWindow; }
|
||||
// get the parent window
|
||||
void SetParentWindow(wxWindow* window) { m_ParentWindow = window; }
|
||||
// set the parent window
|
||||
#endif
|
||||
|
||||
protected:
|
||||
virtual wxHtmlPrintout *CreatePrintout();
|
||||
virtual bool DoPreview(wxHtmlPrintout *printout1, wxHtmlPrintout *printout2);
|
||||
|
Reference in New Issue
Block a user