]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettext.C
Pass struct LatexRunParams around a bit...
[lyx.git] / src / insets / insettext.C
index 539e6f1f7773948196a4e44c99770249d6e3877d..05701273cf91184a87d3ff62bc18efff0a2b54ee 100644 (file)
@@ -1447,10 +1447,11 @@ Inset::RESULT InsetText::localDispatch(FuncRequest const & cmd)
 }
 
 
-int InsetText::latex(Buffer const * buf, ostream & os, bool fragile, bool) const
+int InsetText::latex(Buffer const * buf, ostream & os, LatexRunParams const & runparams,
+                    bool fragile, bool) const
 {
        TexRow texrow;
-       latexParagraphs(buf, paragraphs, os, texrow, fragile);
+       latexParagraphs(buf, paragraphs, os, texrow, runparams, fragile);
        return texrow.rows();
 }
 
@@ -2346,24 +2347,6 @@ LyXCursor const & InsetText::cursor(BufferView * bv) const
 }
 
 
-void InsetText::paragraph(Paragraph * p)
-{
-       // GENERAL COMMENT: We don't have to free the old paragraphs as the
-       // caller of this function has to take care of it. This IS important
-       // as we could have to insert a paragraph before this one and just
-       // link the actual to a new ones next and set it with this function
-       // and are done!
-       paragraphs.set(p);
-       // set ourself as owner for all the paragraphs inserted!
-       for_each(paragraphs.begin(), paragraphs.end(),
-                boost::bind(&Paragraph::setInsetOwner, _1, this));
-
-       reinitLyXText();
-       // redraw myself when asked for
-       need_update = INIT;
-}
-
-
 Inset * InsetText::getInsetFromID(int id_arg) const
 {
        if (id_arg == id())