]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.h
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_deliminset.h
index cd25fe6f1b94e4d896ecca827d51bb68468352fa..89240db8cbfa722315481f3596ef54049152d104 100644 (file)
@@ -2,7 +2,8 @@
 #ifndef MATH_DELIMINSET_H
 #define MATH_DELIMINSET_H
 
-#include "math_inset.h"
+#include "math_nestinset.h"
+#include "LString.h"
 
 #ifdef __GNUG__
 #pragma interface
 /** A delimiter
     \author Alejandro Aguilar Sierra
 */
-class MathDelimInset : public MathInset {
+
+class MathDelimInset : public MathNestInset {
 public:
        ///
-       MathDelimInset(int, int);
+       MathDelimInset(string const &, string const &);
        ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       void draw(Painter &, int x, int y) const;
        ///
-       void Write(std::ostream &, bool fragile) const;
+       void write(MathWriteInfo & os) const;
        ///
-       void Metrics(MathStyles st, int asc = 0, int des = 0);
+       void metrics(MathMetricsInfo const & st) const;
 private:
+       ///
        int dw() const;
        ///
-       int left_;
+       string left_;
+       ///
+       string right_;
        ///
-       int right_;
+       static string latexName(string const & name);
 };
 #endif