]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBig.h
Get rid of Inset::setPosCache
[lyx.git] / src / mathed / InsetMathBig.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathBig.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_BIGINSET_H
13 #define MATH_BIGINSET_H
14
15 #include "InsetMath.h"
16
17
18 namespace lyx {
19
20 /// Inset for \\bigl & Co.
21 class InsetMathBig : public InsetMath {
22 public:
23         ///
24         InsetMathBig(docstring const & name, docstring const & delim);
25         ///
26         docstring name() const;
27         ///
28         void metrics(MetricsInfo & mi, Dimension & dim) const;
29         ///
30         void draw(PainterInfo & pi, int x, int y) const;
31         ///
32         void write(WriteStream & os) const;
33         ///
34         void normalize(NormalStream & os) const;
35         ///
36         void mathmlize(MathStream &) const;
37         ///
38         void htmlize(HtmlStream &) const;
39         ///
40         void infoize2(odocstream & os) const;
41         ///
42         static bool isBigInsetDelim(docstring const &);
43         ///
44         InsetCode lyxCode() const { return MATH_BIG_CODE; }
45         ///
46         void validate(LaTeXFeatures &) const;
47 private:
48         virtual Inset * clone() const;
49         ///
50         size_type size() const;
51         ///
52         double increase() const;
53
54         /// \\bigl or what?
55         docstring const name_;
56         /// ( or [ or \\Vert...
57         docstring const delim_;
58 };
59
60
61 } // namespace lyx
62
63 #endif