]> git.lyx.org Git - features.git/commitdiff
Use MathML on the clipboard for formulas in HTML
authorGeorg Baum <baum@lyx.org>
Sun, 21 Apr 2013 18:45:56 +0000 (20:45 +0200)
committerGeorg Baum <baum@lyx.org>
Sun, 21 Apr 2013 19:16:41 +0000 (21:16 +0200)
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.

src/CutAndPaste.cpp

index d346361a6de1ff6a64dbc89e3e906a52dc61cd39..0ed82d6d860e24c95de339c200d5aca437212f99 100644 (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);