diff options
author | Frédéric Wang <fred.wang@free.fr> | 2013-06-30 11:08:15 +0200 |
---|---|---|
committer | Bosdonnat Cedric <cedric.bosdonnat@free.fr> | 2013-07-02 09:04:13 +0000 |
commit | e58d721709bd4e255f70cc824cd484cd1a1ec32d (patch) | |
tree | bb0cadc4c09b8a2a2747f875e3d83d2c0ab4807c /starmath | |
parent | 10c6cb238f0ae5d5969ffd0012bf23305ac5894f (diff) |
fdo#66281 - make underbrace/overbrace stretchy in MathML export
Change-Id: I63608cc4b56f6baa4101020c12c1384a828ce0d2
Reviewed-on: https://gerrit.libreoffice.org/4629
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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); |