]> git.lyx.org Git - lyx.git/blob - src/mathed/math_deliminset.h
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_deliminset.h
1 // -*- C++ -*-
2 #ifndef MATH_DELIMINSET_H
3 #define MATH_DELIMINSET_H
4
5 #include "math_nestinset.h"
6 #include "LString.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /** A delimiter
13     \author Alejandro Aguilar Sierra
14 */
15
16 class MathDelimInset : public MathNestInset {
17 public:
18         ///
19         MathDelimInset(string const & left, string const & right);
20         ///
21         MathInset * clone() const;
22         ///
23         MathDelimInset * asDelimInset() { return this; }
24         ///
25         MathDelimInset const * asDelimInset() const { return this; }
26         /// is it (...)?
27         bool isParanthesis() const;
28         /// is it [...]?
29         bool isBrackets() const;
30         /// is it |...|?
31         bool isAbs() const;
32         ///
33         void metrics(MathMetricsInfo const & st) const;
34         ///
35         void draw(Painter &, int x, int y) const;
36
37         ///
38         void write(WriteStream & os) const;
39         /// write normalized content
40         void normalize(NormalStream &) const;
41         ///
42         void maplize(MapleStream &) const;
43         ///
44         void mathmlize(MathMLStream &) const;
45         ///
46         void octavize(OctaveStream &) const;
47         ///
48         string left_;
49         ///
50         string right_;
51 private:
52         ///
53         int dw() const;
54 };
55 #endif