]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBig.h
This commit cleans up everything related to singleton. The other important change...
[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 /// Inset for \\bigl & Co.
20 class InsetMathBig : public InsetMathDim {
21 public:
22         ///
23         InsetMathBig(std::string const & name, std::string const & delim);
24         ///
25         std::string name() const;
26         ///
27         void metrics(MetricsInfo & mi, Dimension & dim) const;
28         ///
29         void draw(PainterInfo & pi, int x, int y) const;
30         ///
31         void write(WriteStream & os) const;
32         ///
33         void normalize(NormalStream & os) const;
34         ///
35         void infoize2(std::ostream & os) const;
36         ///
37         static bool isBigInsetDelim(std::string const &);
38
39 private:
40         virtual std::auto_ptr<InsetBase> doClone() const;
41         ///
42         size_type size() const;
43         ///
44         double increase() const;
45
46         /// \\bigl or what?
47         std::string const name_;
48         /// ( or [ or \\Vert...
49         std::string const delim_;
50 };
51
52 #endif