27#ifndef WORKSHEETPREVIEW_H
28#define WORKSHEETPREVIEW_H
66 std::unique_ptr<GroupCell>
tree;
68 std::array<GroupCell *, static_cast<size_t>(Topic::count)>
headings{};
73 return headings[
static_cast<size_t>(topic)];
@ count
Not a check: the number of checks.
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
The sample worksheet of the configuration dialog's "Worksheet" tab.
Definition: WorksheetPreview.h:49
static wxString MatrixXml()
What Maxima sends for genmatrix(lambda([i,j],100*i+j),n,n), n = MatrixSize.
Definition: WorksheetPreview.cpp:36
Topic
What part of the preview a setting affects.
Definition: WorksheetPreview.h:51
@ oversizedMatrix
A matrix too large for the window.
@ labels
Labels, the label width, indenting maths and multiplication signs.
@ fractions
A small fraction and one too wide for the window: the layout strategy.
@ longNumbers
200!, as long a number as the digit settings need
@ specialSymbols
e, i and pi with or without their percent sign, and a Greek letter
std::unique_ptr< GroupCell > tree
The preview's cells, to hand to Worksheet::InsertGroupCells()
Definition: WorksheetPreview.h:66
std::array< GroupCell *, static_cast< size_t >(Topic::count)> headings
The text cell each topic starts with; owned by tree.
Definition: WorksheetPreview.h:68
static WorksheetPreview Make(Configuration *config)
Builds the preview's cells with this configuration.
Definition: WorksheetPreview.cpp:88
GroupCell * matrixGroup
The code cell whose output is the oversized matrix; owned by tree.
Definition: WorksheetPreview.h:70
static constexpr int MatrixSize
The oversized matrix has this many rows and as many columns.
Definition: WorksheetPreview.h:77
static wxString Factorial200()
The decimal digits of 200!, a number long enough to be shortened by default.
Definition: WorksheetPreview.cpp:68
static wxString ExpandedBinomialXml(int power, int sign)
What Maxima sends for (x+sign)^power, expanded.
Definition: WorksheetPreview.cpp:47