|
wxMaxima
|
A private copy of the cells a copy was made from. More...
#include <ClipboardContents.h>
Public Member Functions | |
| ClipboardSnapshot (Configuration *configuration, const Cell *cells) | |
| const Cell * | GetCells () const |
| The snapshot's cells. Renderers that don't consume their input use this. | |
| std::unique_ptr< Cell > | CopyCells () const |
| A fresh copy of the cells, for renderers that take ownership of theirs. | |
| Configuration *const * | GetConfigurationPointer () const |
| The configuration, in the form BitmapOut, Svgout and Emfout want it. | |
| Configuration * | GetConfiguration () const |
A private copy of the cells a copy was made from.
The renderers run whenever another program pastes, which may be long after the copy. By then the user may have edited, re-evaluated or deleted what was copied, so they work on this copy instead of the worksheet. The copy hangs off a GroupCell of its own for the same reason: Cell::Copy() would otherwise leave every copied cell pointing at the worksheet's GroupCell.
| ClipboardSnapshot::ClipboardSnapshot | ( | Configuration * | configuration, |
| const Cell * | cells | ||
| ) |
| configuration | The configuration the copied cells are drawn with. It must outlive the snapshot – see Worksheet::RenderClipboardContents(). |
| cells | The list of cells to copy. Copied, not taken over. |