]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMacro.h
cursor is no more damaging the background. L-shaped cursor is broken right now....
[lyx.git] / src / mathed / InsetMathMacro.h
index 02c097bfb2669e2ccab5ccea56a9b2410fb32e25..24cd74586c1ce387aa48cd87252f7f6d7e4a23ac 100644 (file)
 #include "MathMacroTable.h"
 
 
+namespace lyx {
+
+
 /// This class contains the data for a macro.
 class MathMacro : public InsetMathNest {
 public:
        /// A macro can be built from an existing template
-       MathMacro(std::string const & name, int numargs);
+       MathMacro(docstring const & name, int numargs);
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -38,7 +41,7 @@ public:
        ///
        InsetBase * editXY(LCursor & cur, int x, int y);
        ///
-       std::string name() const;
+       docstring name() const;
        ///
        void setExpansion(MathArray const & exp, MathArray const & args) const;
 
@@ -48,13 +51,13 @@ public:
        ///
        void maple(MapleStream &) const;
        ///
-       void mathmlize(MathMLStream &) const;
+       void mathmlize(MathStream &) const;
        ///
        void octave(OctaveStream &) const;
        ///
-       void infoize(std::ostream &) const;
+       void infoize(odocstream &) const;
        ///
-       void infoize2(std::ostream &) const;
+       void infoize2(odocstream &) const;
 
 private:
        virtual std::auto_ptr<InsetBase> doClone() const;
@@ -64,7 +67,7 @@ private:
        void expand() const;
 
        /// name of macro
-       std::string name_;
+       docstring name_;
        /// the unexpanded macro defintition
        mutable MathArray tmpl_;
        /// the macro substituted with our args
@@ -72,4 +75,7 @@ private:
 };
 
 
+
+
+} // namespace lyx
 #endif