]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBoldSymbol.h
Remove profiling.py
[lyx.git] / src / mathed / InsetMathBoldSymbol.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathBoldSymbol.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_BOLDSYMBOLINSET_H
13 #define MATH_BOLDSYMBOLINSET_H
14
15 #include "InsetMathNest.h"
16
17
18 namespace lyx {
19
20 /// Inset for AMSTeX's \boldsymbol
21 class InsetMathBoldSymbol : public InsetMathNest {
22 public:
23         enum Kind {
24                 AMS_BOLD,
25                 BM_BOLD,
26                 BM_HEAVY
27         };
28         ///
29         InsetMathBoldSymbol(Buffer * buf, Kind kind = AMS_BOLD);
30         ///
31         docstring name() const override;
32         ///
33         void metrics(MetricsInfo & mi, Dimension & dim) const override;
34         ///
35         void draw(PainterInfo & pi, int x, int y) const override;
36         ///
37         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
38         ///
39         void drawT(TextPainter & pi, int x, int y) const override;
40         ///
41         void validate(LaTeXFeatures & features) const override;
42         ///
43         void write(TeXMathStream & os) const override;
44         ///
45         void mathmlize(MathMLStream &) const override;
46         ///
47         void htmlize(HtmlStream &) const override;
48         ///
49         void infoize(odocstream & os) const override;
50         ///
51         InsetCode lyxCode() const override { return MATH_BOLDSYMBOL_CODE; }
52         ///
53         Kind kind_;
54 private:
55         Inset * clone() const override;
56 };
57
58
59 } // namespace lyx
60
61 #endif