Forward-port of r62758 (Added wxHtmlEasyPrinting name accessor and modifier).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2009-12-01 20:23:29 +00:00
parent 1827c0f538
commit 0678e935b1
2 changed files with 20 additions and 0 deletions

View File

@@ -276,6 +276,11 @@ public:
void SetParentWindow(wxWindow* window) { m_ParentWindow = window; } void SetParentWindow(wxWindow* window) { m_ParentWindow = window; }
// set the parent window // set the parent window
const wxString& GetName() const { return m_Name; }
// get the printout name
void SetName(const wxString& name) { m_Name = name; }
// set the printout name
protected: protected:
virtual wxHtmlPrintout *CreatePrintout(); virtual wxHtmlPrintout *CreatePrintout();
virtual bool DoPreview(wxHtmlPrintout *printout1, wxHtmlPrintout *printout2); virtual bool DoPreview(wxHtmlPrintout *printout1, wxHtmlPrintout *printout2);

View File

@@ -190,6 +190,14 @@ public:
wxHtmlEasyPrinting(const wxString& name = "Printing", wxHtmlEasyPrinting(const wxString& name = "Printing",
wxWindow* parentWindow = NULL); wxWindow* parentWindow = NULL);
/**
Returns the current name being used for preview frames and setup
dialogs.
@since 2.8.11 / 2.9.1
*/
const wxString& GetName() const;
/** /**
Returns a pointer to wxPageSetupDialogData instance used by this class. Returns a pointer to wxPageSetupDialogData instance used by this class.
You can set its parameters (via SetXXXX methods). You can set its parameters (via SetXXXX methods).
@@ -264,6 +272,13 @@ public:
void SetFonts(const wxString& normal_face, const wxString& fixed_face, void SetFonts(const wxString& normal_face, const wxString& fixed_face,
const int* sizes = NULL); const int* sizes = NULL);
/**
Sets the name used for preview frames and setup dialogs.
@since 2.8.11 / 2.9.1
*/
void SetName(const wxString& name);
/** /**
Sets default font sizes and/or default font size. Sets default font sizes and/or default font size.
See wxHtmlDCRenderer::SetStandardFonts for detailed description. See wxHtmlDCRenderer::SetStandardFonts for detailed description.