]> git.lyx.org Git - lyx.git/blob - src/mathed/math_tabularinset.h
Fix event loop to no longer eat CPU
[lyx.git] / src / mathed / math_tabularinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_tabularinset.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_TABULARINSET_H
13 #define MATH_TABULARINSET_H
14
15 #include "math_gridinset.h"
16
17
18 /// Inset for things like \begin{tabular}...\end{tabular}
19 class MathTabularInset : public MathGridInset {
20 public:
21         ///
22         MathTabularInset(std::string const &, int m, int n);
23         ///
24         MathTabularInset(std::string const &, int m, int n,
25                 char valign, std::string const & halign);
26         ///
27         MathTabularInset(std::string const &, char valign, std::string const & halign);
28         ///
29         void metrics(MetricsInfo & mi, Dimension & dim) const;
30         ///
31         void draw(PainterInfo & pi, int x, int y) const;
32         ///
33         MathTabularInset * asTabularInset() { return this; }
34         ///
35         MathTabularInset const * asTabularInset() const { return this; }
36
37         ///
38         void write(WriteStream & os) const;
39         ///
40         void infoize(std::ostream & os) const;
41         ///
42         void normalize(NormalStream &) const;
43         ///
44         void maple(MapleStream &) const;
45
46 private:
47         virtual std::auto_ptr<InsetBase> doClone() const;
48         ///
49         std::string name_;
50 };
51
52 #endif