-int getEndLabel(Paragraph * para, BufferParams const & bparams);
-#endif
-
-ParagraphList::iterator
-TeXDeeper(Buffer const * buf,
- BufferParams const & bparams,
- ParagraphList::iterator pit,
- std::ostream & os, TexRow & texrow);
-
-ParagraphList::iterator
-TeXEnvironment(Buffer const * buf,
- BufferParams const & bparams,
- ParagraphList::iterator pit,
- std::ostream & os, TexRow & texrow);
-
-ParagraphList::iterator
-TeXOnePar(Buffer const * buf,
- BufferParams const & bparams,
- ParagraphList::iterator pit,
- std::ostream & os, TexRow & texrow,
- bool moving_arg);
+int getEndLabel(ParagraphList::iterator pit,
+ ParagraphList const & plist);
+
+
+void latexParagraphs(Buffer const & buf,
+ ParagraphList const & paragraphs,
+ std::ostream & ofs,
+ TexRow & texrow,
+ LatexRunParams const &,
+ string const & everypar = string());
+
+/// read a paragraph from a .lyx file. Returns number of unrecognised tokens
+int readParagraph(Buffer & buf, Paragraph & par, LyXLex & lex);
+
+LyXFont const outerFont(ParagraphList::iterator pit,
+ ParagraphList const & plist);
+
+/// find outermost paragraph containing an inset
+ParagraphList::iterator outerPar(Buffer const & buf, InsetOld const * inset);
+
+/// find owning paragraph containing an inset
+Paragraph const & ownerPar(Buffer const & buf, InsetOld const * inset);
+