]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.h
inactive new stuff to re-sync my tree before going on holyday
[lyx.git] / src / mathed / math_deliminset.h
index cd25fe6f1b94e4d896ecca827d51bb68468352fa..c96ffa5924cb30ce63916d5919271b66c7b54391 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 & left, string const & right);
        ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int, int);
+       MathDelimInset * asDelimInset() { return this; }
        ///
-       void Write(std::ostream &, bool fragile) const;
+       MathDelimInset const * asDelimInset() const { return this; }
+       /// is it (...)?
+       bool isParanthesis() const;
+       /// is it [...]?
+       bool isBrackets() const;
+       /// is it |...|?
+       bool isAbs() const;
        ///
-       void Metrics(MathStyles st, int asc = 0, int des = 0);
-private:
-       int dw() const;
+       void metrics(MathMetricsInfo const & st) const;
+       ///
+       void draw(Painter &, int x, int y) const;
+
+       ///
+       void write(WriteStream & os) const;
+       /// write normalized content
+       void normalize(NormalStream &) const;
        ///
-       int left_;
+       void maplize(MapleStream &) const;
        ///
-       int right_;
+       void mathmlize(MathMLStream &) const;
+       ///
+       void octavize(OctaveStream &) const;
+       ///
+       string left_;
+       ///
+       string right_;
+private:
+       ///
+       int dw() const;
 };
 #endif