]> git.lyx.org Git - lyx.git/blob - src/mathed/dimension.C
remove noload/don't typeset
[lyx.git] / src / mathed / dimension.C
1
2 #include <config.h>
3 #include "dimension.h"
4 #include "math_support.h"
5
6 #include <iostream>
7
8
9 void Dimension::operator+=(Dimension const & dim)
10 {
11         if (a < dim.a)
12                 a = dim.a;
13         if (d < dim.d)
14                 d = dim.d;
15         w += dim.w;
16 }
17
18
19 std::ostream & operator<<(std::ostream & os, Dimension const & dim)
20 {
21         os << " (" << dim.w << 'x' << dim.a << '-' << dim.d << ") ";
22         return os;
23 }
24
25
26 void Dimension::clear(LyXFont const & font)
27 {
28         math_font_max_dim(font, a, d);
29         w = 0;
30 }