]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetArgument.cpp
tex2lyx/text.cpp: fix typos
[lyx.git] / src / insets / InsetArgument.cpp
index 67e48b126f18d1f926d890c2fa142256a34cc210..fb78b227eb38a21a1e6c005372f943bef065b048 100644 (file)
@@ -28,45 +28,22 @@ 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
-{
-       return 0;
-}
-
-
-int InsetArgument::plaintext(odocstream &, OutputParams const &) const
-{
-       return 0; // do not output optional arguments
-}
-
-
-int InsetArgument::docbook(odocstream &, OutputParams const &) const
-{
-       return 0;
-}
-
-
-docstring InsetArgument::xhtml(XHTMLStream &, OutputParams const &) const
-{
-       return docstring();
-}
-
-int InsetArgument::latexArgument(odocstream & os,
+void InsetArgument::latexArgument(otexstream & os,
                OutputParams const & runparams, bool optional) const
 {
+       TexRow texrow;
        odocstringstream ss;
-       int ret = InsetText::latex(ss, runparams);
+       otexstream ots(ss, texrow);
+       InsetText::latex(ots, runparams);
        docstring str = ss.str();
        if (optional && str.find(']') != docstring::npos)
                str = '{' + str + '}';
        os << (optional ? '[' : '{') << str
           << (optional ? ']' : '}');
-       return ret;
 }