[Libreoffice-commits] core.git: starmath/source
Frédéric Wang
fred.wang at free.fr
Tue Jul 2 02:04:36 PDT 2013
starmath/source/mathmlexport.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit e58d721709bd4e255f70cc824cd484cd1a1ec32d
Author: Frédéric Wang <fred.wang at free.fr>
Date: Sun Jun 30 11:08:15 2013 +0200
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 at free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 34c6050..3fc23b7 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);
More information about the Libreoffice-commits
mailing list