38#ifndef WORKSHEETEXPORT_H
39#define WORKSHEETEXPORT_H
43#include <wx/textfile.h>
52namespace WorksheetExport {
80 const wxString &file);
89 const std::vector<int> &cellMap,
bool fixReorderedIndices);
100 std::vector<int> &cellMap);
void CalculateReorderedCellIndices(GroupCell *tree, int &cellIndex, std::vector< int > &cellMap)
Determine the (iN)/(oN) indices a fresh evaluation would assign.
Definition: WorksheetExport.cpp:132
wxString RTFStart(Configuration *configuration)
The RTF document header: font, color and stylesheet tables.
Definition: WorksheetExport.cpp:333
bool ExportToHTML(GroupCell *tree, Configuration *configuration, const wxString &file, CellPointers *cellPointers, GroupCell *hCaret)
Export the tree to an HTML file.
Definition: WorksheetExport.cpp:428
wxSize CopyToFile(const wxString &file, Cell *start, Cell *end, bool asData, double scale, const Configuration *const *configuration)
Render the cell range into an image file; returns the image's size.
Definition: WorksheetExport.cpp:419
wxString RTFEnd()
The RTF document footer matching RTFStart().
Definition: WorksheetExport.cpp:385
void ExportToMAC(wxTextFile &output, GroupCell *tree, bool wxm, const std::vector< int > &cellMap, bool fixReorderedIndices)
Serialize the tree as .wxm (wxm = true) or .mac lines into output.
Definition: WorksheetExport.cpp:183
std::unique_ptr< Cell > CopySelection(Cell *start, Cell *end, bool asData=false)
Copy the cell range into a fresh list of cells.
Definition: WorksheetExport.cpp:390
void AddLineToFile(wxTextFile &output, const wxString &s)
Add a (possibly multi-line) string to output as individual lines.
Definition: WorksheetExport.cpp:117
bool ExportToTeX(GroupCell *tree, Configuration *configuration, const wxString &file)
Export the tree to a LaTeX document; images go to a <name>_img directory.
Definition: WorksheetExport.cpp:221
The storage for pointers to cells.
Definition: CellPointers.h:45
The base class all cell types the worksheet can consist of are derived from.
Definition: Cell.h:141
The configuration storage for the current worksheet.
Definition: Configuration.h:97
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:87