]> git.lyx.org Git - lyx.git/blob - src/mathed/math_diminset.C
some more changes
[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::dimensions(Dimension & dim) const
7 {
8         dim = dim_;
9 }
10
11
12 void MathDimInset::metricsT(TextMetricsInfo const &) const
13 {
14         std::ostringstream os;
15         os << *this;
16         dim_.w = int(os.str().size());
17         dim_.a = 1;
18         dim_.d = 0;
19 }
20
21
22 void MathDimInset::drawT(TextPainter & pain, int x, int y) const
23 {
24         std::ostringstream os;
25         os << *this;
26         pain.draw(x, y, os.str().c_str());
27 }