{
public:
wxHtmlDCRenderer();
- ~wxHtmlDCRenderer();
+ virtual ~wxHtmlDCRenderer();
// Following 3 methods *must* be called before any call to Render:
// set the same pagebreak twice.
//
// CAUTION! Render() changes DC's user scale and does NOT restore it!
- int Render(int x, int y, int from = 0, int dont_render = FALSE,
- int maxHeight = INT_MAX,
- int *known_pagebreaks = NULL, int number_of_pages = 0);
+ int Render(int x, int y, wxArrayInt& known_pagebreaks, int from = 0,
+ int dont_render = FALSE, int to = INT_MAX);
// returns total height of the html document
// (compare Render's return value with this)
{
public:
wxHtmlPrintout(const wxString& title = wxT("Printout"));
- ~wxHtmlPrintout();
+ virtual ~wxHtmlPrintout();
void SetHtmlText(const wxString& html, const wxString &basepath = wxEmptyString, bool isdir = true);
// prepares the class for printing this html document.
private:
int m_NumPages;
- int m_PageBreaks[wxHTML_PRINT_MAX_PAGES];
+ //int m_PageBreaks[wxHTML_PRINT_MAX_PAGES];
+ wxArrayInt m_PageBreaks;
wxString m_Document, m_BasePath;
bool m_BasePathIsDir;
{
public:
wxHtmlEasyPrinting(const wxString& name = wxT("Printing"), wxWindow *parentWindow = NULL);
- ~wxHtmlEasyPrinting();
+ virtual ~wxHtmlEasyPrinting();
bool PreviewFile(const wxString &htmlfile);
bool PreviewText(const wxString &htmltext, const wxString& basepath = wxEmptyString);
// 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);