]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_dotsinset.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_dotsinset.C
index 40249eeff18bae8df1f36266da0da3811ff3640c..2615aed1df585f187a82160e35373763ad2c5006 100644 (file)
@@ -1,12 +1,13 @@
+#include <config.h>
+
 #ifdef __GNUG__
 #pragma implementation
 #endif
 
 #include "math_dotsinset.h"
-#include "mathed/support.h"
-#include "support/LOstream.h"
-
-using std::ostream;
+#include "math_mathmlstream.h"
+#include "math_streamstr.h"
+#include "math_support.h"
 
 
 MathDotsInset::MathDotsInset(string const & name)
@@ -32,10 +33,9 @@ void MathDotsInset::draw(Painter & pain, int x, int y) const
 }
 
 
-void MathDotsInset::metrics(MathMetricsInfo const & st) const
+void MathDotsInset::metrics(MathMetricsInfo const & mi) const
 {
-       size_ = st;
-       mathed_char_dim(LM_TC_VAR, size_, 'M', ascent_, descent_, width_);
+       mathed_char_dim(LM_TC_VAR, mi, 'M', ascent_, descent_, width_);
        switch (name_[0]) {
                case 'l': dh_ = 0; break;
                case 'c': dh_ = ascent_ / 2; break;
@@ -45,13 +45,13 @@ void MathDotsInset::metrics(MathMetricsInfo const & st) const
 } 
 
 
-void MathDotsInset::write(MathWriteInfo & os) const
+void MathDotsInset::write(WriteStream & os) const
 {
        os << '\\' << name_ << ' ';
 }
 
 
-void MathDotsInset::writeNormal(ostream & os) const
+void MathDotsInset::normalize(NormalStream & os) const
 {
        os << "[" << name_ << "] ";
 }