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,
30 void breakParagraphConservative(BufferParams const & bparams,
35 * Append the next paragraph onto the tail of this one.
36 * Be careful, this doesent make any check at all.
38 void mergeParagraph(BufferParams const & bparams, Paragraph *);
42 /// for the environments
43 Paragraph * depthHook(Paragraph * par, Paragraph::depth_type depth);
45 Paragraph * outerHook(Paragraph * par);
47 /// Is it the first par with same depth and layout?
48 bool isFirstInSequence(Paragraph * par);
50 /** Check if the current paragraph is the last paragraph in a
52 int getEndLabel(Paragraph * para, BufferParams const & bparams);
55 ParagraphList::iterator
56 TeXDeeper(Buffer const * buf,
57 BufferParams const & bparams,
58 ParagraphList::iterator pit,
59 std::ostream & os, TexRow & texrow);
61 ParagraphList::iterator
62 TeXEnvironment(Buffer const * buf,
63 BufferParams const & bparams,
64 ParagraphList::iterator pit,
65 std::ostream & os, TexRow & texrow);
67 ParagraphList::iterator
68 TeXOnePar(Buffer const * buf,
69 BufferParams const & bparams,
70 ParagraphList::iterator pit,
71 std::ostream & os, TexRow & texrow,
74 #endif // PARAGRAPH_FUNCS_H