]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetArgument.cpp
revert r37459 and add a note to the sources:
[lyx.git] / src / insets / InsetArgument.cpp
index 67e48b126f18d1f926d890c2fa142256a34cc210..33a6c00e2ee91169310a6d697ad1cfd89d1a197b 100644 (file)
@@ -28,12 +28,12 @@ InsetArgument::InsetArgument(Buffer * buf)
 
 void InsetArgument::write(ostream & os) const
 {
-       os << "OptArg" << "\n";
+       os << "Argument" << "\n";
        InsetCollapsable::write(os);
 }
 
 
-int InsetArgument::latex(odocstream &, OutputParams const &) const
+int InsetArgument::latex(otexstream &, OutputParams const &) const
 {
        return 0;
 }
@@ -56,11 +56,12 @@ docstring InsetArgument::xhtml(XHTMLStream &, OutputParams const &) const
        return docstring();
 }
 
-int InsetArgument::latexArgument(odocstream & os,
+int InsetArgument::latexArgument(otexstream & os,
                OutputParams const & runparams, bool optional) const
 {
        odocstringstream ss;
-       int ret = InsetText::latex(ss, runparams);
+       otexstream ots(ss);
+       int ret = InsetText::latex(ots, runparams);
        docstring str = ss.str();
        if (optional && str.find(']') != docstring::npos)
                str = '{' + str + '}';