#include <sstream>
-using lyx::docstring;
+
+namespace lyx {
using std::string;
using std::auto_ptr;
LyXFont font(LyXFont::ALL_SANE);
font.setColor(LColor::collapsable);
setLabelFont(font);
- // FIXME UNICODE
- setLabel(lyx::to_utf8(_("opt")));
+ setLabel(_("opt"));
}
LyXFont font(LyXFont::ALL_SANE);
font.setColor(LColor::collapsable);
setLabelFont(font);
- // FIXME UNICODE
- setLabel(lyx::to_utf8(_("opt")));
+ setLabel(_("opt"));
}
}
-int InsetOptArg::latex(Buffer const &, ostream &,
+int InsetOptArg::latex(Buffer const &, odocstream &,
OutputParams const &) const
{
return 0;
}
-int InsetOptArg::docbook(Buffer const &, ostream &,
+int InsetOptArg::docbook(Buffer const &, odocstream &,
OutputParams const &) const
{
return 0;
}
-int InsetOptArg::plaintext(Buffer const &, ostream &,
+int InsetOptArg::plaintext(Buffer const &, odocstream &,
OutputParams const &) const
{
return 0;
}
-int InsetOptArg::latexOptional(Buffer const & buf, ostream & os,
+int InsetOptArg::latexOptional(Buffer const & buf, odocstream & os,
OutputParams const & runparams) const
{
- ostringstream ss;
+ odocstringstream ss;
int ret = InsetText::latex(buf, ss, runparams);
- string str = ss.str();
- if (str.find(']') != string::npos)
+ docstring str = ss.str();
+ if (str.find(']') != docstring::npos)
str = '{' + str + '}';
os << '[' << str << ']';
return ret;
}
+
+
+} // namespace lyx