Use MathML on the clipboard for formulas in HTML

This speeds up the copying, and although not many applications understand
MathML currently (MS word is supposed to understand it), their number should
go up in the future.
This commit is contained in:
Georg Baum 2013-04-21 20:45:56 +02:00
parent 719a13d7a4
commit ed2f6a8599

View File

@ -494,6 +494,11 @@ void putClipboard(ParagraphList const & paragraphs,
ErrorList el;
pasteSelectionHelper(dit, paragraphs, docclass, el);
// We don't want to produce images that are not used. Therefore,
// output formulas as MathML. Even if this is not understood by all
// applications, the number that can parse it should go up in the future.
buffer->params().html_math_output = BufferParams::MathML;
// The Buffer is being used to export. This is necessary so that the
// updateMacros call will record the needed information.
MarkAsExporting mex(buffer);