#include "InsetMathBrace.h"
#include "MathData.h"
-#include "MathExtern.h"
#include "MathStream.h"
#include "MathSupport.h"
#include "MetricsInfo.h"
#include "frontends/Painter.h"
#include <ostream>
+#include <algorithm>
using namespace std;
{
Dimension dim0;
cell(0).metrics(mi, dim0);
- Dimension t = theFontMetrics(mi.base.font).dimension('{');
+ FontInfo font = mi.base.font;
+ augmentFont(font, "mathnormal");
+ Dimension t = theFontMetrics(font).dimension('{');
dim.asc = max(dim0.asc, t.asc);
dim.des = max(dim0.des, t.des);
dim.wid = dim0.width() + 2 * t.wid;
void InsetMathBrace::draw(PainterInfo & pi, int x, int y) const
{
FontInfo font = pi.base.font;
+ augmentFont(font, "mathnormal");
font.setShape(UP_SHAPE);
font.setColor(Color_latex);
Dimension t = theFontMetrics(font).dimension('{');
}
-docstring InsetMathBrace::mathmlize(MathStream & os) const
+void InsetMathBrace::mathmlize(MathStream & os) const
+{
+ os << MTag("mrow") << cell(0) << ETag("mrow");
+}
+
+
+void InsetMathBrace::htmlize(HtmlStream & os) const
{
- os << MTag("mrow");
- docstring const rv = lyx::mathmlize(cell(0), os);
- os << ETag("mrow");
- return rv;
+ os << cell(0);
}