Renders HTML text to the DC.
@param x,y
- position of upper-left corner of printing rectangle (see SetSize())
+ position of upper-left corner of printing rectangle (see SetSize()).
+ @param known_pagebreaks
+ @todo docme
@param from
- y-coordinate of the very first visible cell
+ y-coordinate of the very first visible cell.
@param dont_render
if @true then this method only returns y coordinate of the next page
- and does not output anything
+ and does not output anything.
+ @param to
+ y-coordinate of the last visible cell.
Returned value is y coordinate of first cell than didn't fit onto page.
- Use this value as from in next call to Render() in order to print multipages document.
+ Use this value as from in next call to Render() in order to print
+ multipages document.
- @warning
- The Following three methods @b must always be called before any call to
- Render() (preferably in this order):
+ @note
+ The following three methods @b must always be called before any call to
+ Render(), in this order:
- SetDC()
- SetSize()
- SetHtmlText()
- <b>Render() changes the DC's user scale and does NOT restore it.</b>
+
+ @note Render() changes the DC's user scale and does NOT restore it.
*/
- int Render(int x, int y, int from = 0, int dont_render = false);
+ int Render(int x, int y, wxArrayInt& known_pagebreaks, int from = 0,
+ int dont_render = false, int to = INT_MAX);
/**
Assign DC instance to the renderer.
@see SetSize()
*/
- void SetFonts(const wxString& normal_face,
- const wxString& fixed_face,
- const int sizes = NULL);
+ void SetFonts(const wxString& normal_face, const wxString& fixed_face,
+ const int* sizes = NULL);
/**
Assign text to the renderer. Render() then draws the text onto DC.
/**
Sets fonts. See wxHtmlWindow::SetFonts for detailed description.
*/
- void SetFonts(const wxString& normal_face,
- const wxString& fixed_face,
- const int sizes = NULL);
+ void SetFonts(const wxString& normal_face, const wxString& fixed_face,
+ const int* sizes = NULL);
/**
Set page footer. The following macros can be used inside it:
/**
Sets fonts. See wxHtmlWindow::SetFonts for detailed description.
*/
- void SetFonts(const wxString& normal_face,
- const wxString& fixed_face,
- const int sizes = NULL);
+ void SetFonts(const wxString& normal_face, const wxString& fixed_face,
+ const int* sizes = NULL);
/**
Set page footer. The following macros can be used inside it: