]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathOverset.h
put \frac style stuff into a single unit. -161477.
[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         void metrics(MetricsInfo & mi, Dimension & dim) const;
26         ///
27         void draw(PainterInfo & pi, int x, int y) const;
28         ///
29         bool idxFirst(Cursor &) const;
30         ///
31         bool idxLast(Cursor &) const;
32         ///
33         void write(WriteStream & os) const;
34         ///
35         void normalize(NormalStream &) const;
36         ///
37         void validate(LaTeXFeatures & features) const;
38 private:
39         virtual Inset * clone() const;
40 };
41
42
43
44 } // namespace lyx
45 #endif