]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_braceinset.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_braceinset.C
index 93b37336d6c3ed3ecb0c881a911564a60407881a..65970370c4771051979066236077e44977b730ec 100644 (file)
@@ -6,10 +6,8 @@
 
 #include "math_braceinset.h"
 #include "math_parser.h"
-#include "mathed/support.h"
-#include "support/LOstream.h"
-
-using std::max;
+#include "math_support.h"
+#include "math_mathmlstream.h"
 
 
 MathBraceInset::MathBraceInset()
@@ -23,20 +21,6 @@ MathInset * MathBraceInset::clone() const
 }
 
 
-void MathBraceInset::write(MathWriteInfo & os) const
-{
-       os << '{' << cell(0) << '}';
-}
-
-
-void MathBraceInset::writeNormal(std::ostream & os) const
-{
-       os << "[block ";
-       cell(0).writeNormal(os);
-       os << "]";
-}
-
-
 void MathBraceInset::metrics(MathMetricsInfo const & mi) const
 {
        xcell(0).metrics(mi);
@@ -54,3 +38,17 @@ void MathBraceInset::draw(Painter & pain, int x, int y) const
        xcell(0).draw(pain, x + wid_, y);
        drawChar(pain, LM_TC_TEX, mi_, x + width_ - wid_, y, '}');
 }
+
+
+void MathBraceInset::write(WriteStream & os) const
+{
+       os << '{' << cell(0) << '}';
+}
+
+
+void MathBraceInset::normalize(NormalStream & os) const
+{
+       os << "[block " << cell(0) << ']';
+}
+
+