#include "MathData.h"
#include "MathStream.h"
#include "MathSupport.h"
-#include "LColor.h"
+#include "Color.h"
#include "frontends/FontMetrics.h"
#include "frontends/Painter.h"
{}
-InsetMathBrace::InsetMathBrace(MathArray const & ar)
+InsetMathBrace::InsetMathBrace(MathData const & ar)
: InsetMathNest(1)
{
cell(0) = ar;
}
-auto_ptr<InsetBase> InsetMathBrace::doClone() const
+auto_ptr<Inset> InsetMathBrace::doClone() const
{
- return auto_ptr<InsetBase>(new InsetMathBrace(*this));
+ return auto_ptr<Inset>(new InsetMathBrace(*this));
}
void InsetMathBrace::draw(PainterInfo & pi, int x, int y) const
{
- LyXFont font = pi.base.font;
- font.setColor(LColor::latex);
+ Font font = pi.base.font;
+ font.setColor(Color::latex);
Dimension t = theFontMetrics(font).dimension('{');
pi.pain.text(x, y, '{', font);
cell(0).draw(pi, x + t.wid, y);