38#ifndef WORKSHEETEXPORT_H
39#define WORKSHEETEXPORT_H
43#include <wx/textfile.h>
52namespace WorksheetExport {
90 const std::vector<int> &cellMap,
bool fixReorderedIndices);
101 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:596
wxString RTFStart(Configuration *configuration)
The RTF document header: font, color and stylesheet tables.
Definition: WorksheetExport.cpp:838
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:924
wxString RTFEnd()
The RTF document footer matching RTFStart().
Definition: WorksheetExport.cpp:890
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:647
wxString SelectionToSelfContainedHTML(GroupCell *startGroup, GroupCell *endGroup, Configuration *configuration)
Render a range of GroupCells as one self-contained HTML document (GH #2265/#2266/#2267): the styleshe...
Definition: WorksheetExport.cpp:1706
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:895
bool ExportToTeX(GroupCell *tree, Configuration *configuration, const wxString &file, ViewCellPointers *cellPointers, GroupCell *hCaret)
Export the tree to a LaTeX document; images go to a <name>_img directory.
Definition: WorksheetExport.cpp:784
void AddLineToFile(wxTextFile &output, const wxString &s)
Add a (possibly multi-line) string to output as individual lines.
Definition: WorksheetExport.cpp:581
bool ExportToHTML(GroupCell *tree, Configuration *configuration, const wxString &file, ViewCellPointers *cellPointers, GroupCell *hCaret)
Export the tree to an HTML file.
Definition: WorksheetExport.cpp:1589
The base class all cell types the worksheet can consist of are derived from.
Definition: Cell.h:148
The configuration storage for the current worksheet.
Definition: Configuration.h:98
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88
The view/interaction half of the cell-pointer registry.
Definition: CellPointers.h:187