]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_macro.h
updates to latexfeatures stuff; allow empty \document_path
[lyx.git] / src / mathed / math_macro.h
index 4460f0bfd5d54c352cf0aba3ee66d91f7915e4e0..2c3fdcfadadd270248b0519f2d504034d74302e0 100644 (file)
@@ -48,16 +48,12 @@ public:
        ///
        MathInset * clone() const;
        ///
-       void write(MathWriteInfo & os) const;
-       ///
-       void writeNormal(std::ostream &) const;
-       ///
        void dump() const;
 
        ///
-       bool idxUp(idx_type &, pos_type &) const;
+       bool idxUp(idx_type &) const;
        ///
-       bool idxDown(idx_type &, pos_type &) const;
+       bool idxDown(idx_type &) const;
        ///
        bool idxLeft(idx_type &, pos_type &) const;
        ///
@@ -67,6 +63,19 @@ public:
        void validate(LaTeXFeatures &) const;
        ///
        bool isMacro() const { return true; }
+       ///
+       bool match(MathInset *) const { return false; }
+
+       ///
+       void normalize(NormalStream &) const;
+       ///
+       void maplize(MapleStream &) const;
+       ///
+       void mathmlize(MathMLStream &) const;
+       ///
+       void octavize(OctaveStream &) const;
+       ///
+       void write(WriteStream & os) const;
 
 private:
        ///
@@ -77,11 +86,15 @@ private:
        bool editing() const;
        ///
        bool defining() const;
+       ///
+       void updateExpansion() const;
 
        ///
        MathAtom & tmplate_;
        ///
        mutable MathXArray expanded_;
+       ///
+       mutable MathMetricsInfo mi_;
 };