added asserts to check correct order of wxHtmlDCRenderer methods calls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2009-02-21 16:43:22 +00:00
parent 8b93348e82
commit 131fc12022
2 changed files with 22 additions and 11 deletions

View File

@@ -48,15 +48,17 @@ public:
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, wxArrayInt& known_pagebreaks, int from = 0,
int dont_render = false, int to = INT_MAX);