* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
namespace lyx {
-
/// Inset for AMSTeX's \boldsymbol
class InsetMathBoldSymbol : public InsetMathNest {
public:
+ enum Kind {
+ AMS_BOLD,
+ BM_BOLD,
+ BM_HEAVY
+ };
+ ///
+ InsetMathBoldSymbol(Buffer * buf, Kind kind = AMS_BOLD);
+ ///
+ docstring name() const override;
+ ///
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
+ ///
+ void draw(PainterInfo & pi, int x, int y) const override;
+ ///
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- InsetMathBoldSymbol();
+ void drawT(TextPainter & pi, int x, int y) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void write(WriteStream & os) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void mathmlize(MathStream &) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void infoize(odocstream & os) const override;
///
- void write(WriteStream & os) const;
+ InsetCode lyxCode() const override { return MATH_BOLDSYMBOL_CODE; }
///
- void infoize(std::ostream & os) const;
+ Kind kind_;
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const override;
};