#include "InsetMathCommand.h"
#include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
#include "dispatchresult.h"
#include "funcrequest.h"
#include <sstream>
-using std::string;
-using std::auto_ptr;
-using std::ostringstream;
+namespace lyx {
-CommandInset::CommandInset(string const & name)
+using std::auto_ptr;
+using std::string;
+
+CommandInset::CommandInset(docstring const & name)
: InsetMathNest(2), name_(name), set_label_(false)
{
lock_ = true;
}
-string const CommandInset::screenLabel() const
+docstring const CommandInset::screenLabel() const
{
return name_;
}
string const CommandInset::createDialogStr(string const & name) const
{
- ostringstream os;
- os << name << " LatexCommand ";
+ odocstringstream os;
+ os << from_ascii(name + " LatexCommand ");
WriteStream ws(os);
write(ws);
- ws << "\n\\end_inset\n\n";
- return os.str();
+ return to_utf8(os.str()) + "\n\\end_inset\n\n";
}
+
+
+} // namespace lyx