]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathMacro.h
Introduce a return value for mathmlize(). We will need this to be able
[features.git] / src / mathed / MathMacro.h
index 5edac1df786bfd7df3cc63bc82068532135e1ef7..bb9ed723cafae160d949077e248d8829e27246de 100644 (file)
@@ -26,7 +26,7 @@ namespace lyx {
 class MathMacro : public InsetMathNest {
 public:
        /// A macro can be built from an existing template
-       MathMacro(docstring const & name);
+       MathMacro(Buffer * buf, docstring const & name);
        ///
        virtual MathMacro * asMacro() { return this; }
        ///
@@ -71,7 +71,7 @@ public:
        ///
        void maple(MapleStream &) const;
        ///
-       void mathmlize(MathStream &) const;
+       docstring mathmlize(MathStream &) const;
        ///
        void octave(OctaveStream &) const;
        ///
@@ -120,6 +120,8 @@ public:
        }
        /// Return the maximal number of arguments the macro is greedy for.
        size_t appetite() const { return appetite_; }
+       ///
+       InsetCode lyxCode() const { return MATH_MACRO_CODE; }
 
 protected:
        friend class MathData;