]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSplit.h
213bea6bcc15b11f4abeefb68d0f304c43e6844b
[lyx.git] / src / mathed / InsetMathSplit.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathSplit.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 "InsetMathGrid.h"
16
17
18 namespace lyx {
19
20
21 class InsetMathSplit : public InsetMathGrid {
22 public:
23         ///
24         explicit InsetMathSplit(std::string const & name, char valign = 'c');
25
26         ///
27         void draw(PainterInfo & pi, int x, int y) const;
28
29         ///
30         bool getStatus(LCursor & cur, FuncRequest const & cmd,
31                 FuncStatus & flag) const;
32
33         void write(WriteStream & os) const;
34         ///
35         void infoize(std::ostream & os) const;
36         ///
37         void validate(LaTeXFeatures & features) const;
38         ///
39         int defaultColSpace(col_type) { return 0; }
40         ///
41         char defaultColAlign(col_type);
42 private:
43         virtual std::auto_ptr<InsetBase> doClone() const;
44         ///
45         std::string name_;
46 };
47
48
49
50 } // namespace lyx
51 #endif