#include "texrow.h"
-using lyx::docstring;
-using lyx::odocstream;
+namespace lyx {
using std::string;
using std::auto_ptr;
(BufferParams const & bp, string const & name)
: InsetText(bp), layout_(bp.getLyXTextClass()[name])
{
- setInsetName(name);
+ setInsetName(from_utf8(name));
setAutoBreakRows(true);
setDrawFrame(true);
}
void InsetEnvironment::write(Buffer const & buf, ostream & os) const
{
- os << "Environment " << getInsetName() << "\n";
+ os << "Environment " << to_utf8(getInsetName()) << "\n";
InsetText::write(buf, os);
}
docstring const InsetEnvironment::editMessage() const
{
- // FIXME UNICODE
- return _("Opened Environment Inset: ") + lyx::from_utf8(getInsetName());
+ return _("Opened Environment Inset: ") + getInsetName();
}
OutputParams const & runparams) const
{
// FIXME UNICODE
- os << lyx::from_utf8(layout_->latexheader);
+ os << from_utf8(layout_->latexheader);
TexRow texrow;
latexParagraphs(buf, paragraphs(), os, texrow, runparams,
layout_->latexparagraph);
// FIXME UNICODE
- os << lyx::from_utf8(layout_->latexfooter);
+ os << from_utf8(layout_->latexfooter);
return texrow.rows();
}
{
return layout_;
}
+
+
+} // namespace lyx