47 explicit BitmapOut(
const Configuration *
const *configuration, std::unique_ptr<Cell> &&tree,
double scale = 1,
long maxSize = -1);
58 bool Render(std::unique_ptr<Cell> &&tree,
long int maxSize = -1);
83 const std::function<std::unique_ptr<Cell>()> &cells,
87 bool IsOk()
const {
return m_isOk; }
93 wxSize
ToFile(
const wxString &file);
98 std::unique_ptr<wxBitmapDataObject> GetDataObject()
const;
104 std::unique_ptr<Cell> m_tree;
110 bool Layout(
long int maxSize = -1);
This is the header for common code used by various file output modules that render cells to files.
Renders portions of the work sheet (including 2D maths) as bitmap.
Definition: BitmapOut.h:36
wxSize ToFile(const wxString &file)
Exports this bitmap to a file.
Definition: BitmapOut.cpp:157
static constexpr long CLIPBOARD_MAX_PIXELS
The largest bitmap, in pixels, that is put on the clipboard.
Definition: BitmapOut.h:69
bool ToClipboard() const
Copies the bitmap representation of the list of cells that was passed to SetData()
Definition: BitmapOut.cpp:199
wxBitmap GetBitmap() const
Returns the bitmap representation of the list of cells that was passed to SetData()
Definition: BitmapOut.h:96
bool Render(std::unique_ptr< Cell > &&tree, long int maxSize=-1)
Renders tree as bitmap.
Definition: BitmapOut.cpp:63
static wxBitmap RenderForClipboard(const Configuration *const *configuration, const std::function< std::unique_ptr< Cell >()> &cells, double scale)
Draws cells as a bitmap for the clipboard.
Definition: BitmapOut.cpp:120
bool IsOk() const
Returns whether the tree rendering succeeded.
Definition: BitmapOut.h:87
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