Radical Pie Equation Editor
DOCUMENTATION

Clipboard Formats

This page describes the operating system clipboard formats used by Radical Pie. This information is provided for developers, and it is not necessary to know how any of this works in order to use Radical Pie.

Native Format

When the user selects the Cut command or Copy command from the Edit menu, Radical Pie generates the native file format for the current selection and saves it to the clipboard. This format is plain text using the MIME type "application/radical-pie+openddl". This type should be passed to the Win32 RegisterClipboardFormat function in order to obtain a clipboard format identifier that can be used to retrieve the native format.

Vector Graphics

Radical Pie also generates vector graphics for the current selection in two different formats, SVG and EMF. The SVG format is stored on the clipboard as plain text using the MIME type "image/svg+xml". This type should be passed to the Win32 RegisterClipboardFormat function in order to obtain a clipboard format identifier that can be used to retrieve the SVG format. The EMF format is stored on the clipboard using the CF_ENHMETAFILE format built into the operating system. These formats can be pasted in other applications that generally support vector graphics.

In the SVG format, the distance by which the graphics should shifted downward in order to properly align the equation with the baseline of surrounding text can be determined by examining the viewBox attribute of the svg element. The positive downward shift distance, measured in points, is given by the sum of the <min-y> and <height> values specified for the view box.

TEX Code

In addition to the native format and vector graphics formats, Radical Pie generates TEX code corresponding to the current selection and stores it on the clipboard with the CF_TEXT format. This code can be pasted as plain text in other applications.

See Also