wxMaxima
Loading...
Searching...
No Matches
Data Fields
ClipboardContents Struct Reference

Everything one copy operation puts on the clipboard. More...

#include <ClipboardContents.h>

Collaboration diagram for ClipboardContents:
[legend]

Data Fields

wxString wxm
 The selection as .wxm batch code.
 
wxString text
 The selection as plain text.
 
LazyValue< std::string > xml
 Copied cells as a self-contained XML document, UTF-8 encoded.
 
LazyValue< std::string > mathML
 A MathML document, UTF-8 encoded.
 
LazyValue< std::string > rtf
 An RTF document with OMML maths, UTF-8 encoded.
 
LazyValue< std::string > svg
 A SVG image.
 
LazyValue< wxBitmap > bitmap
 A bitmap image. Invalid if it could not be drawn.
 

Detailed Description

Everything one copy operation puts on the clipboard.

The text and .wxm flavours are cheap, needed by nearly every paste and needed again by Worksheet::RenderClipboardContents(), so they are computed right away. Every other format is a LazyValue; one that is not offered stays empty.

The data objects share ownership of this, so it lives exactly as long as some data object built from it is still on the clipboard: a std::weak_ptr to it tells whether that is the case.


The documentation for this struct was generated from the following file: