]> git.lyx.org Git - lyx.git/blob - src/mathed/math_xyarrowinset.h
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_xyarrowinset.h
1 // -*- C++ -*-
2 #ifndef MATH_XYARROWINSET_H
3 #define MATH_ARROWINSET_H
4
5 #include "math_nestinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 // for the \ar stuff in \xymatrix
12
13 class MathXYMatrixInset;
14
15 class MathXYArrowInset : public MathNestInset {
16 public:
17         ///
18         MathXYArrowInset();
19         ///
20         MathInset * clone() const;
21         ///
22         void metrics(MathMetricsInfo const & st) const;
23         ///
24         void draw(Painter & pain, int x, int y) const;
25         ///
26         MathXYArrowInset * asXYArrowInset() { return this; }
27
28         ///
29         void normalize();
30         ///
31         void write(WriteStream & os) const;
32         ///
33         void normalize(NormalStream &) const;
34
35 public:
36         ///
37         MathXYMatrixInset const * targetMatrix() const;
38         ///
39         MathXArray const & targetCell() const;
40         ///
41         MathXArray const & sourceCell() const;
42
43         ///
44         bool up_;
45         ///
46         mutable MathMetricsInfo mi_;
47         ///
48         mutable LyXFont font_;
49         ///
50         mutable MathXYMatrixInset const * target_;
51 };
52
53 #endif