51 void SetValue(
const wxString &text)
override;
55 void Draw(wxPoint point, wxDC *dc, wxDC *antialiassingDC)
override;
56 const wxFont &GetFont(
AFontSize fontsize)
const {
60 void SetFont(wxDC *dc,
AFontSize fontsize);
70 wxString
ToOMML()
const override;
71 wxString
ToRTF()
const override;
72 virtual wxString
ToString()
const override;
73 virtual const wxString GetDisplayedString()
const override {
return m_displayedText;}
74 wxString
ToTeX()
const override;
75 wxString
ToXML()
const override;
81 wxString GetGreekStringTeX()
const;
83 wxString GetSymbolTeX()
const;
85 wxString GetGreekStringUnicode()
const;
87 wxString GetSymbolUnicode(
bool keepPercent)
const;
98 mutable wxString m_altCopyText;
112 enum TextIndex : int8_t
125 TextIndex index = cellText;
127 textSize(textSize), fontSize(fontSize), index(index) {}
131 wxSize CalculateTextSize(wxDC *dc,
const wxString &text, TextCell::TextIndex
const index);
133 static wxRegEx m_unescapeRegEx;
134 static wxRegEx m_roundingErrorRegEx1;
135 static wxRegEx m_roundingErrorRegEx2;
136 static wxRegEx m_roundingErrorRegEx3;
137 static wxRegEx m_roundingErrorRegEx4;
145 std::vector<SizeEntry> m_sizeCache;
149 void InitBitFields_TextCell()
The definition of the base class of all cells the worksheet consists of.
CellType
The supported types of math cells.
Definition: Cell.h:64
TextStyle
All text styles known to wxMaxima.
Definition: TextStyle.h:231
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
Configuration * m_configuration
A pointer to the configuration responsible for this worksheet.
Definition: Cell.h:978
const TextStyle & GetTextStyle() const
Get the text style.
Definition: Cell.h:523
The configuration storage for the current worksheet.
Definition: Configuration.h:85
const Style * GetStyle(TextStyle textStyle) const
Get the text Style for a given text style identifier.
Definition: Configuration.h:873
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:74
const wxFont & GetFont(AFontSize fontSize) const
Returns the font associated with this style, but with the size fontSize.
Definition: TextStyle.cpp:349
A Text cell.
Definition: TextCell.h:38
void SetStyle(TextStyle style) override
Sets the TextStyle of this cell.
Definition: TextCell.cpp:136
wxString ToTeX() const override
Convert this cell to its LaTeX representation.
Definition: TextCell.cpp:621
wxString m_text
The text we keep inside this cell.
Definition: TextCell.h:142
bool m_dontEscapeOpeningParenthesis
Is an ending "(" of a function name the opening parenthesis of the function?
Definition: TextCell.h:157
void UpdateToolTip()
Update the tooltip for this cell.
Definition: TextCell.cpp:153
bool IsOperator() const override
Is this cell an operator?
Definition: TextCell.cpp:484
wxString ToMathML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: TextCell.cpp:1022
const wxString & GetAltCopyText() const override
Get the text set using SetAltCopyText - may be empty.
Definition: TextCell.h:105
void FontsChanged() override
To be called if the font has changed.
Definition: TextCell.h:107
const wxString & GetValue() const override
Gets the text this text cell contains.
Definition: TextCell.h:79
void SetType(CellType type) override
Sets the text style according to the type.
Definition: TextCell.cpp:148
wxString ToMatlab() const override
Convert this cell to its Matlab representation.
Definition: TextCell.cpp:554
void Draw(wxPoint point, wxDC *dc, wxDC *antialiassingDC) override
Draw this cell.
Definition: TextCell.cpp:454
virtual const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
wxString ToOMML() const override
Returns the cell's representation as OMML.
Definition: TextCell.cpp:1096
virtual void Recalculate(AFontSize fontsize) override
Recalculate the size of the cell and the difference between top and center.
Definition: TextCell.cpp:425
virtual wxString GetXMLFlags() const
Returns the XML flags this cell needs in wxMathML.
Definition: TextCell.cpp:1182
wxString m_displayedText
The text we display: We might want to convert some characters or do similar things.
Definition: TextCell.h:144
bool IsShortNum() const override
True if this cell represents a short number.
Definition: TextCell.cpp:1259
void DontEscapeOpeningParenthesis()
Calling this function signals that the "(" this cell ends in isn't part of the function name.
Definition: TextCell.h:66
wxString ToXML() const override
Convert this cell to a representation fit for saving in a .wxmx file.
Definition: TextCell.cpp:1212
bool m_promptTooltip
Default to a special tooltip for prompts?
Definition: TextCell.h:159
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
wxString ToRTF() const override
Returns the cell's representation as RTF.
Definition: TextCell.cpp:1164
virtual wxString ToString() const override
Returns the cell's representation as a string.
Definition: TextCell.cpp:494
void SetValue(const wxString &text) override
Set the text contained in this cell.
Definition: TextCell.cpp:360
void SetAltCopyText(const wxString &text) override
What should end up if placing this cell on the clipboard?
Definition: TextCell.h:93
virtual void UpdateDisplayedText()
The text we actually display depends on many factors, unfortunately.
Definition: TextCell.cpp:381
Definition: TextCell.h:122