]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSplit.h
rename InsetBase to Inset
[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(docstring const & name, char valign = 'c');
25         ///
26         void draw(PainterInfo & pi, int x, int y) const;
27         ///
28         bool getStatus(Cursor & cur, FuncRequest const & cmd,
29                 FuncStatus & flag) const;
30
31         void write(WriteStream & os) const;
32         ///
33         void infoize(odocstream & os) const;
34         ///
35         void validate(LaTeXFeatures & features) const;
36         ///
37         int defaultColSpace(col_type) { return 0; }
38         ///
39         char defaultColAlign(col_type);
40 private:
41         ///
42         virtual std::auto_ptr<Inset> doClone() const;
43         ///
44         docstring name_;
45 };
46
47
48 } // namespace lyx
49 #endif