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"
25 void breakParagraph(BufferParams const & bparams,
26 ParagraphList & paragraphs,
27 ParagraphList::iterator par,
32 void breakParagraphConservative(BufferParams const & bparams,
33 ParagraphList & paragraphs,
34 ParagraphList::iterator par,
38 * Append the next paragraph onto the tail of this one.
39 * Be careful, this doesent make any check at all.
41 void mergeParagraph(BufferParams const & bparams,
42 ParagraphList & paragraphs,
43 ParagraphList::iterator par);
47 /// for the environments
48 Paragraph * depthHook(Paragraph * par, Paragraph::depth_type depth);
50 Paragraph * outerHook(Paragraph * par);
52 /// Is it the first par with same depth and layout?
53 bool isFirstInSequence(Paragraph * par);
55 /** Check if the current paragraph is the last paragraph in a
57 int getEndLabel(Paragraph * para, BufferParams const & bparams);
61 void latexParagraphs(Buffer const * buf,
62 ParagraphList const & paragraphs,
63 ParagraphList::iterator par,
64 ParagraphList::iterator endpar,
67 bool moving_arg = false);
69 /// read a paragraph from a .lyx file. Returns number of unrecognised tokens
70 int readParagraph(Buffer & buf, Paragraph & par, LyXLex & lex);
72 #endif // PARAGRAPH_FUNCS_H