]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBoldSymbol.h
Allow using \binom without amsmath and add support for \brace and \brack
[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
21 /// Inset for AMSTeX's \boldsymbol
22 class InsetMathBoldSymbol : public InsetMathNest {
23 public:
24         enum Kind {
25                 BOLD,
26                 HEAVY
27         };
28         ///
29         InsetMathBoldSymbol(Kind kind = BOLD);
30         ///
31         void metrics(MetricsInfo & mi, Dimension & dim) const;
32         ///
33         void draw(PainterInfo & pi, int x, int y) const;
34         ///
35         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
36         ///
37         void drawT(TextPainter & pi, int x, int y) const;
38         ///
39         void validate(LaTeXFeatures & features) const;
40         ///
41         void write(WriteStream & os) const;
42         ///
43         void infoize(odocstream & os) const;
44         ///
45         Kind kind_;
46 private:
47         virtual Inset * clone() const;
48 };
49
50
51 } // namespace lyx
52
53 #endif