]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.h
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_deliminset.h
index e5d5d4aa609cb75df20b31aa95e9c3629a0d9843..16ff2f20d362cc9e74ed43b64751a01b324a2675 100644 (file)
@@ -20,28 +20,37 @@ public:
        ///
        MathInset * clone() const;
        ///
-       void draw(Painter &, int x, int y) const;
+       MathDelimInset * asDelimInset() { return this; }
        ///
-       void write(MathWriteInfo & os) const;
-       /// write normalized content
-       void writeNormal(std::ostream &) const;
+       MathDelimInset const * asDelimInset() const { return this; }
+       /// is it (...)?
+       bool isParanthesis() const;
+       /// is it [...]?
+       bool isBrackets() const;
+       /// is it |...|?
+       bool isAbs() const;
        ///
        void metrics(MathMetricsInfo const & st) const;
        ///
-       bool isMatrix() const;
+       void draw(Painter &, int x, int y) const;
+
+       ///
+       void write(WriteStream & os) const;
+       /// write normalized content
+       void normalize(NormalStream &) const;
        ///
        void maplize(MapleStream &) const;
        ///
        void mathmlize(MathMLStream &) const;
        ///
        void octavize(OctaveStream &) const;
-private:
-       ///
-       int dw() const;
        ///
        string left_;
        ///
        string right_;
+private:
+       ///
+       int dw() const;
        ///
        static string latexName(string const & name);
 };