]> git.lyx.org Git - lyx.git/blob - src/mathed/math_xarrowinset.h
small up/down tweaking
[lyx.git] / src / mathed / math_xarrowinset.h
1 // -*- C++ -*-
2 #ifndef MATH_XARROWINSET_H
3 #define MATH_XARROWINSET_H
4
5 #include "math_fracbase.h"
6 #include "LString.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /** Wide arrows like \xrightarrow
13  *  \author André Pönitz
14  *
15  * Full author contact details are available in file CREDITS
16  */
17
18 class MathXArrowInset : public MathFracbaseInset {
19 public:
20         ///
21         explicit MathXArrowInset(string const & name);
22         ///
23         MathInset * clone() const;
24         ///
25         void draw(MathPainterInfo & pi, int x, int y) const;
26         ///
27         void write(WriteStream & os) const;
28         ///
29         void metrics(MathMetricsInfo & mi) const;
30         ///
31         void normalize(NormalStream & os) const;
32
33 private:
34         ///
35         bool upper() const;
36         ///
37         string const name_;
38 };
39 #endif