X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fparagraph_funcs.h;h=7a7c763f0dbc0f640b6ff3751388ed9b65720815;hb=f268743f8c014ef2dadd260fd1a3873cb1d2038b;hp=80043153131ae456e3850ae4db4baca8b742511d;hpb=83e37d57dd3228814360a46cb5487ed4fb50ee6c;p=lyx.git diff --git a/src/paragraph_funcs.h b/src/paragraph_funcs.h index 8004315313..7a7c763f0d 100644 --- a/src/paragraph_funcs.h +++ b/src/paragraph_funcs.h @@ -6,7 +6,7 @@ * * \author Lars Gullik Bjønnes * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #ifndef PARAGRAPH_FUNCS_H @@ -20,6 +20,7 @@ class BufferParams; class TexRow; class LatexRunParams; class LyXLex; +class InsetOld; /// void breakParagraph(BufferParams const & bparams, @@ -61,7 +62,7 @@ int getEndLabel(ParagraphList::iterator pit, ParagraphList const & plist); -void latexParagraphs(Buffer const * buf, +void latexParagraphs(Buffer const & buf, ParagraphList const & paragraphs, std::ostream & ofs, TexRow & texrow, @@ -71,10 +72,14 @@ void latexParagraphs(Buffer const * buf, /// read a paragraph from a .lyx file. Returns number of unrecognised tokens int readParagraph(Buffer & buf, Paragraph & par, LyXLex & lex); -LyXFont const realizeFont(LyXFont const & font, - BufferParams const & params); - 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); + + #endif // PARAGRAPH_FUNCS_H