|
wxMaxima
|
Checks the page breaking printing and the PDF export share (wxm::BreakIntoPages()), and that printing (Printout) uses it: pages start only between lines, a page break cell starts a new page, a heading stays with what follows it, and what follows a page break cell is printed at all. More...
#include <wx/app.h>#include <wx/bitmap.h>#include <wx/dcmemory.h>#include <wx/fileconf.h>#include <wx/frame.h>#include <wx/filename.h>#include <wx/image.h>#include <wx/log.h>#include <wx/mstream.h>#include <wx/xml/xml.h>#include "Configuration.h"#include "MathParser.h"#include "cells/CellList.h"#include "cells/GroupCell.h"#include "cells/MatrCell.h"#include "graphical_io/PageBreaks.h"#include "graphical_io/Printout.h"#include "worksheet/Worksheet.h"#include <algorithm>#include <vector>#include <catch2/catch.hpp>Data Structures | |
| class | TestApp |
Functions | |
| SCENARIO ("A worksheet that fits onto one page is one page") | |
| SCENARIO ("An empty worksheet has no pages") | |
| SCENARIO ("A page break cell starts a new page") | |
| SCENARIO ("Pages start between groups and are no taller than the paper") | |
| SCENARIO ("A heading is not left alone at the bottom of a page") | |
| SCENARIO ("Printing prints what follows a page break") | |
| SCENARIO ("A matrix taller than a page is continued between its rows") | |
| SCENARIO ("A matrix that fits a fresh page is moved there whole") | |
| SCENARIO ("A matrix a bit too wide for the page is shrunk to fit it") | |
| SCENARIO ("A matrix far too wide for the page is split into blocks of columns") | |
| SCENARIO ("A block of columns is printed on one page with its heading") | |
| SCENARIO ("Paper doesn't change how a matrix is shown on screen or elided") | |
| SCENARIO ("Printing a matrix taller than a page prints every page of it") | |
| wxDECLARE_APP (TestApp) | |
| int | main (int argc, char **argv) |
Checks the page breaking printing and the PDF export share (wxm::BreakIntoPages()), and that printing (Printout) uses it: pages start only between lines, a page break cell starts a new page, a heading stays with what follows it, and what follows a page break cell is printed at all.
And how a matrix shown in full that doesn't fit the page is laid out for paper (MatrCell, "On paper"): shrunk, split into blocks of columns, or continued on the next page between two rows.