]> git.lyx.org Git - lyx.git/blob - src/mathed/math_diminset.C
oh well
[lyx.git] / src / mathed / math_diminset.C
1 #include "math_diminset.h"
2 #include "Lsstream.h"
3 #include "textpainter.h"
4
5
6 void MathDimInset::metricsT(TextMetricsInfo const &) const
7 {
8         std::ostringstream os;
9         os << *this;
10         width_   = int(os.str().size());
11         ascent_  =      1;
12         descent_ = 0;
13 }
14
15
16 void MathDimInset::drawT(TextPainter & pain, int x, int y) const
17 {
18         std::ostringstream os;
19         os << *this;
20         pain.draw(x, y, os.str().c_str());
21 }