]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.h
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_deliminset.h
index 540290e3017e6cbd431ac6813e679038610de204..23cf45e376b2d985afaece5e3d6999cadac89544 100644 (file)
@@ -2,31 +2,37 @@
 #ifndef MATH_DELIMINSET_H
 #define MATH_DELIMINSET_H
 
-#include "math_parinset.h"
+#include "math_nestinset.h"
+#include "LString.h"
+
+#ifdef __GNUG__
+#pragma interface
+#endif
 
 /** 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(std::ostream &, bool fragile) const;
        ///
-       void Metrics();
+       void metrics(MathStyles 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