]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSymbol.h
fix reading UTF8 encoded symbol file
[lyx.git] / src / mathed / InsetMathSymbol.h
index 33cb4d9f3cbe1e8fe47de26fed59d56be29a1edd..1231983ae7924ffd76008b38266310dd4113d3bd 100644 (file)
@@ -14,6 +14,9 @@
 
 #include "InsetMath.h"
 
+
+namespace lyx {
+
 class latexkeys;
 
 
@@ -27,7 +30,7 @@ public:
        ///
        explicit InsetMathSymbol(char const * name);
        ///
-       explicit InsetMathSymbol(std::string const & name);
+       explicit InsetMathSymbol(docstring const & name);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -44,7 +47,7 @@ public:
        /// identifies SymbolInset as such
        InsetMathSymbol const * asSymbolInset() const { return this; }
        /// the LaTeX name of the symbol (without the backslash)
-       std::string name() const;
+       docstring name() const;
        /// request "external features"
        void validate(LaTeXFeatures & features) const;
 
@@ -57,13 +60,13 @@ public:
        ///
        void mathematica(MathematicaStream &) const;
        ///
-       void mathmlize(MathMLStream &) const;
+       void mathmlize(MathStream &) const;
        ///
        void octave(OctaveStream &) const;
        ///
        void write(WriteStream & os) const;
        ///
-       void infoize2(std::ostream & os) const;
+       void infoize2(odocstream & os) const;
 
 private:
        virtual std::auto_ptr<InsetBase> doClone() const;
@@ -76,4 +79,7 @@ private:
        ///
        mutable bool scriptable_;
 };
+
+} // namespace lyx
+
 #endif