]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCaption.cpp
Missing pieces for InsetLayout arguments
[features.git] / src / insets / InsetCaption.cpp
index a637d90e5adeaa3eca0fa0b393b6e033a3408bf5..22548a4b7761bc8826cbd8a014107e9bf73a5478 100644 (file)
@@ -227,11 +227,7 @@ void InsetCaption::latex(otexstream & os,
        // FIXME: actually, it is moving only when there is no
        // optional argument.
        runparams.moving_arg = true;
-       os << "\\caption";
-       getOptArg(os, runparams);
-       os << '{';
        InsetText::latex(os, runparams);
-       os << "}\n";
        runparams_in.encoding = runparams.encoding;
 }
 
@@ -280,13 +276,6 @@ void InsetCaption::getArgument(otexstream & os,
 }
 
 
-void InsetCaption::getOptArg(otexstream & os,
-                       OutputParams const & runparams) const
-{
-       latexArgInsets(paragraphs()[0], os, runparams, getLayout().latexargs());
-}
-
-
 int InsetCaption::getCaptionAsPlaintext(odocstream & os,
                        OutputParams const & runparams) const
 {