]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacroTemplate.h
fix reading UTF8 encoded symbol file
[lyx.git] / src / mathed / MathMacroTemplate.h
index 580b6b16d4bda3377960c5258e35c85da024d999..cc07d4e10f96c1d22c6a47544994ee46bb844896 100644 (file)
 
 #include "support/types.h"
 
+
+namespace lyx {
+
 /// This class contains the macro definition.
 class MathMacroTemplate : public InsetMathNest {
 public:
        ///
        MathMacroTemplate();
        ///
-       MathMacroTemplate(std::string const & name, int nargs,
-               std::string const & type,
+       MathMacroTemplate(docstring const & name, int nargs,
+               docstring const & type,
                MathArray const & = MathArray(),
                MathArray const & = MathArray());
        ///
@@ -46,7 +49,7 @@ public:
        ///
        void numargs(int);
        ///
-       std::string name() const;
+       docstring name() const;
        ///
        MacroData asMacroData() const;
        ///
@@ -63,14 +66,17 @@ public:
 private:
        virtual std::auto_ptr<InsetBase> doClone() const;
        /// prefix in inset
-       lyx::docstring prefix() const;
+       docstring prefix() const;
 
        ///
        int numargs_;
        ///
-       std::string name_;
+       docstring name_;
        /// newcommand or renewcommand or def
-       std::string type_;
+       docstring type_;
 };
 
+
+} // namespace lyx
+
 #endif