wxMaxima
Loading...
Searching...
No Matches
Public Member Functions
ClipboardSnapshot Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ClipboardSnapshot()

ClipboardSnapshot::ClipboardSnapshot ( Configuration *  configuration,
const Cell *  cells 
)
Parameters
configurationThe configuration the copied cells are drawn with. It must outlive the snapshot – see Worksheet::RenderClipboardContents().
cellsThe list of cells to copy. Copied, not taken over.

The documentation for this class was generated from the following files: