]> git.saurik.com Git - wxWidgets.git/commitdiff
Added Get/SetParentWindow to allow the same easy printing object to be used even
authorJulian Smart <julian@anthemion.co.uk>
Fri, 3 Aug 2007 08:50:18 +0000 (08:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 3 Aug 2007 08:50:18 +0000 (08:50 +0000)
if the original parent frame was deleted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/hteasypr.tex
include/wx/html/htmprint.h

index 6099c5c9242e1fcff3875e8d37ec03409f376ae4..887dc808d148c5e6be632e7246e9145a62a136d8 100644 (file)
@@ -42,6 +42,26 @@ Constructor.
 
 \docparam{parentWindow}{pointer to the window that will own the preview frame and setup dialogs. May be NULL.}
 
+\membersection{wxHtmlEasyPrinting::GetParentWindow}\label{wxhtmleasyprintinggetparentwindow}
+
+\constfunc{wxWindow*}{GetParentWindow}{\void}
+
+Gets the parent window for dialogs.
+
+\membersection{wxHtmlEasyPrinting::GetPrintData}\label{wxhtmleasyprintinggetprintdata}
+
+\func{wxPrintData*}{GetPrintData}{\void}
+
+Returns pointer to \helpref{wxPrintData}{wxprintdata} instance used by this class. You can
+set its parameters (via SetXXXX methods).
+
+\membersection{wxHtmlEasyPrinting::GetPageSetupData}\label{wxhtmleasyprintinggetpagesetupdata}
+
+\func{wxPageSetupDialogData*}{GetPageSetupData}{\void}
+
+Returns a pointer to \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} instance used by 
+this class. You can set its parameters (via SetXXXX methods).
+
 \membersection{wxHtmlEasyPrinting::PreviewFile}\label{wxhtmleasyprintingpreviewfile}
 
 \func{bool}{PreviewFile}{\param{const wxString\& }{htmlfile}}
@@ -136,17 +156,9 @@ Set page footer. The following macros can be used inside it:
 
 \docparam{pg}{one of wxPAGE\_ODD, wxPAGE\_EVEN and wxPAGE\_ALL constants.}
 
-\membersection{wxHtmlEasyPrinting::GetPrintData}\label{wxhtmleasyprintinggetprintdata}
-
-\func{wxPrintData*}{GetPrintData}{\void}
-
-Returns pointer to \helpref{wxPrintData}{wxprintdata} instance used by this class. You can
-set its parameters (via SetXXXX methods).
+\membersection{wxHtmlEasyPrinting::SetParentWindow}\label{wxhtmleasyprintingsetparentwindow}
 
-\membersection{wxHtmlEasyPrinting::GetPageSetupData}\label{wxhtmleasyprintinggetpagesetupdata}
+\func{void}{SetParentWindow}{\param{wxWindow*}{ window}}
 
-\func{wxPageSetupDialogData*}{GetPageSetupData}{\void}
-
-Returns a pointer to \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} instance used by 
-this class. You can set its parameters (via SetXXXX methods).
+Sets the parent window for dialogs.
 
index da25bc28130fcf7c0f09c5df654c5b0c1916d7a3..ef37bb4957cfaa5cc646dc01507225a575630518 100644 (file)
@@ -256,6 +256,11 @@ public:
             // return page setting data objects.
             // (You can set their parameters.)
 
+    wxWindow* GetParentWindow() const { return m_ParentWindow; }
+            // get the parent window
+    void SetParentWindow(wxWindow* window) { m_ParentWindow = window; }
+            // set the parent window
+
 protected:
     virtual wxHtmlPrintout *CreatePrintout();
     virtual bool DoPreview(wxHtmlPrintout *printout1, wxHtmlPrintout *printout2);