72 return m_baseCell.get();
78 return m_exptCell.get();
82 return m_matrixOpen.get();
84 return m_matrixClose.get();
101 void Draw(wxDC *dc, wxDC *antialiassingDC)
override;
105 wxString
ToOMML()
const override;
107 wxString
ToTeX()
const override;
108 wxString
ToXML()
const override;
117 void IsMatrix(
bool isMatrix);
118 bool IsMatrix()
const {
return m_isMatrix; }
128 void MakeBreakupCells();
130 wxCoord ExponentWidth()
const;
132 wxString ExponentToMathML()
const;
135 wxString m_altCopyText;
140 std::unique_ptr<Cell> m_baseCell;
141 std::unique_ptr<Cell> m_exp;
142 std::unique_ptr<Cell> m_open;
143 std::unique_ptr<Cell> m_exptCell;
144 std::unique_ptr<Cell> m_close;
145 std::unique_ptr<Cell> m_matrixOpen;
146 std::unique_ptr<Cell> m_matrixClose;
149 mutable int m_expt_yoffset = 0;
153 bool m_isMatrix : 1 =
false;
The definition of the base class of all cells the worksheet consists of.
A Type-Safe Fixed-Point Font Size.
Definition: FontAttribs.h:99
A class that carries information about the type of a cell.
Definition: Cell.h:93
The base class all cell types the worksheet can consist of are derived from.
Definition: Cell.h:148
virtual void SetCurrentPoint(wxPoint point) const
Pass 2: Arrangement.
Definition: Cell.cpp:532
AFontSize m_fontSize_Scaled
The font size is smaller in super- and subscripts.
Definition: Cell.h:1289
The configuration storage for the current worksheet.
Definition: Configuration.h:102
This cell represents a exp() or e^x-construct.
Definition: ExptCell.h:56
wxString GetDiffPart() const override
Get the part for diff tag support.
Definition: ExptCell.cpp:234
size_t GetInnerCellCount() const override
ORDER MATTERS: the first five are also this cell's broken/linear draw sequence (see GetBrokenCellCoun...
Definition: ExptCell.h:68
wxString ToMatlab() const override
Convert this cell to its Matlab representation.
Definition: ExptCell.cpp:197
wxString ToTeX() const override
Convert this cell to its LaTeX representation.
Definition: ExptCell.cpp:213
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
double PowRise() const
By how much do we want to rise the power?
Definition: ExptCell.h:94
Cell * GetInnerCell(size_t index) const override
Retrieve an inner cell with given index which must be less than GetInnerCellCount.
Definition: ExptCell.h:69
static wxString MatrixPowerToolTip()
The tooltip explaining a matrix power; SubSupCell uses it, too.
Definition: ExptCell.cpp:88
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
wxString ToXML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: ExptCell.cpp:260
bool BreakUp() const override
Try to split this command into lines to make it fit on the screen.
Definition: ExptCell.cpp:266
void SetCurrentPoint(wxPoint point) const override
Pass 2 (Arrange): Positions the base and the raised exponent.
Definition: ExptCell.cpp:104
void Recalculate(const AFontSize fontsize) const override
Recalculate the size of the cell and the difference between top and center.
Definition: ExptCell.cpp:140
wxString ToOMML() const override
Returns the cell's representation as OMML.
Definition: ExptCell.cpp:251
void SetAltCopyText(const wxString &text) override
What should end up if placing this cell on the clipboard?
Definition: ExptCell.h:124
size_t GetBrokenCellCount() const override
The linear form never shows the angle brackets of a matrix power.
Definition: ExptCell.h:91
const wxString & GetAltCopyText() const override
Get the text set using SetAltCopyText - may be empty.
Definition: ExptCell.h:125
wxString ToMathML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: ExptCell.cpp:244
void Draw(wxDC *dc, wxDC *antialiassingDC) override
Pass 3 (Paint): Renders the cell using pre-calculated coordinates.
Definition: ExptCell.cpp:129
wxString ToString() const override
Returns the cell's representation as a string.
Definition: ExptCell.cpp:182
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88