40class wxStringTokenizer;
55 bool clearDocument =
true);
59 bool clearDocument =
true);
64 bool clearDocument =
true);
77 wxString firstLine,
int depth = 0);
81 bool OpenFile(
const wxString &file,
const wxString &command = {});
84 bool SaveFile(
bool forceSave =
false);
98 void ReportSaveFailed();
102 bool m_saveFailedBoxPending =
false;
The worksheet file loaders/savers extracted from the wxMaxima god class.
Definition: MaximaFileIO.h:49
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() fo...
Definition: MaximaFileIO.cpp:606
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 reco...
Definition: MaximaFileIO.cpp:174
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.
Definition: MaximaFileIO.cpp:516
bool OpenXML(const wxString &file, Worksheet *document)
Loads a bare content.xml (extracted from a .wxmx) into the worksheet.
Definition: MaximaFileIO.cpp:541
bool OpenMACFile(const wxString &file, Worksheet *document, bool clearDocument=true)
Loads a Maxima/xMaxima batch file (.mac/.out) into the worksheet.
Definition: MaximaFileIO.cpp:49
bool OpenWXMFile(const wxString &file, Worksheet *document, bool clearDocument=true)
Loads a plain-text wxMaxima worksheet (.wxm) into the worksheet.
Definition: MaximaFileIO.cpp:108
bool OpenWXMXFile(const wxString &file, Worksheet *document, bool clearDocument=true)
Loads a zipped wxMaxima worksheet (.wxmx) into the worksheet, with several fallback strategies for re...
Definition: MaximaFileIO.cpp:229
bool SaveFile(bool forceSave=false)
Saves the worksheet, prompting for a name (Save As) if needed or forced.
Definition: MaximaFileIO.cpp:750
bool AutoSave()
Saves the project to a temp file (autosave), or to its real file.
Definition: MaximaFileIO.cpp:881
The canvas that contains the spreadsheet the whole program is about.
Definition: Worksheet.h:116
Definition: wxMaxima.h:75