X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathBoldSymbol.h;h=4c47245df54955b3b381c7bef1fa0bd9209d2194;hb=d9082639080b9de993742bd352f92e5183058cf5;hp=b9f7e78e5f01fdd1697b5ce6f005b372dd7c3982;hpb=e24bf64c68102691fc76081de9fb57926b482726;p=lyx.git diff --git a/src/mathed/InsetMathBoldSymbol.h b/src/mathed/InsetMathBoldSymbol.h index b9f7e78e5f..4c47245df5 100644 --- a/src/mathed/InsetMathBoldSymbol.h +++ b/src/mathed/InsetMathBoldSymbol.h @@ -4,7 +4,7 @@ * 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. */ @@ -17,28 +17,42 @@ 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; /// - bool metrics(MetricsInfo & mi, Dimension & dim) const; + void validate(LaTeXFeatures & features) const override; /// - void draw(PainterInfo & pi, int x, int y) const; + void write(TeXMathStream & os) const override; /// - void metricsT(TextMetricsInfo const & mi, Dimension & dim) const; + void mathmlize(MathMLStream &) 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(odocstream & os) const; + Kind kind_; private: - virtual std::auto_ptr doClone() const; + Inset * clone() const override; };