28#include "FontAttribs.h"
33#include <unordered_map>
62#if wxUSE_ACCESSIBILITY
63 wxAccStatus GetName (
int childId, wxString *name)
const override;
64 wxAccStatus GetDescription(
int childId, wxString *description)
const override;
65 wxAccStatus GetFocus (
int *childId,
Cell **child)
const override;
66 wxAccStatus GetDefaultAction(
int childId, wxString *actionName)
const override;
67 wxAccStatus
GetValue (
int childId, wxString *strValue)
const override;
68 wxAccStatus GetRole (
int childId, wxAccRole *role)
const override;
69 wxAccStatus GetState (
int childId,
long *state)
const override;
100 void UpdateSelectionString();
107 void SetSelection(
size_t start,
size_t end){m_selectionStart = ClampToText(start); m_selectionEnd = ClampToText(end); UpdateSelectionString();}
108 bool SelectionActive()
const {
return m_selectionStart != m_selectionEnd;}
109 void ClearSelection() {SelectionEnd(SelectionEnd());}
110 void SelectionStart(
size_t start) {m_selectionStart = ClampToText(start); UpdateSelectionString();}
111 void SelectionEnd(
size_t end) {m_selectionEnd = ClampToText(end); UpdateSelectionString();}
112 size_t SelectionStart()
const {
return std::min(m_selectionStart, m_text.Length());}
113 size_t SelectionEnd()
const {
return std::min(m_selectionEnd, m_text.Length());}
114 size_t SelectionLeft()
const {
return std::min(SelectionStart(), SelectionEnd());}
115 size_t SelectionRight()
const {
return std::max(SelectionStart(), SelectionEnd());}
116 size_t SelectionLength()
const {
return(SelectionEnd()-SelectionStart());}
117 void SelectionLength(
size_t length) {SelectionEnd(SelectionStart() + length); UpdateSelectionString();}
118 void CursorMove(
long long increment) {m_selectionEnd = ClampToText(
static_cast<long long>(m_selectionEnd) + increment);
119 m_selectionStart = m_selectionEnd; UpdateSelectionString();}
120 size_t CursorPosition()
const {
return std::min(m_selectionEnd, m_text.Length());}
121 void CursorPosition(
size_t pos) {m_selectionStart = ClampToText(pos);
122 m_selectionEnd = m_selectionStart; UpdateSelectionString();}
135 InsertText(InterpretEscapeString(txt));
168 static wxString
TabExpand(
const wxString &input_,
size_t posInLine);
180 virtual void Draw(wxDC *dc, wxDC *antialiassingDC)
override;
192 wxString
ToMatlab(
bool dontLimitToSelection)
const;
194 wxString
ToRTF()
const override;
196 wxString
ToString(
bool dontLimitToSelection)
const;
198 wxString
ToTeX()
const override;
200 wxString
ToXML()
const override;
216 void SetValue(
const wxString &text)
override;
222 const wxString &
GetValue()
const override {
return m_text; }
231 const std::vector<std::size_t> &
GetSoftBreaks()
const {
return m_softBreaks; }
244 m_diffHighlights = std::move(ranges);
245 m_diffHighlightsTextLength = m_text.Length();
249 return m_diffHighlights;
263 void StyleTextTexts()
const;
281 std::size_t &cursorPos)
const;
319 void PositionToXY(
size_t position,
size_t *x,
size_t *y);
336 bool includeDoubleQuotes =
false);
349 {
return SelectionStart(); }
353 {
return SelectionEnd(); }
358 SetSelection(0, m_text.Length());
364 return (SelectionStart() == 0) && (SelectionEnd() == m_text.Length());
376 return SelectionActive();
381 void FindMatchingParens();
406 m_displayCaret = !m_displayCaret;
409 void SetFocus(
bool focus)
override
418 {
return CursorPosition() == 0; }
425 {
return CursorPosition() == m_text.Length(); }
434 bool CanUndo()
const {
return m_history.CanUndo();}
440 bool CanRedo()
const {
return m_history.CanRedo();}
449 enum Action : uintptr_t {
460 HistoryEntry(
const wxString &text,
long long selStart,
long long selEnd) :
461 m_text(text), m_selStart(selStart), m_selEnd(selEnd) {}
462 long long SelectionStart()
const {
return m_selStart;}
463 long long SelectionEnd()
const {
return m_selEnd;}
464 wxString GetText()
const {
return m_text;}
467 long long m_selStart = -1;
468 long long m_selEnd = -1;
471 bool AddState(
const wxString &text,
long long selStart,
long long selEnd, Action action = any);
474 bool CanUndo()
const;
475 bool CanRedo()
const;
476 void ClearUndoBuffer();
479 std::vector<HistoryEntry> m_history;
481 size_t m_historyPosition = 0;
482 Action m_lastAction = any;
486 void SaveValue(History::Action action = History::Action::any);
496 void CommentSelection();
500 {
return m_containsChanges; }
504 { m_containsChanges = m_containsChangesCheck = changes; }
510 size_t ReplaceAll(wxString oldString,
const wxString &newString,
bool ignoreCase);
511 size_t ReplaceAll_RegEx(
const wxString &oldString,
const wxString &newString);
523 bool FindNext(wxString str,
const bool &down,
const bool &ignoreCase);
524 bool FindNext_RegEx(wxString str,
const bool &down);
526 bool IsSelectionChanged()
const {
return m_selectionChanged; }
528 void GetSelection(
size_t *start,
size_t *end)
const
530 *start = SelectionStart();
531 *end = SelectionEnd();
547 bool keepSelected =
false,
bool ignoreCase =
false,
548 bool replaceMaximaString =
false);
549 bool ReplaceSelection_RegEx(
const wxString &oldStr,
const wxString &newString);
564 void SetErrorIndex(
size_t index){m_errorIndex = index; m_errorIndexSet =
true;}
568 bool ErrorIndexSet()
const {
return m_errorIndexSet;}
577 {
return CursorPosition(); }
585 bool FindNextTemplate(
bool left =
false);
587 void InsertText(wxString text);
589 wxString TextInFrontOfSelection()
const
591 return GetValue().Left(SelectionLeft());
597 SetSelection(m_lastSelectionStart, 0);
608 SetSelection(m_lastSelectionStart, m_text.Length());
620 size_t ClampToText(
long long pos)
const {
623 return std::min(
static_cast<size_t>(pos), m_text.Length());
625 size_t m_selectionStart = 0;
626 size_t m_selectionEnd = 0;
627 size_t m_lastSelectionStart = 0;
651 wxString m_indentChar;
655 wxCoord m_indentPixels = 0;
657 bool m_styleThisText =
false;
661 : m_text(text), m_style(style), m_styleThisText(true) {}
665 const wxString &indentChar = {})
666 : m_text(text), m_style(style), m_indentChar(indentChar), m_indentPixels(indentPixels) {}
668 void SetWidth(wxCoord width){m_width = width;}
669 void ResetSize(){m_width.Invalidate();}
670 wxCoord GetWidth()
const {
return m_width;}
671 bool SizeKnown()
const {
return m_width.IsValid();}
673 const wxString &
GetText()
const {
return m_text; }
675 void SetText(
const wxString &text) { m_text = text; }
679 m_indentPixels = indentPixels;
680 m_indentChar = indentString;
684 const wxString &GetIndentChar()
const {
return m_indentChar; }
689 bool IsStyleSet()
const {
return m_styleThisText; }
694 bool HandleCtrlCommand(wxKeyEvent &ev);
696 bool HandleSpecialKey(wxKeyEvent &event);
697 bool HandleOrdinaryKey(wxKeyEvent &event);
699 void FontsChanged()
const override
719 struct SoftBreakCandidate {
720 std::size_t snippetIdx = 0;
721 std::size_t textPos = 0;
726 void HandleSoftLineBreaks_Code(SoftBreakCandidate &candidate, wxCoord &lineWidth,
727 const wxString &token, wxCoord &indentationPixels)
const;
736 static bool BreakAfterOperator(
const wxString &token,
const wxString &prevToken,
737 const wxString &nextToken);
745 bool IsSoftBreakBefore(std::size_t pos)
const {
746 return std::binary_search(m_softBreaks.begin(), m_softBreaks.end(), pos);
754 size_t GetIndentDepth(wxString text,
size_t positionOfCaret)
const;
762 static wxString InterpretEscapeString(
const wxString &txt);
765 void MarkSelection(wxDC *dc,
size_t start,
size_t end,
TextStyle style);
768 wxSize GetTextSize(
const wxString &text)
const;
773 void SetState(
const History::HistoryEntry &state);
775 std::vector<StyledText> &GetStyledText();
779 typedef std::unordered_map <wxString, wxSize, wxStringHash> StringHash;
781 mutable StringHash m_widths;
784 mutable std::vector<wxString> m_wordList;
787 mutable MaximaTokenizer::TokenList m_tokens;
789 mutable MaximaTokenizer::TokenList m_tokens_including_hidden;
793 mutable wxString m_text;
814 mutable std::vector<std::size_t> m_softBreaks;
817 std::vector<std::pair<std::size_t, std::size_t>> m_diffHighlights;
821 std::size_t m_diffHighlightsTextLength = 0;
830 size_t m_errorIndex = 1;
831 mutable size_t m_numberOfLines = 1;
832 mutable wxCoord m_charHeight = 12;
833 long m_paren1 = -1, m_paren2 = -1;
842 mutable bool m_tokens_including_hidden_valid =
false;
844 mutable bool m_tokens_valid =
false;
849 void InitBitFields_EditorCell()
852 m_autoAnswer =
false;
853 m_containsChanges =
false;
854 m_containsChangesCheck =
false;
855 m_displayCaret =
false;
857 m_selectionChanged =
false;
858 m_underlined =
false;
859 m_errorIndexSet =
false;
863 bool m_autoAnswer : 1 ;
865 mutable bool m_containsChanges : 1 ;
866 bool m_containsChangesCheck : 1 ;
867 bool m_displayCaret : 1 ;
868 bool m_hasFocus : 1 ;
869 bool m_errorIndexSet : 1 ;
871 bool m_selectionChanged : 1 ;
873 bool m_underlined : 1 ;
874 mutable bool m_isDirty =
true ;
The definition of the base class of all cells the worksheet consists of.
CellType
The supported types of math cells.
Definition: Cell.h:64
This file declares the class Maximatokenizer.
TextStyle
All text styles known to wxMaxima.
Definition: TextStyle.h:231
A Type-Safe Fixed-Point Font Size.
Definition: FontAttribs.h:97
A cached integer value.
Definition: CachedValue.h:45
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
Cell * GetNext() const
Get the next cell in the list.
Definition: Cell.h:767
Cell * GetPrevious() const
Returns a pointer to the previous cell in the current cell list.
Definition: Cell.h:764
wxCoord GetLineWidth() const
How many pixels is the current line of this list of cells wide?
Definition: Cell.cpp:407
Configuration * m_configuration
A pointer to the configuration responsible for this worksheet.
Definition: Cell.h:1105
DocumentCellPointers * GetDocumentCellPointers() const
The document-model half of the cell-pointer registry this cell uses.
Definition: Cell.cpp:71
virtual void SetCurrentPoint(wxPoint point) const
Pass 2: Arrangement.
Definition: Cell.cpp:515
AFontSize m_fontSize_Scaled
The font size is smaller in super- and subscripts.
Definition: Cell.h:1148
ViewCellPointers * GetViewCellPointers() const
The transient view-state half of the cell-pointer registry this cell uses.
Definition: Cell.cpp:75
bool NeedsRecalculation() const
True, if something that affects the cell size has changed.
Definition: Cell.h:513
const TextStyle & GetTextStyle() const
Get the text style.
Definition: Cell.h:595
The configuration storage for the current worksheet.
Definition: Configuration.h:98
const Style * GetStyle(TextStyle textStyle) const
Get the text Style for a given text style identifier.
Definition: Configuration.h:1037
The document-model half of the cell-pointer registry.
Definition: CellPointers.h:50
How an entry to the undo history looks like.
Definition: EditorCell.h:457
The undo history of this cell.
Definition: EditorCell.h:447
A piece of styled text for syntax highlighting.
Definition: EditorCell.h:643
const wxString & GetText() const
Returns the piece of text.
Definition: EditorCell.h:673
void SetIndentation(wxCoord indentPixels, const wxString &indentString={})
Changes the indentation level of this token.
Definition: EditorCell.h:677
StyledText(const wxString &text, TextStyle style, wxCoord indentPixels=0, const wxString &indentChar={})
Defines a piece of text with the default style that possibly is indented.
Definition: EditorCell.h:664
TextStyle GetTextStyle() const
If IsStyleSet() is true this function returns the style of this text portion.
Definition: EditorCell.h:687
StyledText(TextStyle style, const wxString &text)
Defines a piece of styled text.
Definition: EditorCell.h:660
wxCoord GetIndentPixels() const
By how many pixels do we need to indent this line due to a bullet list or similar?
Definition: EditorCell.h:683
void SetText(const wxString &text)
Changes the piece of text kept in this token.
Definition: EditorCell.h:675
This class defines what the user sees as input cell.
Definition: EditorCell.h:60
const MaximaTokenizer::TokenList & GetAllTokens() const
Get the list of commands, parenthesis, strings and whitespaces in a code cell.
Definition: EditorCell.cpp:3646
void SetValue(const wxString &text) override
Sets the text that is to be displayed.
Definition: EditorCell.cpp:3703
virtual wxString XMLTypeAttribute() const
The type="..." attribute ToXML() writes for this cell.
Definition: EditorCell.cpp:609
void SetCurrentPoint(wxPoint point) const override
Pass 2: Arrangement.
Definition: EditorCell.cpp:871
size_t ReplaceAll(wxString oldString, const wxString &newString, bool ignoreCase)
Replaces all occurrences of a given string.
Definition: EditorCell.cpp:3731
const wxFont & GetFont() const
Get the font that matches this cell's formatting.
Definition: EditorCell.h:203
virtual wxString PreprocessNewValue(const wxString &text, std::size_t &cursorPos) const
Transform text on its way into SetValue(); returns what to store and sets cursorPos.
Definition: EditorCell.cpp:3697
void CaretToStart()
Move the cursor to the start of this cell.
Definition: EditorCell.cpp:4158
bool IsActive() const override
Is this editor cell focused?
Definition: EditorCell.cpp:3140
size_t XYToPosition(size_t x, size_t y)
Determines which index the char at the position "x chars left, y chars down" is at.
Definition: EditorCell.cpp:2454
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
size_t GetSelectionStart() const
Get the character position the selection has been started with.
Definition: EditorCell.h:348
void ContainsChanges(bool changes)
Set the information if this cell needs to be re-evaluated by maxima.
Definition: EditorCell.h:503
wxString ToXML() const override
Convert the current cell to XML code for inclusion in a .wxmx file.
Definition: EditorCell.cpp:595
void DeactivateCursor()
Deactivate the blinking cursor in the EditorCell it is in.
Definition: EditorCell.cpp:2324
void StyleTextCode() const
Is Called by StyleText() if this is a code cell.
Definition: EditorCell.cpp:3255
void SetDiffHighlights(std::vector< std::pair< std::size_t, std::size_t > > ranges)
Sets the character ranges of this cell's text the diff viewer wants painted with the TS_DIFF_CHANGED ...
Definition: EditorCell.h:243
void CaretToEnd()
Move the cursor to the end of this cell.
Definition: EditorCell.cpp:4152
size_t GetCaretPosition() const
Get the cursor's current position inside the cell.
Definition: EditorCell.h:576
bool CopyToClipboard() const override
Copy this cell's editable contents to the clipboard.
Definition: EditorCell.cpp:2823
wxString ToRTF() const override
Convert the current cell to RTF code.
Definition: EditorCell.cpp:431
void ClearErrorIndex()
Clears the index the error is at.
Definition: EditorCell.h:566
wxString DivideAtCaret()
DivideAtCaret Returns the string from caret to end and modifies the m_text so it contains only the st...
Definition: EditorCell.cpp:2689
wxString ToString() const override
Returns the cell's representation as a string.
Definition: EditorCell.cpp:352
size_t BeginningOfLine(size_t pos) const
Return the index of the 1st char of the line containing the letter pos.
Definition: EditorCell.cpp:1205
std::vector< StyledText > m_styledText
The styled-run rendering representation of m_text; see StyledText.
Definition: EditorCell.h:796
std::vector< wxCoord > RightToLeftLineOffsets()
How far each line has to move right to sit flush with the widest one.
Definition: EditorCell.cpp:2930
wxString GetCurrentCommand() const
Get the command the cursor is in the arguments for.
Definition: EditorCell.cpp:1106
bool IsDirty() const override
true, if this cell's width has to be recalculated.
Definition: EditorCell.h:398
void ProcessEvent(wxKeyEvent &event) override
Decide what to do if the user pressed a key when this cell was selected.
Definition: EditorCell.cpp:1297
virtual bool IsCodeEditor() const
Does this concrete cell edit code (Maxima input) rather than prose?
Definition: EditorCell.h:99
bool CanRedo() const
True, if a redo can be done for this cell.
Definition: EditorCell.h:440
wxString GetSelectionString() const
Convert the current selection to a string.
Definition: EditorCell.cpp:4061
static wxString TabExpand(const wxString &input_, size_t posInLine)
Expand all tabulators.
Definition: EditorCell.cpp:1171
long GetSelectionEnd() const
Get the character position the selection has been ended with.
Definition: EditorCell.h:352
void Redo()
Issu a redo command.
Definition: EditorCell.cpp:3159
void SetCaretPosition(size_t pos)
Set the cursor's current position inside the cell.
Definition: EditorCell.h:583
size_t EndOfLine(size_t pos)
Return the index of the last char of the line containing the letter #pos,.
Definition: EditorCell.cpp:1227
void SearchStartedHere() const
Remember that this is the cell the search was started in.
Definition: EditorCell.cpp:275
bool CaretAtStart() const
Is the cursor at the start of this cell?
Definition: EditorCell.h:417
virtual void StyleTypedText() const
The code-vs-prose-specific half of StyleText(), chosen by the subclass.
Definition: EditorCell.cpp:3695
void KeyboardSelectionStartedHere() const
Remember that this is the cell the keyboard selection was started in.
Definition: EditorCell.cpp:284
bool ReplaceSelection(const wxString &oldStr, const wxString &newString, bool keepSelected=false, bool ignoreCase=false, bool replaceMaximaString=false)
Replace the current selection with a string.
Definition: EditorCell.cpp:3969
void SwitchCaretDisplay() override
Toggles the visibility of the cursor which is used to make it blink.
Definition: EditorCell.h:404
wxString SelectWordUnderCaret(bool selectParens=true, bool toRight=true, bool includeDoubleQuotes=false)
Selects the word the cursor is currently at.
Definition: EditorCell.cpp:2789
wxString ToTeX() const override
Convert the current cell to LaTeX code.
Definition: EditorCell.cpp:465
const wxString & GetValue() const override
Returns the text contained in this cell.
Definition: EditorCell.h:222
const std::vector< std::pair< std::size_t, std::size_t > > & GetDiffHighlights() const
The ranges set by SetDiffHighlights() (empty outside the diff viewer).
Definition: EditorCell.h:248
void SelectAll() override
Select the whole text contained in this Cell.
Definition: EditorCell.h:356
void ReturnToSelectionFromBot()
Return to the selection after the cell has been left downwards.
Definition: EditorCell.h:606
bool CanCopy() const override
Select Can we copy the editable text of this cell?
Definition: EditorCell.h:374
void SelectNone()
Unselect everything.
Definition: EditorCell.h:368
bool FindMatchingQuotes()
For a given quotation mark ("), find a matching quote.
Definition: EditorCell.cpp:2220
void AddDrawParameter(wxString param)
Add a new parameter to a draw- or similar command including the comma, if needed.
Definition: EditorCell.cpp:193
void AutoAnswer(bool autoAnswer)
May this Editor Cell contain the answer to a question?
Definition: EditorCell.h:145
void StyleText() const
Converts m_text to a list of styled text snippets that will later be displayed by draw().
Definition: EditorCell.cpp:3665
wxString GetWordUnderCaret()
The word the cursor currently is at.
Definition: EditorCell.cpp:2750
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
wxString GetFullCommandUnderCursor()
Get the whole maxima command that is currently under the cursor (including all arguments)
Definition: EditorCell.cpp:288
wxPoint PositionToPoint() override
Locates the cursor in the editable text of this cell.
Definition: EditorCell.h:326
void SelectRectText(wxPoint one, wxPoint two) override
Selects the text between the screen coordinates one and two.
Definition: EditorCell.cpp:2625
void SetErrorIndex(size_t index)
Sets the index the error is at.
Definition: EditorCell.h:564
bool AllSelected() const
Does the selection currently span the whole cell?
Definition: EditorCell.h:362
wxCoord RightToLeftLineOffset(size_t line)
RightToLeftLineOffsets() for a single line, 0 when there is none.
Definition: EditorCell.cpp:2982
TextStyle GetSelectionStyle() const
Try to determine the selection's text style.
Definition: EditorCell.cpp:4066
void SaveValue(History::Action action=History::Action::any)
Save the current contents of this cell in the undo buffer.
Definition: EditorCell.cpp:3170
void PositionToXY(size_t position, size_t *x, size_t *y)
Determines which line and column the pos'th char is at.
Definition: EditorCell.cpp:2425
bool IsPointInSelection(wxPoint point)
Is the point point inside the currently selected text?
Definition: EditorCell.cpp:2636
void PasteFromClipboard(bool primary=false) override
Paste from the clipboard into this cell.
Definition: EditorCell.cpp:2905
void Undo()
Issue an undo command.
Definition: EditorCell.cpp:3144
void SetFont(wxDC *dc) const
Set the currently used font to the one that matches this cell's formatting.
Definition: EditorCell.cpp:1081
wxString ToMatlab() const override
Convert this cell to its Matlab representation.
Definition: EditorCell.cpp:378
bool CutToClipboard() override
Cut this cell's editable contents to the clipboard.
Definition: EditorCell.cpp:2857
EditorCell * GetPrevious() const
Get the previous EditorCell in the list.
Definition: EditorCell.h:128
static bool IsCodeType(CellType type)
Is type a code (Maxima-input) cell type, as opposed to text/sectioning?
Definition: EditorCell.cpp:181
bool CanUndo() const
True, if there is undo information for this cell.
Definition: EditorCell.h:434
bool ActivateCursor()
Activate the blinking cursor in this cell.
Definition: EditorCell.cpp:2334
void SetStyle(TextStyle style) override
Sets the TextStyle of this cell.
Definition: EditorCell.cpp:1076
void InsertEscCommand(const wxString &txt)
Insert the symbol that corresponds to the ESC command txt.
Definition: EditorCell.h:134
bool FindNext(wxString str, const bool &down, const bool &ignoreCase)
Finds the next occurrences of a string.
Definition: EditorCell.cpp:3807
void CaretToPosition(size_t pos)
Move the cursor to a certain position in the cell.
Definition: EditorCell.cpp:4164
bool ContainsChanges() const
Query if this cell needs to be re-evaluated by maxima.
Definition: EditorCell.h:499
EditorCell * GetNext() const
Get the next EditorCell in the list.
Definition: EditorCell.h:131
bool AddEnding() override
Adds a ";" to the end of the last command in this cell in case that it doesn't end in $ or ;.
Definition: EditorCell.cpp:2366
void SetForeground(wxDC *dc)
Sets the current color to this cell's foreground color.
Definition: EditorCell.cpp:1102
bool CaretAtEnd() const
Is the cursor at the end of this cell?
Definition: EditorCell.h:424
void SelectPointText(wxPoint point) override
Sets the cursor to the screen coordinate point.
Definition: EditorCell.cpp:2517
virtual void Draw(wxDC *dc, wxDC *antialiassingDC) override
Pass 3 (Paint): Renders the cell using pre-calculated coordinates.
Definition: EditorCell.cpp:875
const std::vector< std::size_t > & GetSoftBreaks() const
The soft (word-wrap) line-break offsets of the last styling pass.
Definition: EditorCell.h:231
const auto & GetWordList() const
A list of words that might be applicable to the autocomplete function.
Definition: EditorCell.h:160
void Recalculate(const AFontSize fontsize) const override
Recalculate the size of the cell and the difference between top and center.
Definition: EditorCell.cpp:678
void MouseSelectionStartedHere() const
Remember that this is the cell the mouse selection was started in.
Definition: EditorCell.cpp:280
wxString ToHTML() const
Convert the current cell to HTML code.
Definition: EditorCell.cpp:753
static std::unique_ptr< EditorCell > Create(GroupCell *group, Configuration *config, CellType type, wxString text={})
Construct the EditorCell subtype (code vs.
Definition: EditorCell.cpp:185
void ProcessNewline(bool keepCursorAtStartOfLine=true)
Start a new line and optionally auto-indent it.
Definition: EditorCell.cpp:1468
void ConvertNumToUNicodeChar()
Convert a number to unicode chars.
Definition: EditorCell.cpp:634
static wxString PrependNBSP(wxString input)
Convert all but the first of a row of multiple spaces to non-breakable.
Definition: EditorCell.cpp:322
static wxString EscapeHTMLChars(wxString input)
Escape all chars that cannot be used in HTML otherwise.
Definition: EditorCell.cpp:84
void ReturnToSelectionFromTop()
Return to the selection after the cell has been left upwards.
Definition: EditorCell.h:595
void SetType(CellType type) override
Sets the text style according to the type.
Definition: EditorCell.cpp:1071
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88
This class generates a pane containing the last commands that were issued.
Definition: History.h:56
const wxFont & GetFont(AFontSize fontSize) const
Returns the font associated with this style, but with the size fontSize.
Definition: TextStyle.cpp:355
The view/interaction half of the cell-pointer registry.
Definition: CellPointers.h:187