]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diminset.C
Fix reading of math macros
[lyx.git] / src / mathed / math_diminset.C
index 727b5b01d7e5d9ab14e629d9b97171e3a134e4b7..2e9e75ef71968ffc25dc8fe158623e62a520174e 100644 (file)
@@ -1,22 +1,32 @@
+#ifdef __GNUG__
+#pragma implementation
+#endif
 
 #include "math_diminset.h"
 #include "Lsstream.h"
 #include "textpainter.h"
 
 
-void MathDimInset::metrics(TextMetricsInfo const &) const
+void MathDimInset::metricsT(TextMetricsInfo const &) const
 {
+#ifndef WITH_WARNINGS
+#warning temporarily disabled
+#endif
+/*
        std::ostringstream os;
-       os << *this;
-       width_   = int(os.str().size());
-       ascent_  =      1;
-       descent_ = 0;
+       os << MathAtom(this);
+       dim_.w = int(os.str().size());
+       dim_.a = 1;
+       dim_.d = 0;
+*/
 }
 
 
-void MathDimInset::draw(TextPainter & pain, int x, int y) const
+void MathDimInset::drawT(TextPainter &, int, int) const
 {
+/*
        std::ostringstream os;
-       os << *this;
-       pain.draw(x, y, os.str().c_str());
+       os << MathAtom(this);
+       pain.draw(x, y, STRCONV(os.str()));
+*/
 }