]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_binaryopinset.C
updates to latexfeatures stuff; allow empty \document_path
[lyx.git] / src / mathed / math_binaryopinset.C
index 4ceb067faadc11cf7cd192514f61cb5c00b7fe52..40fc662fbb0e1eee34a64f998969b5a722a896b6 100644 (file)
@@ -1,3 +1,5 @@
+#include <config.h>
+
 #ifdef __GNUG__
 #pragma implementation
 #endif
@@ -5,7 +7,8 @@
 #include "math_binaryopinset.h"
 #include "Painter.h"
 #include "support/LOstream.h"
-#include "support.h"
+#include "math_support.h"
+#include "math_mathmlstream.h"
 
 
 MathBinaryOpInset::MathBinaryOpInset(char op)
@@ -44,17 +47,13 @@ void MathBinaryOpInset::draw(Painter & pain, int x, int y) const
 }
 
 
-void MathBinaryOpInset::write(MathWriteInfo & os) const
+void MathBinaryOpInset::write(WriteStream & os) const
 {
        os << '{' << cell(0) << op_ << cell(1) << '}';
 }
 
 
-void MathBinaryOpInset::writeNormal(std::ostream & os) const
+void MathBinaryOpInset::normalize(NormalStream & os) const
 {
-       os << "[binop " << op_ << ' ';
-       cell(0).writeNormal(os); 
-       os << " ";
-       cell(1).writeNormal(os); 
-       os << "]";
+       os << "[binop " << op_ << ' ' << cell(0) << ' ' << cell(1) << ']';
 }