]> git.lyx.org Git - lyx.git/blob - src/mathed/math_deliminset.h
change output to uses streams instead of strings
[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         /// write normalized content
27         void writeNormal(std::ostream &) const;
28         ///
29         void metrics(MathMetricsInfo const & st) const;
30         ///
31         bool isMatrix() const;
32         ///
33         void octavize(OctaveStream &) const;
34         ///
35         void maplize(MapleStream &) const;
36 private:
37         ///
38         int dw() const;
39         ///
40         string left_;
41         ///
42         string right_;
43         ///
44         static string latexName(string const & name);
45 };
46 #endif