]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_specialcharinset.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_specialcharinset.C
index 0c9d76fec825bc45f834c214fa4dff82bbce3220..fe66cfa69b9d6f4e5fd28eccb41f16adbd6ee0c9 100644 (file)
@@ -3,8 +3,8 @@
 #endif
 
 #include "math_specialcharinset.h"
-#include "support/LOstream.h"
-#include "support.h"
+#include "math_mathmlstream.h"
+#include "math_support.h"
 
 
 MathSpecialCharInset::MathSpecialCharInset(char c)
@@ -20,43 +20,41 @@ MathInset * MathSpecialCharInset::clone() const
 
 int MathSpecialCharInset::ascent() const
 {
-       return mathed_char_ascent(LM_TC_CONST, size_, char_);
+       return mathed_char_ascent(LM_TC_CONST, mi_, char_);
 }
 
 
 int MathSpecialCharInset::descent() const
 {
-       return mathed_char_descent(LM_TC_CONST, size_, char_);
+       return mathed_char_descent(LM_TC_CONST, mi_, char_);
 }
 
 
 int MathSpecialCharInset::width() const
 {
-       return mathed_char_width(LM_TC_CONST, size_, char_);
+       return mathed_char_width(LM_TC_CONST, mi_, char_);
 }
 
 
-void MathSpecialCharInset::metrics(MathMetricsInfo const & st) const
+void MathSpecialCharInset::metrics(MathMetricsInfo const & mi) const
 {
-       size_ = st;
+       mi_ = mi;
 }
 
 
 void MathSpecialCharInset::draw(Painter & pain, int x, int y) const
 { 
-       xo(x);
-       yo(y);
-       drawChar(pain, LM_TC_CONST, size_, x, y, char_);
+       drawChar(pain, LM_TC_CONST, mi_, x, y, char_);
 }
 
 
-void MathSpecialCharInset::write(MathWriteInfo & os) const
+void MathSpecialCharInset::write(WriteStream & os) const
 {
        os << "\\" << char_;
 }
 
 
-void MathSpecialCharInset::writeNormal(std::ostream & os) const
+void MathSpecialCharInset::normalize(NormalStream & os) const
 {
        os << "\\" << char_;
 }