]> git.lyx.org Git - lyx.git/blob - src/mathed/math_deliminset.h
some support for matrix operations with maple ('M-x math-extern maple evalm')
[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 &, string const &);
20         ///
21         MathInset * clone() const;
22         ///
23         MathDelimInset * asDelimInset() { return this; }
24         ///
25         MathDelimInset const * asDelimInset() const { return this; }
26         ///
27         void metrics(MathMetricsInfo const & st) const;
28         ///
29         void draw(Painter &, int x, int y) const;
30
31         ///
32         void write(WriteStream & os) const;
33         /// write normalized content
34         void normalize(NormalStream &) const;
35         ///
36         void maplize(MapleStream &) const;
37         ///
38         void mathmlize(MathMLStream &) const;
39         ///
40         void octavize(OctaveStream &) const;
41         ///
42         string left_;
43         ///
44         string right_;
45 private:
46         ///
47         int dw() const;
48         ///
49         static string latexName(string const & name);
50 };
51 #endif