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 "support/types.h"
26 void breakParagraph(BufferParams const & bparams,
27 ParagraphList & paragraphs,
33 void breakParagraphConservative(BufferParams const & bparams,
34 ParagraphList & paragraphs,
39 * Append the next paragraph onto the tail of this one.
40 * Be careful, this doesent make any check at all.
42 void mergeParagraph(BufferParams const & bparams,
43 ParagraphList & paragraphs, lyx::par_type par);
46 /// for the environments
47 lyx::par_type depthHook(lyx::par_type par,
48 ParagraphList const & plist, lyx::depth_type depth);
50 lyx::par_type outerHook(lyx::par_type par, ParagraphList const & plist);
52 /// Is it the first par with same depth and layout?
53 bool isFirstInSequence(lyx::par_type par, ParagraphList const & plist);
55 /** Check if the current paragraph is the last paragraph in a
57 int getEndLabel(lyx::par_type par, ParagraphList const & plist);
59 LyXFont const outerFont(lyx::par_type par, ParagraphList const & plist);
61 /// find outermost paragraph containing an inset
62 lyx::par_type outerPar(Buffer const & buf, InsetBase const * inset);
64 /// return the range of pars [beg, end[ owning the range of y [ystart, yend]
65 void getParsInRange(ParagraphList & plist,
70 #endif // PARAGRAPH_FUNCS_H