3 * \file InsetMathBoldSymbol.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_BOLDSYMBOLINSET_H
13 #define MATH_BOLDSYMBOLINSET_H
15 #include "InsetMathNest.h"
21 /// Inset for AMSTeX's \boldsymbol
22 class InsetMathBoldSymbol
: public InsetMathNest
{
30 InsetMathBoldSymbol(Buffer
* buf
, Kind kind
= AMS_BOLD
);
32 docstring
name() const;
34 void metrics(MetricsInfo
& mi
, Dimension
& dim
) const;
36 void draw(PainterInfo
& pi
, int x
, int y
) const;
38 void metricsT(TextMetricsInfo
const & mi
, Dimension
& dim
) const;
40 void drawT(TextPainter
& pi
, int x
, int y
) const;
42 void validate(LaTeXFeatures
& features
) const;
44 void write(WriteStream
& os
) const;
46 void infoize(odocstream
& os
) const;
48 InsetCode
lyxCode() const { return MATH_BOLDSYMBOL_CODE
; }
52 virtual Inset
* clone() const;