48 std::unique_ptr<Cell> &&num, std::unique_ptr<Cell> &&denom);
67 void Draw(wxPoint point, wxDC *dc, wxDC *antialiassingDC)
override;
76 wxString
ToOMML()
const override;
78 wxString
ToTeX()
const override;
79 wxString
ToXML()
const override;
86 void SetupBreakUps()
const;
92 void MakeDivideCell();
95 Cell *Num()
const {
return m_numParenthesis->GetInner(); }
97 Cell *Denom()
const {
return m_denomParenthesis->GetInner(); }
100 std::unique_ptr<ParenCell>
const m_numParenthesis;
102 std::unique_ptr<ParenCell>
const m_denomParenthesis;
104 std::unique_ptr<TextCell> m_divideOwner;
110 mutable Cell* m_displayedNum = {};
114 mutable Cell* m_displayedDenom = {};
118 mutable int m_protrusion = 0;
125 mutable int m_horizontalGapLeft = 0;
132 mutable int m_horizontalGapRight = 0;
139 void InitBitFields_FracCell()
142 m_inExponent =
false;
145 bool m_inExponent : 1 ;
The definition of the base class of all cells the worksheet consists of.
This file declares the class ParenCell.
A Type-Safe Fixed-Point Font Size.
Definition: FontAttribs.h:98
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:142
The configuration storage for the current worksheet.
Definition: Configuration.h:84
Definition: FracCell.h:45
wxString ToTeX() const override
Convert this cell to its LaTeX representation.
Definition: FracCell.cpp:254
bool IsOperator() const override
Answers the question if this is an operator by returning "true".
Definition: FracCell.h:72
wxString ToOMML() const override
Returns the cell's representation as OMML.
Definition: FracCell.cpp:273
Cell * GetInnerCell(size_t index) const override
Retrieve an inner cell with given index which must be less than GetInnerCellCount.
Definition: FracCell.h:55
wxString ToMatlab() const override
Convert this cell to its Matlab representation.
Definition: FracCell.cpp:221
void SetIsExponent() override
Fractions in exponents are shown in their linear form.
Definition: FracCell.cpp:292
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
wxString ToMathML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: FracCell.cpp:268
FracType
All types of fractions we support.
Definition: FracCell.h:59
wxString ToXML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: FracCell.cpp:278
wxString ToString() const override
Returns the cell's representation as a string.
Definition: FracCell.cpp:186
void Recalculate(const AFontSize fontsize) const override
Recalculate the size of the cell and the difference between top and center.
Definition: FracCell.cpp:88
bool BreakUp() const override
Try to split this command into lines to make it fit on the screen.
Definition: FracCell.cpp:315
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
void Draw(wxPoint point, wxDC *dc, wxDC *antialiassingDC) override
Draw this cell.
Definition: FracCell.cpp:139
size_t GetInnerCellCount() const override
The number of inner cells - for use by the iterators.
Definition: FracCell.h:53
void SetNextToDraw(Cell *next) const override
Tells this cell which one should be the next cell to be drawn.
Definition: FracCell.cpp:332
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:74