]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.h
fix reading UTF8 encoded symbol file
[lyx.git] / src / mathed / InsetMathRef.h
index daf0c8c3169ed6119bb031546134fbd209e6c491..b0338f7f21304353624350f7e406646cceb7ada6 100644 (file)
@@ -14,6 +14,9 @@
 
 
 #include "InsetMathCommand.h"
+
+
+namespace lyx {
 class Buffer;
 
 // for \ref
@@ -22,36 +25,36 @@ public:
        ///
        RefInset();
        ///
-       explicit RefInset(std::string const & data);
+       explicit RefInset(docstring const & data);
        ///
        //void write(WriteStream & os) const;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
        ///
-       std::string const screenLabel() const;
+       docstring const screenLabel() const;
        ///
        void validate(LaTeXFeatures & features) const;
        ///
        virtual RefInset * asRefInset() { return this; }
 
-       /// plain ascii output
-       int plaintext(std::ostream & os, OutputParams const &) const;
+       /// plain text output in ucs4 encoding
+       int plaintext(odocstream &, OutputParams const &) const;
        /// docbook output
-       int docbook(Buffer const & buf, std::ostream & os, OutputParams const &) const;
+       int docbook(Buffer const & buf, odocstream & os, OutputParams const &) const;
 
        struct ref_type_info {
                ///
-               std::string latex_name;
+               docstring latex_name;
                ///
-               std::string gui_name;
+               docstring gui_name;
                ///
-               std::string short_gui_name;
+               docstring short_gui_name;
        };
        static ref_type_info types[];
        ///
-       static int getType(std::string const & name);
+       static int getType(docstring const & name);
        ///
-       static std::string const & getName(int type);
+       static docstring const & getName(int type);
 protected:
        ///
        virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
@@ -62,4 +65,7 @@ private:
        virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
+
+
+} // namespace lyx
 #endif