]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.h
small up/down tweaking
[lyx.git] / src / mathed / math_deliminset.h
index 712148bb8470bdafb2bdae77da145a022f7a02ba..786c48529c116c3c93d29cd12d14528495dd258f 100644 (file)
@@ -3,31 +3,61 @@
 #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 x, int y) const;
+       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) const;
-private:
-       int dw() const;
+       void metrics(MathMetricsInfo & st) const;
+       ///
+       void draw(MathPainterInfo &, int x, int y) const;
+
+       ///
+       void write(WriteStream & os) const;
+       /// write normalized content
+       void normalize(NormalStream &) const;
+       ///
+       void maplize(MapleStream &) const;
        ///
-       int left_;
+       void maximize(MaximaStream &) const;
        ///
-       int right_;
+       void mathematicize(MathematicaStream &) const;
+       ///
+       void mathmlize(MathMLStream &) const;
+       ///
+       void octavize(OctaveStream &) const;
+       ///
+       string left_;
+       ///
+       string right_;
+private:
+       ///
+       int dw() const;
 };
 #endif