]> git.lyx.org Git - lyx.git/blob - src/mathed/math_splitinset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_splitinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_splitinset.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_SPLITINSET_H
13 #define MATH_SPLITINSET_H
14
15 #include "math_gridinset.h"
16
17
18 class MathSplitInset : public MathGridInset {
19 public:
20         ///
21         explicit MathSplitInset(std::string const & name);
22
23         ///
24         void draw(PainterInfo & pi, int x, int y) const;
25
26         ///
27         bool getStatus(LCursor & cur, FuncRequest const & cmd,
28                 FuncStatus & flag) const;
29
30         void write(WriteStream & os) const;
31         ///
32         void infoize(std::ostream & os) const;
33         ///
34         int defaultColSpace(col_type) { return 0; }
35         ///
36         char defaultColAlign(col_type);
37 private:
38         virtual std::auto_ptr<InsetBase> doClone() const;
39         ///
40         std::string name_;
41 };
42
43 #endif