47 std::unique_ptr<Cell> &&under, std::unique_ptr<Cell> &&over,
48 std::unique_ptr<Cell> &&base);
61 return m_comma1.get();
65 return m_comma2.get();
69 return m_comma3.get();
85 void Draw(wxDC *dc, wxDC *antialiassingDC)
override;
89 wxString
ToOMML()
const override;
91 wxString
ToTeX()
const override;
92 wxString
ToXML()
const override;
99 void Unbreak() const override final;
118 Cell *Over()
const {
return m_over.get();}
119 Cell *Under()
const {
return m_under.get();}
122 std::unique_ptr<Cell> MakeStart(
Cell *under)
const;
123 void MakeBreakUpCells();
124 const static wxString m_svgSumSign;
128 Cell *DisplayedBase()
const;
131 wxString m_altCopyText;
135 std::unique_ptr<Cell> m_open;
136 std::unique_ptr<Cell> m_paren;
137 std::unique_ptr<Cell> m_comma1;
138 std::unique_ptr<Cell> m_var;
139 std::unique_ptr<Cell> m_comma2;
140 std::unique_ptr<Cell> m_start;
141 std::unique_ptr<Cell> m_comma3;
142 std::unique_ptr<Cell> m_close;
143 std::unique_ptr<Cell> m_over;
144 std::unique_ptr<Cell> m_under;
147 mutable wxSize m_signSize;
151 void InitBitFields_SumCell()
154 m_displayParen =
true;
158 mutable bool m_displayParen : 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:97
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
virtual void SetCurrentPoint(wxPoint point)
Pass 2: Arrangement.
Definition: Cell.cpp:466
The configuration storage for the current worksheet.
Definition: Configuration.h:86
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:87
The class that represents parenthesis that are wrapped around text.
Definition: ParenCell.h:50
size_t GetInnerCellCount() const override
The number of inner cells - for use by the iterators.
Definition: SumCell.h:53
wxString ToMathML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: SumCell.cpp:326
wxString ToMatlab() const override
Convert this cell to its Matlab representation.
Definition: SumCell.cpp:262
virtual const wxString GetMaximaCommandName() const
What maxima command name corresponds to this cell?
Definition: SumCell.cpp:118
void SetNextToDraw(Cell *next) const override
Tells this cell which one should be the next cell to be drawn.
Definition: SumCell.cpp:382
bool BreakUp() const override
Try to split this command into lines to make it fit on the screen.
Definition: SumCell.cpp:357
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
virtual const wxString GetXMLType() const
Returns the type our cell has when saving it to .wxmx.
Definition: SumCell.cpp:147
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
virtual const wxString GetMatlabCommandName() const
What matlab command name corresponds to this cell?
Definition: SumCell.cpp:132
wxString ToString() const override
Returns the cell's representation as a string.
Definition: SumCell.cpp:236
virtual const wxSize GetSymbolSize() const
How big do we want our svg symbol to be?
Definition: SumCell.cpp:108
const wxString & GetAltCopyText() const override
Get the text set using SetAltCopyText - may be empty.
Definition: SumCell.h:95
void SetCurrentPoint(wxPoint point) override
Pass 2: Arrangement.
Definition: SumCell.cpp:192
virtual const wxString GetLaTeXCommandName() const
What LaTeX command name corresponds to this cell?
Definition: SumCell.cpp:137
wxString ToTeX() const override
Convert this cell to its LaTeX representation.
Definition: SumCell.cpp:284
void Recalculate(const AFontSize fontsize) const override
Recalculate the size of the cell and the difference between top and center.
Definition: SumCell.cpp:155
void SetAltCopyText(const wxString &text) override
What should end up if placing this cell on the clipboard?
Definition: SumCell.h:94
wxString ToXML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: SumCell.cpp:317
void Unbreak() const override final
Undo breaking this cell into multiple lines.
Definition: SumCell.cpp:352
void Draw(wxDC *dc, wxDC *antialiassingDC) override
Pass 3 (Paint): Renders the cell using pre-calculated coordinates.
Definition: SumCell.cpp:214
Cell * GetInnerCell(size_t index) const override
Retrieve an inner cell with given index which must be less than GetInnerCellCount.
Definition: SumCell.h:54
virtual const wxString GetUnicodeSymbol() const
What unicode symbol name corresponds to this cell?
Definition: SumCell.cpp:142
virtual const wxString GetSvgSymbolData() const
Returns the data that creates our SVG symbol.
Definition: SumCell.cpp:126
Cell * Base() const
The base cell owned by the paren (it's without the paren)
Definition: SumCell.cpp:81
wxString ToOMML() const override
Returns the cell's representation as OMML.
Definition: SumCell.cpp:297
A Text cell.
Definition: TextCell.h:38