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:
Julian Smart
2007-08-03 08:50:49 +00:00
parent a635e97d0e
commit d916510cb3
3 changed files with 32 additions and 11 deletions

View File

@@ -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);