|
wxMaxima
|
Declares wxm::BreakIntoPages(), the page breaking printing and the PDF export share. More...
#include "precomp.h"#include <wx/defs.h>#include <vector>Go to the source code of this file.
Functions | |
| std::vector< wxCoord > | wxm::BreakIntoPages (const GroupCell *tree, wxCoord pageHeight) |
| Decides where the pages of a printout or a PDF start. | |
Declares wxm::BreakIntoPages(), the page breaking printing and the PDF export share.
| std::vector< wxCoord > wxm::BreakIntoPages | ( | const GroupCell * | tree, |
| wxCoord | pageHeight | ||
| ) |
Decides where the pages of a printout or a PDF start.
The worksheet is laid out as one endless scroll as wide as the paper; this cuts that scroll into pages no taller than pageHeight. A page may only start between two blocks, a block being the input part of a group or one line of its output, so no line is ever cut in two. Beyond that:
| tree | The first group of the laid-out worksheet: its cells' positions (GetRect()) have to be up to date. |
| pageHeight | The height of the printable area, in the units the worksheet was laid out in. |
The first block of its group?
The group it belongs to
Where a page may start inside this block (Cell::PageBreakCandidates())
Only those of the block's last cell: see there.