]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetoptarg.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetoptarg.C
index 7eb44dafc4c6affa4e3cfe6747ecd10d96260d31..d5ed89d3c9a3c4e8cbe75258857e58af8fac750a 100644 (file)
@@ -19,7 +19,8 @@
 
 #include <sstream>
 
-using lyx::docstring;
+
+namespace lyx {
 
 using std::string;
 using std::auto_ptr;
@@ -66,34 +67,37 @@ void InsetOptArg::write(Buffer const & buf, ostream & os) const
 }
 
 
-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 &, lyx::odocstream &,
+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