35#include <wx/dcmemory.h>
59 bool HasPage(
int num)
override;
61 void GetPageInfo(
int *minPage,
int *maxPage,
int *fromPage,
int *toPage)
override;
63 bool OnBeginDocument(
int startPage,
int endPage)
override;
65 void OnPreparePrinting()
override;
69 std::unique_ptr<GroupCell> m_tree;
71 std::vector<wxCoord> m_pageStarts;
76#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 12
81#pragma GCC diagnostic push
82#pragma GCC diagnostic ignored "-Wattributes"
84 [[maybe_unused]]
const double m_scaleFactor;
85#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 12
86#pragma GCC diagnostic pop
This file defines the class GroupCell that bundles input and output in the worksheet.
The configuration storage for the current worksheet.
Definition: Configuration.h:102
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88
Sets the configuration's "printing" flag until this class is left.
Definition: Configuration.h:1872
Definition: Printout.h:42
void BreakPages()
Decides where the pages start, see wxm::BreakIntoPages()
Definition: Printout.cpp:149
void Recalculate()
Determine the sizes of all worksheet objects.
Definition: Printout.cpp:216
bool OnPrintPage(int num) override
Is called by wxWidgets when it wants us to print a specific page.
Definition: Printout.cpp:76