wxMaxima
Loading...
Searching...
No Matches
Public Member Functions
MaximaFileIO Class Reference

The worksheet file loaders/savers extracted from the wxMaxima god class. More...

#include <MaximaFileIO.h>

Public Member Functions

 MaximaFileIO (wxMaxima &wxm)
 
bool OpenMACFile (const wxString &file, Worksheet *document, bool clearDocument=true)
 Loads a Maxima/xMaxima batch file (.mac/.out) into the worksheet.
 
bool OpenWXMFile (const wxString &file, Worksheet *document, bool clearDocument=true)
 Loads a plain-text wxMaxima worksheet (.wxm) into the worksheet.
 
bool OpenWXMXFile (const wxString &file, Worksheet *document, bool clearDocument=true)
 Loads a zipped wxMaxima worksheet (.wxmx) into the worksheet, with several fallback strategies for recovering a damaged archive.
 
bool OpenXML (const wxString &file, Worksheet *document)
 Loads a bare content.xml (extracted from a .wxmx) into the worksheet.
 
bool CheckWXMXVersion (const wxString &docversion)
 Warns if a document was saved by a newer wxMaxima; returns false if it is too new to open at all.
 
wxString ReadPotentiallyUnclosedTag (wxStringTokenizer &lines, wxString firstLine, int depth=0)
 Reassembles a cell whose closing XML tag went missing in a damaged .wxmx, used by OpenWXMXFile's recovery path (recursive; depth caps the nesting so a crafted file cannot overflow the stack).
 
bool OpenFile (const wxString &file, const wxString &command={})
 Opens a file: picks the loader by extension (or hands the file to Maxima via load()/batch()/demo() for non-worksheet files) and updates the UI.
 
bool SaveFile (bool forceSave=false)
 Saves the worksheet, prompting for a name (Save As) if needed or forced.
 
bool AutoSave ()
 Saves the project to a temp file (autosave), or to its real file.
 

Detailed Description

The worksheet file loaders/savers extracted from the wxMaxima god class.

Owned by value by the wxMaxima frame. Holds a reference back to that frame for the services the loaders/savers need (the worksheet, the status bar, the title, the Maxima process).


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