A bit more re-organization.
[lyx.git] / src / mathed / InsetMathXYArrow.h
blob75734bb856f7bfedec23c97ae13855b952d138e2
1 // -*- C++ -*-
2 /**
3 * \file InsetMathXYArrow.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_XYARROWINSET_H
13 #define MATH_ARROWINSET_H
15 #include "InsetMathNest.h"
16 #include "MetricsInfo.h"
19 namespace lyx {
22 // for the \ar stuff in \xymatrix
24 class InsetMathXYMatrix;
26 class InsetMathXYArrow : public InsetMathNest {
27 public:
28 ///
29 InsetMathXYArrow();
30 ///
31 virtual Inset * clone() const;
32 ///
33 bool metrics(MetricsInfo & mi) const;
34 ///
35 void draw(PainterInfo & pi, int x, int y) const;
36 ///
37 InsetMathXYArrow * asXYArrowInset() { return this; }
39 ///
40 void normalize();
41 ///
42 void write(WriteStream & os) const;
43 ///
44 void normalize(NormalStream &) const;
45 ///
46 InsetMathXYMatrix const * targetMatrix() const;
47 ///
48 MathData const & targetCell() const;
49 ///
50 MathData const & sourceCell() const;
51 ///
52 InsetCode lyxCode() const { return MATH_XYARROW_CODE; }
54 ///
55 bool up_;
56 ///
57 mutable MetricsInfo mi_;
58 ///
59 mutable Font font_;
60 ///
61 mutable InsetMathXYMatrix const * target_;
66 } // namespace lyx
67 #endif