]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathStackrel.h
Fix #10778 (issue with CJK and language nesting)
[lyx.git] / src / mathed / InsetMathStackrel.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathStackrel.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_STACKRELINSET_H
13 #define MATH_STACKRELINSET_H
14
15 #include "InsetMathFrac.h"
16
17
18 namespace lyx {
19
20 class InsetMathStackrel : public InsetMathFracBase {
21 public:
22         ///
23         InsetMathStackrel(Buffer * buf, bool sub);
24         ///
25         bool idxUpDown(Cursor &, bool up) const;
26         ///
27         void metrics(MetricsInfo & mi, Dimension & dim) const;
28         ///
29         void draw(PainterInfo & pi, int x, int y) const;
30         ///
31         void write(WriteStream & os) const;
32         ///
33         void normalize(NormalStream &) const;
34         ///
35         void mathmlize(MathStream &) const;
36         ///
37         void htmlize(HtmlStream &) const;
38         /// 
39         void validate(LaTeXFeatures &) const;
40         ///
41         InsetCode lyxCode() const { return MATH_STACKREL_CODE; }
42
43 private:
44         virtual Inset * clone() const;
45 };
46
47 } // namespace lyx
48 #endif