]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.h
introduce namespace lyx::support
[lyx.git] / src / mathed / math_deliminset.h
index b2336a0ee7e7a38b1f1a7c1ab79ab08fb31ca94d..84a3ac14512f335c30d27bacf0c212aac351f103 100644 (file)
@@ -2,29 +2,59 @@
 #ifndef MATH_DELIMINSET_H
 #define MATH_DELIMINSET_H
 
-#include "math_parinset.h"
+#include "math_nestinset.h"
+#include "LString.h"
 
-/// A delimiter
-class MathDelimInset: public MathParInset {
+
+/** A delimiter
+ *  \author Alejandro Aguilar Sierra
+ *
+ * Full author contact details are available in file CREDITS
+*/
+
+class MathDelimInset : public MathNestInset {
 public:
        ///
-       MathDelimInset(int, int, short st = LM_ST_TEXT);
+       MathDelimInset(string const & left, string const & right);
+       ///
+       MathDelimInset(string const & left, string const & right, MathArray const &);
+       ///
+       InsetBase * clone() const;
+       ///
+       MathDelimInset * asDelimInset() { return this; }
+       ///
+       MathDelimInset const * asDelimInset() const { return this; }
+       /// is it (...)?
+       bool isParanthesis() const;
+       /// is it [...]?
+       bool isBrackets() const;
+       /// is it |...|?
+       bool isAbs() const;
+       ///
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       ///
+       void draw(PainterInfo &, int x, int y) const;
+
+       ///
+       void write(WriteStream & os) const;
+       /// write normalized content
+       void normalize(NormalStream &) const;
        ///
-       MathedInset * Clone();
+       void maple(MapleStream &) const;
        ///
-       void draw(Painter &, int, int);
+       void maxima(MaximaStream &) const;
        ///
-       void Write(std::ostream &, bool fragile);
+       void mathematica(MathematicaStream &) const;
        ///
-       void Metrics();
-protected:
+       void mathmlize(MathMLStream &) const;
        ///
-       int left;
+       void octave(OctaveStream &) const;
        ///
-       int right;
+       string left_;
        ///
-       int dw;
+       string right_;
+private:
        ///
-       int dh;
+       mutable int dw_;
 };
 #endif