]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSplit.C
fix reading UTF8 encoded symbol file
[lyx.git] / src / mathed / InsetMathSplit.C
index 6ebab552a32d04ecaebb7b2ab2d55bc549be88e6..00dd9e87ee7e0286d39c24c5cad4e952d7a7d3a1 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "InsetMathSplit.h"
 #include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 #include "MathStream.h"
 
 #include "funcrequest.h"
@@ -32,8 +32,8 @@ using std::string;
 using std::auto_ptr;
 
 
-InsetMathSplit::InsetMathSplit(string const & name, char valign)
-       : InsetMathGrid(1, 1, valign, string()), name_(name)
+InsetMathSplit::InsetMathSplit(docstring const & name, char valign)
+       : InsetMathGrid(1, 1, valign, docstring()), name_(name)
 {
 }
 
@@ -73,8 +73,7 @@ bool InsetMathSplit::getStatus(LCursor & cur, FuncRequest const & cmd,
                docstring const & s = cmd.argument();
                if (s == "add-vline-left" || s == "add-vline-right") {
                        flag.message(bformat(
-                       from_utf8(N_("Can't add vertical grid lines in '%1$s'")),
-                       from_utf8(name_)));
+                               from_utf8(N_("Can't add vertical grid lines in '%1$s'")),       name_));
                        flag.enabled(false);
                        return true;
                }
@@ -102,9 +101,9 @@ void InsetMathSplit::write(WriteStream & ws) const
 }
 
 
-void InsetMathSplit::infoize(std::ostream & os) const
+void InsetMathSplit::infoize(odocstream & os) const
 {
-       string name = name_;
+       docstring name = name_;
        name[0] = support::uppercase(name[0]);
        os << name << ' ';
 }