3 * \file paragraph_funcs.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS
12 #ifndef PARAGRAPH_FUNCS_H
13 #define PARAGRAPH_FUNCS_H
15 #include "ParagraphList.h"
16 #include "support/types.h"
24 void breakParagraph(BufferParams const & bparams,
25 ParagraphList::iterator par,
30 void breakParagraphConservative(BufferParams const & bparams,
31 ParagraphList::iterator par,
35 * Append the next paragraph onto the tail of this one.
36 * Be careful, this doesent make any check at all.
38 void mergeParagraph(Buffer * buf,
39 ParagraphList::iterator par);
43 /// for the environments
44 Paragraph * depthHook(Paragraph * par, Paragraph::depth_type depth);
46 Paragraph * outerHook(Paragraph * par);
48 /// Is it the first par with same depth and layout?
49 bool isFirstInSequence(Paragraph * par);
51 /** Check if the current paragraph is the last paragraph in a
53 int getEndLabel(Paragraph * para, BufferParams const & bparams);
56 ParagraphList::iterator
57 TeXDeeper(Buffer const * buf,
58 BufferParams const & bparams,
59 ParagraphList::iterator pit,
60 std::ostream & os, TexRow & texrow);
62 ParagraphList::iterator
63 TeXEnvironment(Buffer const * buf,
64 BufferParams const & bparams,
65 ParagraphList::iterator pit,
66 std::ostream & os, TexRow & texrow);
68 ParagraphList::iterator
69 TeXOnePar(Buffer const * buf,
70 BufferParams const & bparams,
71 ParagraphList::iterator pit,
72 std::ostream & os, TexRow & texrow,
75 #endif // PARAGRAPH_FUNCS_H