]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diminset.C
oh well
[lyx.git] / src / mathed / math_diminset.C
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e9de770737d0324aab5e97d22e6419171f35df76 100644 (file)
@@ -0,0 +1,21 @@
+#include "math_diminset.h"
+#include "Lsstream.h"
+#include "textpainter.h"
+
+
+void MathDimInset::metricsT(TextMetricsInfo const &) const
+{
+       std::ostringstream os;
+       os << *this;
+       width_   = int(os.str().size());
+       ascent_  =      1;
+       descent_ = 0;
+}
+
+
+void MathDimInset::drawT(TextPainter & pain, int x, int y) const
+{
+       std::ostringstream os;
+       os << *this;
+       pain.draw(x, y, os.str().c_str());
+}