]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBig.h
Avoid processing empty lines when reading the symbols file
[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 "InsetMathDim.h"
16
17 #include <string>
18
19
20 namespace lyx {
21
22 /// Inset for \\bigl & Co.
23 class InsetMathBig : public InsetMathDim {
24 public:
25         ///
26         InsetMathBig(docstring const & name, docstring const & delim);
27         ///
28         docstring name() const;
29         ///
30         void metrics(MetricsInfo & mi, Dimension & dim) const;
31         ///
32         void draw(PainterInfo & pi, int x, int y) const;
33         ///
34         void write(WriteStream & os) const;
35         ///
36         void normalize(NormalStream & os) const;
37         ///
38         void infoize2(odocstream & os) const;
39         ///
40         static bool isBigInsetDelim(docstring const &);
41
42 private:
43         virtual std::auto_ptr<InsetBase> doClone() const;
44         ///
45         size_type size() const;
46         ///
47         double increase() const;
48
49         /// \\bigl or what?
50         docstring const name_;
51         /// ( or [ or \\Vert...
52         docstring const delim_;
53 };
54
55
56 } // namespace lyx
57
58 #endif