]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.h
fix #1073
[lyx.git] / src / mathed / math_deliminset.h
index 30b98208aa613d6939c60276095f13804f13c301..54ec58cab9bc44d3980bc63417b90bd5a950c806 100644 (file)
@@ -3,31 +3,58 @@
 #define MATH_DELIMINSET_H
 
 #include "math_nestinset.h"
+#include "LString.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 /** A delimiter
-    \author Alejandro Aguilar Sierra
+ *  \author Alejandro Aguilar Sierra
+ *
+ * Full author contact details are available in file CREDITS
 */
+
 class MathDelimInset : public MathNestInset {
 public:
        ///
-       MathDelimInset(int, int);
+       MathDelimInset(string const & left, string const & right);
+       ///
+       MathDelimInset(string const & left, string const & right, MathArray const &);
        ///
        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);
-private:
-       int dw() const;
+       void metrics(MetricsInfo & st) const;
+       ///
+       void draw(PainterInfo &, int x, int y) const;
+
+       ///
+       void write(WriteStream & os) const;
+       /// write normalized content
+       void normalize(NormalStream &) const;
        ///
-       int left_;
+       void maple(MapleStream &) const;
        ///
-       int right_;
+       void maxima(MaximaStream &) const;
+       ///
+       void mathematica(MathematicaStream &) const;
+       ///
+       void mathmlize(MathMLStream &) const;
+       ///
+       void octave(OctaveStream &) const;
+       ///
+       string left_;
+       ///
+       string right_;
+private:
+       ///
+       int dw() const;
 };
 #endif