projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed spelling errors, fixes #14021.
[wxWidgets.git]
/
interface
/
wx
/
html
/
htmlcell.h
diff --git
a/interface/wx/html/htmlcell.h
b/interface/wx/html/htmlcell.h
index d68052384d015c4632703216349e6c7c3d172953..86351e6055fb0c5051ec7ab13280e6c9225f17b5 100644
(file)
--- a/
interface/wx/html/htmlcell.h
+++ b/
interface/wx/html/htmlcell.h
@@
-95,19
+95,33
@@
public:
/**
This method is used to adjust pagebreak position.
/**
This method is used to adjust pagebreak position.
- The
parameter is variable that contains y-coordinate of
page break
+ The
first parameter is a variable that contains the y-coordinate of the
page break
(= horizontal line that should not be crossed by words, images etc.).
If this cell cannot be divided into two pieces (each one on another page)
(= horizontal line that should not be crossed by words, images etc.).
If this cell cannot be divided into two pieces (each one on another page)
- then it moves the pagebreak few pixels up.
+ then it either moves the pagebreak a few pixels up, if possible, or, if
+ the cell cannot fit on the page at all, then the cell is forced to
+ split unconditionally.
+
Returns @true if pagebreak was modified, @false otherwise.
Returns @true if pagebreak was modified, @false otherwise.
+ @param pagebreak
+ position in pixel of the pagebreak.
+
+ @param known_pagebreaks
+ the list of the previous pagebreaks
+
+ @param pageHeight
+ the height in pixel of the page drawable area
+
Usage:
@code
Usage:
@code
- while (container->AdjustPagebreak(&p)) {}
+ while (container->AdjustPagebreak(&p
, kp, ph
)) {}
@endcode
@endcode
+
*/
virtual bool AdjustPagebreak(int* pagebreak,
*/
virtual bool AdjustPagebreak(int* pagebreak,
- wxArrayInt& known_pagebreaks) const;
+ const wxArrayInt& known_pagebreaks,
+ int pageHeight) const;
/**
Renders the cell.
/**
Renders the cell.
@@
-262,7
+276,7
@@
public:
This function is simple event handler.
Each time the user clicks mouse button over a cell within wxHtmlWindow
this method of that cell is called.
This function is simple event handler.
Each time the user clicks mouse button over a cell within wxHtmlWindow
this method of that cell is called.
- Default behavior is to call wxHtmlWindow::LoadPage.
+ Default behavio
u
r is to call wxHtmlWindow::LoadPage.
@param window
interface to the parent HTML window
@param window
interface to the parent HTML window