#include "MathData.h"
#include "MathStream.h"
#include "Cursor.h"
-#include "Color.h"
#include "frontends/Painter.h"
+using namespace std;
namespace lyx {
void InsetMathRoot::metrics(MetricsInfo & mi, Dimension & dim) const
{
- using std::max;
InsetMathNest::metrics(mi);
Dimension const & dim0 = cell(0).dimension(*mi.base.bv);
Dimension const & dim1 = cell(1).dimension(*mi.base.bv);
dim.des = max(dim0.descent() - 5, dim1.descent()) + 2;
dim.wid = dim0.width() + dim1.width() + 10;
metricsMarkers(dim);
- // Cache the inset dimension.
- setDimCache(mi, dim);
}
int xp[4];
int yp[4];
pi.pain.line(x + dim.width(), y - a + 1,
- x + w + 4, y - a + 1, Color::math);
+ x + w + 4, y - a + 1, Color_math);
xp[0] = x + w + 4; yp[0] = y - a + 1;
xp[1] = x + w; yp[1] = y + d;
xp[2] = x + w - 2; yp[2] = y + (d - a)/2 + 2;
xp[3] = x + w - 5; yp[3] = y + (d - a)/2 + 4;
- pi.pain.lines(xp, yp, 4, Color::math);
+ pi.pain.lines(xp, yp, 4, Color_math);
drawMarkers(pi, x, y);
}