58 double marginBottom = 10;
59 double marginLeft = 10;
60 double marginRight = 10;
119 static std::optional<PageSettings>
FromXML(
const wxXmlNode *root);
The paper a worksheet is printed or exported to PDF on.
Definition: PageSettings.h:51
wxRealPoint PaperSizeMm() const
The size of the paper in mm, as it is oriented.
Definition: PageSettings.cpp:72
wxPaperSize paper
The paper size, as wxWidgets' print dialog knows it.
Definition: PageSettings.h:53
double scale
Makes everything on paper bigger (> 1) or smaller (< 1)
Definition: PageSettings.h:62
static constexpr long DefaultLayoutDpi
The layoutDpi a document without one gets: the commonest printer resolution.
Definition: PageSettings.h:75
static std::optional< PageSettings > FromXML(const wxXmlNode *root)
The settings a .wxmx's root element stores, if it stores any.
Definition: PageSettings.cpp:124
wxRealPoint PrintableSizeAt96Dpi() const
The size of the printable area in the worksheet's unzoomed pixels.
Definition: PageSettings.cpp:86
long layoutDpi
The printer resolution text is measured for, in dots per inch.
Definition: PageSettings.h:73
static wxString PaperName(wxPaperSize paper)
The paper's name in the language of the user interface ("A4 sheet, 210 x 297 mm")
Definition: PageSettings.cpp:146
PageSettings & Sanitize()
Makes the values sensible: margins between 0 and 100 mm, a scale between 0.1 and 4,...
Definition: PageSettings.cpp:92
double marginTop
The margins, in mm.
Definition: PageSettings.h:57
wxRealPoint PrintableSizeMm() const
The size of the part of the paper inside the margins, in mm.
Definition: PageSettings.cpp:80
wxString ToXMLAttributes() const
The attributes a .wxmx's root element stores these settings in.
Definition: PageSettings.cpp:109
wxPrintOrientation orientation
Portrait or landscape.
Definition: PageSettings.h:55