]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathOverset.h
Fix bug #10295.
[lyx.git] / src / mathed / InsetMathOverset.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathOverset.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_OVERSETINSET_H
13 #define MATH_OVERSETINSET_H
14
15
16 #include "InsetMathFrac.h"
17
18
19 namespace lyx {
20
21 /// Inset for overset
22 class InsetMathOverset : public InsetMathFracBase {
23 public:
24         ///
25         InsetMathOverset(Buffer * buf) : InsetMathFracBase(buf) {}
26         ///
27         void metrics(MetricsInfo & mi, Dimension & dim) const;
28         ///
29         void draw(PainterInfo & pi, int x, int y) const;
30         ///
31         bool idxFirst(Cursor &) const;
32         ///
33         bool idxLast(Cursor &) const;
34         ///
35         void write(WriteStream & os) const;
36         ///
37         void normalize(NormalStream &) const;
38         ///
39         void mathmlize(MathStream &) const;
40         ///
41         void htmlize(HtmlStream &) const;
42         ///
43         void validate(LaTeXFeatures & features) const;
44         ///
45         InsetCode lyxCode() const { return MATH_OVERSET_CODE; }
46
47 private:
48         virtual Inset * clone() const;
49 };
50
51
52
53 } // namespace lyx
54 #endif