]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSplit.cpp
Whitespace.
[lyx.git] / src / mathed / InsetMathSplit.cpp
index 93799d88371a3bdf92dea8e8d576b7bda12d1ff1..7efd406b77ba8d5bc3a2ef9ec1c7d65d1c536177 100644 (file)
@@ -32,8 +32,9 @@ namespace lyx {
 using support::bformat;
 
 
-InsetMathSplit::InsetMathSplit(docstring const & name, char valign)
-       : InsetMathGrid(1, 1, valign, docstring()), name_(name)
+InsetMathSplit::InsetMathSplit(Buffer * buf, docstring const & name,
+       char valign)
+       : InsetMathGrid(buf, 1, 1, valign, docstring()), name_(name)
 {
 }
 
@@ -110,6 +111,20 @@ void InsetMathSplit::infoize(odocstream & os) const
 }
 
 
+void InsetMathSplit::mathmlize(MathStream & ms) const
+{
+       // split, gathered, aligned, alignedat
+       // At the moment, those seem to display just fine without any
+       // special treatment.
+       // FIXME
+       // lgathered and rgathered could use the proper alignment, but
+       // it's not clear how to do that without copying a lot of code.
+       // One idea would be to wrap the table in an <mrow>, and set the
+       // alignment there via CSS.
+       InsetMathGrid::mathmlize(ms);
+}
+
+
 void InsetMathSplit::validate(LaTeXFeatures & features) const
 {
        if (name_ == "split" || name_ == "gathered" || name_ == "aligned" ||