27#ifndef WORKSHEETPREVIEW_H
28#define WORKSHEETPREVIEW_H
63 std::unique_ptr<GroupCell>
tree;
65 std::array<GroupCell *, static_cast<size_t>(Topic::count)>
headings{};
70 return headings[
static_cast<size_t>(topic)];
The configuration storage for the current worksheet.
Definition: Configuration.h:101
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:48
static wxString MatrixXml()
What Maxima sends for genmatrix(lambda([i,j],100*i+j),n,n), n = MatrixSize.
Definition: WorksheetPreview.cpp:35
Topic
What part of the preview a setting affects.
Definition: WorksheetPreview.h:50
@ oversizedMatrix
A matrix too large for the window.
@ labels
Labels, the label width, indenting maths and multiplication signs.
@ 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:63
std::array< GroupCell *, static_cast< size_t >(Topic::count)> headings
The text cell each topic starts with; owned by tree.
Definition: WorksheetPreview.h:65
static WorksheetPreview Make(Configuration *config)
Builds the preview's cells with this configuration.
Definition: WorksheetPreview.cpp:66
GroupCell * matrixGroup
The code cell whose output is the oversized matrix; owned by tree.
Definition: WorksheetPreview.h:67
static constexpr int MatrixSize
The oversized matrix has this many rows and as many columns.
Definition: WorksheetPreview.h:74
static wxString Factorial200()
The decimal digits of 200!, a number long enough to be shortened by default.
Definition: WorksheetPreview.cpp:46