]> git.lyx.org Git - lyx.git/blob - src/mathed/math_xymatrixinset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_xymatrixinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_xymatrixinset.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_XYMATRIX_H
13 #define MATH_XYMATRIX_H
14
15 #include "lyxlength.h"
16 #include "math_gridinset.h"
17
18
19 class MathXYMatrixInset : public MathGridInset {
20 public:
21         ///
22         MathXYMatrixInset();
23         ///
24         void metrics(MetricsInfo &, Dimension &) const;
25         ///
26         MathXYMatrixInset const * asXYMatrixInset() const { return this; }
27         ///
28         virtual int colsep() const;
29         ///
30         virtual int rowsep() const;
31
32         ///
33         void normalize();
34         ///
35         void write(WriteStream & os) const;
36         ///
37         void infoize(std::ostream & os) const;
38         ///
39         void normalize(NormalStream &) const;
40         ///
41         void maple(MapleStream &) const;
42 private:
43         ///
44         virtual std::auto_ptr<InsetBase> doClone() const;
45 };
46
47 #endif