#include "support/lyxalgo.h"
#include "support/std_ostream.h"
-using lyx::docstring;
-using lyx::odocstream;
-using lyx::support::escape;
+
+namespace lyx {
+
+using support::escape;
using std::string;
using std::ostream;
case LFUN_INSET_MODIFY: {
InsetCommandParams p("label");
- InsetCommandMailer::string2params("label", lyx::to_utf8(cmd.argument()), p);
+ // FIXME UNICODE
+ InsetCommandMailer::string2params("label", to_utf8(cmd.argument()), p);
if (p.getCmdName().empty()) {
cur.noUpdate();
break;
}
if (p["name"] != params()["name"])
- // FIXME UNICODE
- cur.bv().buffer()->changeRefsIfUnique(lyx::to_utf8(params()["name"]),
- lyx::to_utf8(p["name"]), InsetBase::REF_CODE);
+ cur.bv().buffer()->changeRefsIfUnique(params()["name"],
+ p["name"], InsetBase::REF_CODE);
setParams(p);
break;
}
int InsetLabel::docbook(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{
- // FIXME UNICODE
os << "<!-- anchor id=\""
- << lyx::from_ascii(sgml::cleanID(buf, runparams, lyx::to_ascii(getParam("name"))))
+ << sgml::cleanID(buf, runparams, getParam("name"))
<< "\" -->";
return 0;
}
+
+
+} // namespace lyx