wxMaxima
Loading...
Searching...
No Matches
Public Types | Public Member Functions
MaximaOutputAppender Class Reference

Public Types

enum  AppendOpt { NewLine = 1 , BigSkip = 2 , PromptToolTip = 4 , DefaultOpt = NewLine | BigSkip }
 Options controlling how an appended cell is laid out. A bit set.
 

Public Member Functions

 MaximaOutputAppender (wxMaxima &wxm)
 
TextCellConsoleAppend (wxString s, CellType type)
 Append one line s of the given type to the console, dispatching on the type (plain text goes verbatim, prompts/other run through the parser).
 
void ConsoleAppend (wxXmlDocument xml, CellType type, const wxString &userLabel={})
 Append a parsed 2D-maths XML fragment to the console.
 
void DoConsoleAppend (wxString s, CellType type, AppendOpt opts=DefaultOpt, const wxString &userLabel={})
 Parse s as MathML-like XML into a cell and insert it.
 
TextCellDoRawConsoleAppend (wxString s, CellType type, AppendOpt opts={})
 Append one or more lines of ordinary unicode text to the console.
 

Member Function Documentation

◆ ConsoleAppend()

TextCell * MaximaOutputAppender::ConsoleAppend ( wxString  s,
CellType  type 
)

Append one line s of the given type to the console, dispatching on the type (plain text goes verbatim, prompts/other run through the parser).

ConsoleAppend adds a new line s of type to the console window.

Dispatches on the cell type: plain-text types (default output, errors, warnings, text, ASCII maths) go to DoRawConsoleAppend verbatim; prompts and everything else are wrapped in ... and run through the XML parser via DoConsoleAppend. Also enforces the max-output-cells-per-command limit and strips a trailing </PROMPT> tag.

◆ DoRawConsoleAppend()

TextCell * MaximaOutputAppender::DoRawConsoleAppend ( wxString  s,
CellType  type,
AppendOpt  opts = {} 
)

Append one or more lines of ordinary unicode text to the console.

Returns
A pointer to the last line that was appended or NULL if there is no such line.

The documentation for this class was generated from the following files: