]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diminset.C
small up/down tweaking
[lyx.git] / src / mathed / math_diminset.C
index 23a595639b18af9fd5342c3a90e283c948051efd..2e9e75ef71968ffc25dc8fe158623e62a520174e 100644 (file)
@@ -1,24 +1,32 @@
-#include "math_diminset.h"
-
-
-MathDimInset::MathDimInset()
-       : MathInset(), width_(0), ascent_(0), descent_(0)
-{}
-
+#ifdef __GNUG__
+#pragma implementation
+#endif
 
-int MathDimInset::ascent() const
-{
-       return ascent_;
-}
+#include "math_diminset.h"
+#include "Lsstream.h"
+#include "textpainter.h"
 
 
-int MathDimInset::descent() const
+void MathDimInset::metricsT(TextMetricsInfo const &) const
 {
-       return descent_;
+#ifndef WITH_WARNINGS
+#warning temporarily disabled
+#endif
+/*
+       std::ostringstream os;
+       os << MathAtom(this);
+       dim_.w = int(os.str().size());
+       dim_.a = 1;
+       dim_.d = 0;
+*/
 }
 
 
-int MathDimInset::width() const
+void MathDimInset::drawT(TextPainter &, int, int) const
 {
-       return width_;
+/*
+       std::ostringstream os;
+       os << MathAtom(this);
+       pain.draw(x, y, STRCONV(os.str()));
+*/
 }