]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathPar.h
g-brief loads babel internally. So don't load it ourselves.
[lyx.git] / src / mathed / InsetMathPar.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathPar.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_PARINSET_H
13 #define MATH_PARINSET_H
14
15
16 #include "InsetMathHull.h"
17
18
19 namespace lyx {
20
21 class InsetMathPar : public InsetMathHull {
22 public:
23         ///
24         explicit InsetMathPar(Buffer * buf) : InsetMathHull(buf) {}
25         ///
26         InsetMathPar(Buffer * buf, MathData const & ar);
27         ///
28         mode_type currentMode() const override { return TEXT_MODE; }
29         ///
30         void metrics(MetricsInfo & mi, Dimension & dim) const override;
31         ///
32         void draw(PainterInfo &, int x, int y) const override;
33         ///
34         void infoize(odocstream & os) const override;
35         ///
36         void write(TeXMathStream & os) const override;
37         ///
38         InsetCode lyxCode() const override { return MATH_PAR_CODE; }
39
40 private:
41         ///
42         Inset * clone() const override;
43 };
44
45
46
47 } // namespace lyx
48 #endif