]> git.lyx.org Git - lyx.git/blob - src/mathed/math_deliminset.h
use stream-like syntax for LaTeX output
[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         void draw(Painter &, int x, int y) const;
24         ///
25         void write(MathWriteInfo & os) const;
26         ///
27         void metrics(MathMetricsInfo const & st) const;
28 private:
29         ///
30         int dw() const;
31         ///
32         string left_;
33         ///
34         string right_;
35         ///
36         static string latexName(string const & name);
37 };
38 #endif