41 explicit Svgout(
const Configuration *
const *configuration,
const wxString &filename = {},
double scale = 1.0);
43 const wxString &filename = {},
double scale = 1.0);
51 wxSize
Render(std::unique_ptr<Cell> &&tree);
53 wxSize GetSize()
const {
return m_size; }
54 bool IsOk()
const {
return m_isOk; }
66 std::unique_ptr<Cell> m_tree;
68 wxSVGFileDC m_recalculationDc;
69 wxSize m_size = wxDefaultSize;
81 static const wxDataFormat m_svgFormat;
This is the header for common code used by various file output modules that render cells to files.
The configuration storage for the current worksheet.
Definition: Configuration.h:101
A collection of common code used in rendering the cells to a non-default output, e....
Definition: OutCommon.h:43
bool ToClipboard()
Copies the svg representation of the list of cells that was passed to SetData()
Definition: SVGout.cpp:124
wxSize Render(std::unique_ptr< Cell > &&tree)
Renders tree as svg.
Definition: SVGout.cpp:66
std::unique_ptr< wxCustomDataObject > GetDataObject()
Returns the svg representation in a format that can be placed on the clipBoard.
Definition: SVGout.cpp:120
static const wxDataFormat & GetDataFormat()
The clipboard format SVG data is offered in.
Definition: SVGout.h:63