 |
wxMaxima
|
43 void Draw(wxPoint point)
override;
45 void AddNewCell(std::unique_ptr<Cell> &&cell);
47 void NewRow() { m_matHeight++; m_dropCenters.emplace_back(-1, -1);}
48 void NewColumn() { m_matWidth++; m_widths.emplace_back(-1);}
54 wxString
ToOMML()
const override;
56 wxString
ToTeX()
const override;
57 wxString
ToXML()
const override;
59 void SetSpecialFlag(
bool special) { m_specialMatrix = special; }
61 void SetInferenceFlag(
bool inference) { m_inferenceMatrix = inference; }
63 void RowNames(
bool rn) { m_rowNames = rn; }
65 void ColNames(
bool cn) { m_colNames = cn; }
67 void RoundedParens() { m_parenType = paren_rounded;}
68 void BracketParens() { m_parenType = paren_brackets;}
69 void StraightParens() { m_parenType = paren_straight;}
70 void AngledParens() { m_parenType = paren_angled;}
75 int drop = {}, center = {};
76 constexpr
int Sum()
const {
return drop + center; }
77 constexpr DropCenter() =
default;
78 constexpr DropCenter(
int drop,
int center) : drop(drop), center(center) {}
82 std::vector<std::unique_ptr<Cell>> m_cells;
84 std::vector<int> m_widths;
85 std::vector<DropCenter> m_dropCenters;
87 unsigned int m_matWidth = 0;
88 unsigned int m_matHeight = 0;
90 enum parenType : int8_t
102 m_parenType = paren_rounded;
103 m_specialMatrix =
false;
104 m_inferenceMatrix =
false;
108 uint8_t m_parenType : 2 ;
109 bool m_specialMatrix : 1 ;
110 bool m_inferenceMatrix : 1 ;
111 bool m_rowNames : 1 ;
112 bool m_colNames : 1 ;
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
wxString ToString() const override
Returns the cell's representation as a string.
Definition: MatrCell.cpp:300
wxString ToMatlab() const override
Convert this cell to its Matlab representation.
Definition: MatrCell.cpp:321
wxString ToOMML() const override
Definition: MatrCell.cpp:420
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Cell * GetInnerCell(int index) const override
Definition: MatrCell.h:39
Definition: MatrCell.h:30
wxString ToMathML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: MatrCell.cpp:400
wxString ToXML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: MatrCell.cpp:458
Definition: FontAttribs.h:97
Definition: Configuration.h:83
void Recalculate(AFontSize fontsize) override
Definition: MatrCell.cpp:63
Definition: GroupCell.h:68
A class that carries information about the type of a cell.
Definition: Cell.h:90
int GetInnerCellCount() const override
The number of inner cells - for use by the iterators.
Definition: MatrCell.h:38
wxString ToTeX() const override
Convert this cell to its LaTeX representation.
Definition: MatrCell.cpp:344