 |
wxMaxima
|
49 void SetValue(
const wxString &text)
override;
53 void Draw(wxPoint point)
override;
65 wxString
ToOMML()
const override;
66 wxString
ToRTF()
const override;
67 virtual wxString
ToString()
const override;
68 wxString
ToTeX()
const override;
69 wxString
ToXML()
const override;
73 const wxString &GetValue()
const override {
return m_text; }
75 wxString GetGreekStringTeX()
const;
77 wxString GetSymbolTeX()
const;
79 wxString GetGreekStringUnicode()
const;
81 wxString GetSymbolUnicode(
bool keepPercent)
const;
83 bool IsShortNum()
const override;
92 mutable wxString m_altCopyText;
110 enum TextIndex : int8_t
125 textSize(textSize), fontSize(fontSize), index(index) {}
129 wxSize CalculateTextSize(wxDC *dc,
const wxString &text, TextCell::TextIndex
const index);
131 static wxRegEx m_unescapeRegEx;
132 static wxRegEx m_roundingErrorRegEx1;
133 static wxRegEx m_roundingErrorRegEx2;
134 static wxRegEx m_roundingErrorRegEx3;
135 static wxRegEx m_roundingErrorRegEx4;
143 std::vector<SizeEntry> m_sizeCache;
bool IsOperator() const override
Is this cell an operator?
Definition: TextCell.cpp:455
virtual wxString GetXMLFlags() const
Returns the XML flags this cell needs in wxMathML.
Definition: TextCell.cpp:1191
virtual const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
Definition: TextCell.h:36
virtual wxString ToString() const override
Returns the cell's representation as a string.
Definition: TextCell.cpp:466
TextStyle
Definition: TextStyle.h:307
virtual bool NeedsRecalculation(AFontSize fontSize) const override
True, if something that affects the cell size has changed.
Definition: TextCell.cpp:320
void Draw(wxPoint point) override
Definition: TextCell.cpp:414
void ResetData()
Mark all cached size information as "to be calculated".
Definition: Cell.cpp:1010
wxString m_displayedText
The text we display: We might want to convert some characters or do similar things.
Definition: TextCell.h:142
wxString m_text
The text we keep inside this cell.
Definition: TextCell.h:140
wxString ToXML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: TextCell.cpp:1218
wxString ToRTF() const override
Definition: TextCell.cpp:1171
void SetValue(const wxString &text) override
Set the text contained in this cell.
Definition: TextCell.cpp:306
wxString ToMathML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: TextCell.cpp:1020
void FontsChanged() override
To be called if the font has changed.
Definition: TextCell.h:101
void UpdateToolTip()
Update the tooltip for this cell.
Definition: TextCell.cpp:115
bool m_keepPercent_last
The last known value of CheckKeepPercent.
Definition: TextCell.h:160
void DontEscapeOpeningParenthesis()
Definition: TextCell.h:61
wxString ToTeX() const override
Convert this cell to its LaTeX representation.
Definition: TextCell.cpp:599
wxString ToOMML() const override
Definition: TextCell.cpp:1097
Definition: TextCell.h:120
const wxString & GetAltCopyText() const override
Get the text set using SetAltCopyText - may be empty.
Definition: TextCell.h:99
Definition: FontAttribs.h:97
CellType
Definition: Cell.h:63
bool m_promptTooltip
Default to a special tooltip for prompts?
Definition: TextCell.h:158
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Definition: Configuration.h:83
virtual void UpdateDisplayedText()
The text we actually display depends on many factors, unfortunately.
Definition: TextCell.cpp:337
void ResetSize()
Mark the cached height and width information as "to be calculated".
Definition: Cell.cpp:1034
Definition: GroupCell.h:68
bool m_dontEscapeOpeningParenthesis
Is an ending "(" of a function name the opening parenthesis of the function?
Definition: TextCell.h:156
A class that carries information about the type of a cell.
Definition: Cell.h:90
wxString ToMatlab() const override
Convert this cell to its Matlab representation.
Definition: TextCell.cpp:531
virtual void Recalculate(AFontSize fontsize) override
Definition: TextCell.cpp:382
void SetType(CellType type) override
Sets the text style according to the type.
Definition: TextCell.cpp:105
virtual void SetStyle(TextStyle style) override
Sets the TextStyle of this cell.
Definition: TextCell.cpp:91
void SetAltCopyText(const wxString &text) override
Definition: TextCell.h:87