From e58d721709bd4e255f70cc824cd484cd1a1ec32d Mon Sep 17 00:00:00 2001 From: Frédéric Wang Date: Sun, 30 Jun 2013 11:08:15 +0200 Subject: fdo#66281 - make underbrace/overbrace stretchy in MathML export Change-Id: I63608cc4b56f6baa4101020c12c1384a828ce0d2 Reviewed-on: https://gerrit.libreoffice.org/4629 Reviewed-by: Bosdonnat Cedric Tested-by: Bosdonnat Cedric --- starmath/source/mathmlexport.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'starmath/source') diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 34c6050a1bfd..3fc23b73188f 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -1469,10 +1469,9 @@ void SmXMLExport::ExportFont(const SmNode *pNode, int nLevel) void SmXMLExport::ExportVerticalBrace(const SmNode *pNode, int nLevel) { - //Place the overbrace value OVER a vertical brace and then place that - //expression OVER the overbrace value, If someone can find a - //dedicated term in MathML to handle this overbrace/underbrace concept - //let me know. C. + // Place the overbrace value OVER a horizontal brace and then place that + // expression OVER the overbrace value. Similarly for the underbrace + // construction. XMLTokenEnum which; switch (pNode->GetToken().eType) @@ -1494,6 +1493,7 @@ void SmXMLExport::ExportVerticalBrace(const SmNode *pNode, int nLevel) // also XML_ACCENT is illegal with XML_MUNDER. Thus no XML_ACCENT attribut here! SvXMLElementExport aOver2(*this, XML_NAMESPACE_MATH,which, sal_True, sal_True); ExportNodes(pNode->GetSubNode(0), nLevel); + AddAttribute(XML_NAMESPACE_MATH, XML_STRETCHY, XML_TRUE); ExportNodes(pNode->GetSubNode(1), nLevel); } ExportNodes(pNode->GetSubNode(2), nLevel); -- cgit