A bit more re-organization.
[lyx.git] / src / mathed / InsetMathOverset.h
blobedcdd020e2f727739c76206cfc66977d40ecac34
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.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_OVERSETINSET_H
13 #define MATH_OVERSETINSET_H
16 #include "InsetMathFrac.h"
19 namespace lyx {
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 validate(LaTeXFeatures & features) const;
40 ///
41 InsetCode lyxCode() const { return MATH_OVERSET_CODE; }
43 private:
44 virtual Inset * clone() const;
49 } // namespace lyx
50 #endif