2 * \file InsetMathBoldSymbol.C
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"
14 #include "MathMLStream.h"
16 #include "LaTeXFeatures.h"
17 #include "support/std_ostream.h"
22 InsetMathBoldSymbol::InsetMathBoldSymbol()
27 auto_ptr<InsetBase> InsetMathBoldSymbol::doClone() const
29 return auto_ptr<InsetBase>(new InsetMathBoldSymbol(*this));
33 void InsetMathBoldSymbol::metrics(MetricsInfo & mi, Dimension & dim) const
35 //FontSetChanger dummy(mi.base, "mathbf");
36 cell(0).metrics(mi, dim);
38 ++dim.wid; // for 'double stroke'
43 void InsetMathBoldSymbol::draw(PainterInfo & pi, int x, int y) const
45 //FontSetChanger dummy(pi.base, "mathbf");
46 cell(0).draw(pi, x + 1, y);
47 cell(0).draw(pi, x + 2, y);
48 drawMarkers(pi, x, y);
52 void InsetMathBoldSymbol::metricsT(TextMetricsInfo const & mi, Dimension & /*dim*/) const
54 cell(0).metricsT(mi, dim_);
58 void InsetMathBoldSymbol::drawT(TextPainter & pain, int x, int y) const
60 cell(0).drawT(pain, x, y);
64 void InsetMathBoldSymbol::validate(LaTeXFeatures & features) const
66 InsetMathNest::validate(features);
67 features.require("amssymb");
71 void InsetMathBoldSymbol::write(WriteStream & os) const
73 os << "\\boldsymbol{" << cell(0) << "}";
77 void InsetMathBoldSymbol::infoize(std::ostream & os) const