]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetFormulaMacro.h
Fix comment according to Enricos explanation
[lyx.git] / src / mathed / InsetFormulaMacro.h
index 8f9f46a6eb6085db5dd0a396dcff278677584081..ad27ec2101d621ee898ae9dd1a78c03503902adb 100644 (file)
@@ -15,6 +15,9 @@
 
 #include "InsetMathNest.h"
 
+
+namespace lyx {
+
 class MathMacroTemplate;
 class LyXLex;
 
@@ -28,9 +31,9 @@ public:
        ///
        InsetFormulaMacro();
        /// construct a macro hull from its name and the number of arguments
-       InsetFormulaMacro(std::string const & name, int nargs, std::string const & t);
+       InsetFormulaMacro(docstring const & name, int nargs, docstring const & t);
        /// constructs a mocro from its LaTeX definition
-       explicit InsetFormulaMacro(std::string const & s);
+       explicit InsetFormulaMacro(docstring const & s);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -41,13 +44,13 @@ public:
        ///
        void write(Buffer const &, std::ostream & os) const;
        ///
-       int plaintext(Buffer const &, std::ostream &,
+       int plaintext(Buffer const &, odocstream &,
                  OutputParams const &) const;
        ///
-       int latex(Buffer const &, std::ostream & os,
+       int latex(Buffer const &, odocstream & os,
                  OutputParams const &) const;
        ///
-       int docbook(Buffer const &, std::ostream &,
+       int docbook(Buffer const &, odocstream &,
                    OutputParams const &) const;
 
        ///
@@ -55,7 +58,7 @@ public:
        ///
        InsetBase::Code lyxCode() const { return MATHMACRO_CODE; }
        ///
-       std::string const & getInsetName() const { return name_; }
+       docstring const & getInsetName() const { return name_; }
        ///
        EDITABLE editable() const { return HIGHLY_EDITABLE; }
 private:
@@ -64,9 +67,12 @@ private:
        ///
        void read(std::istream & is);
        /// prefix in inset
-       std::string prefix() const;
+       docstring prefix() const;
        ///
-       std::string name_;
+       docstring name_;
 };
 
+
+} // namespace lyx
+
 #endif