]> git.lyx.org Git - lyx.git/blob - src/paragraph_funcs.h
remerge
[lyx.git] / src / paragraph_funcs.h
1 // -*- C++ -*-
2 /**
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.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef PARAGRAPH_FUNCS_H
13 #define PARAGRAPH_FUNCS_H
14
15 #include "support/types.h"
16
17 class BufferParams;
18 class Paragraph;
19
20 ///
21 void breakParagraph(BufferParams const & bparams,
22                     Paragraph *,
23                     lyx::pos_type pos,
24                     int flag);
25
26 ///
27 void breakParagraphConservative(BufferParams const & bparams,
28                                 Paragraph *,
29                                 lyx::pos_type pos);
30
31 /**
32  * Append the next paragraph onto the tail of this one.
33  * Be careful, this doesent make any check at all.
34  */
35 void mergeParagraph(BufferParams const & bparams, Paragraph *);
36
37
38 #if 0
39 /// for the environments
40 Paragraph * depthHook(Paragraph * par, Paragraph::depth_type depth);
41
42 Paragraph * outerHook(Paragraph * par);
43
44 /// Is it the first par with same depth and layout?
45 bool isFirstInSequence(Paragraph * par);
46
47 /** Check if the current paragraph is the last paragraph in a
48     proof environment */
49 int getEndLabel(Paragraph * para, BufferParams const & bparams);
50 #endif
51
52 #endif // PARAGRAPH_FUNCS_H