]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathClass.h
Do not apply mathindent to inline math insets
[lyx.git] / src / mathed / InsetMathClass.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathClass.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_CLASSINSET_H
13 #define MATH_CLASSINSET_H
14
15 #include "MathClass.h"
16
17 #include "InsetMathNest.h"
18
19
20 namespace lyx {
21
22
23 /// Support for LaTeX's \\mathxxx class-changing commands
24
25 class InsetMathClass : public InsetMathNest {
26 public:
27         ///
28         InsetMathClass(Buffer * buf, MathClass);
29         ///
30         docstring name() const;
31         ///
32         MathClass mathClass() const { return math_class_; }
33         ///
34         void metrics(MetricsInfo & mi, Dimension & dim) const;
35         ///
36         void draw(PainterInfo & pi, int x, int y) const;
37         ///
38         void infoize(odocstream & os) const;
39         ///
40         InsetCode lyxCode() const { return MATH_CLASS_CODE; }
41
42 private:
43         virtual Inset * clone() const;
44         ///
45         MathClass math_class_;
46 };
47
48
49 } // namespace lyx
50 #endif