2 * \file InsetMathBoldSymbol.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "InsetMathBoldSymbol.h"
15 #include "MathStream.h"
17 #include "LaTeXFeatures.h"
24 InsetMathBoldSymbol::InsetMathBoldSymbol()
29 Inset * InsetMathBoldSymbol::clone() const
31 return new InsetMathBoldSymbol(*this);
35 void InsetMathBoldSymbol::metrics(MetricsInfo & mi, Dimension & dim) const
37 //FontSetChanger dummy(mi.base, "mathbf");
38 cell(0).metrics(mi, dim);
40 ++dim.wid; // for 'double stroke'
44 void InsetMathBoldSymbol::draw(PainterInfo & pi, int x, int y) const
46 //FontSetChanger dummy(pi.base, "mathbf");
47 cell(0).draw(pi, x + 1, y);
48 cell(0).draw(pi, x + 2, y);
49 drawMarkers(pi, x, y);
53 void InsetMathBoldSymbol::metricsT(TextMetricsInfo const & mi, Dimension & /*dim*/) const
57 cell(0).metricsT(mi, dim);
61 void InsetMathBoldSymbol::drawT(TextPainter & pain, int x, int y) const
63 cell(0).drawT(pain, x, y);
67 void InsetMathBoldSymbol::validate(LaTeXFeatures & features) const
69 InsetMathNest::validate(features);
70 features.require("amssymb");
74 void InsetMathBoldSymbol::write(WriteStream & os) const
76 os << "\\boldsymbol{" << cell(0) << "}";
80 void InsetMathBoldSymbol::infoize(odocstream & os) const