]> 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 da7eee917d5d93078a2ab67a5125bdbc69419a01..89240db8cbfa722315481f3596ef54049152d104 100644 (file)
@@ -2,7 +2,8 @@
 #ifndef MATH_DELIMINSET_H
 #define MATH_DELIMINSET_H
 
-#include "math_parinset.h"
+#include "math_nestinset.h"
+#include "LString.h"
 
 #ifdef __GNUG__
 #pragma interface
 /** A delimiter
     \author Alejandro Aguilar Sierra
 */
-class MathDelimInset : public MathParInset {
+
+class MathDelimInset : public MathNestInset {
 public:
        ///
-       MathDelimInset(int, int, short st = LM_ST_TEXT);
+       MathDelimInset(string const &, string const &);
        ///
-       MathedInset * Clone();
+       MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       void draw(Painter &, int x, int y) const;
        ///
-       void Write(std::ostream &, bool fragile);
+       void write(MathWriteInfo & os) const;
        ///
-       void Metrics();
+       void metrics(MathMetricsInfo const & st) const;
 private:
        ///
-       int left_;
+       int dw() const;
        ///
-       int right_;
+       string left_;
        ///
-       int dw_;
+       string right_;
        ///
-       int dh_;
+       static string latexName(string const & name);
 };
 #endif