]> git.lyx.org Git - lyx.git/blob - src/paragraph_funcs.h
move some functions around
[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 Buffer;
18 class BufferParams;
19 class Paragraph;
20 class TexRow;
21
22 ///
23 void breakParagraph(BufferParams const & bparams,
24                     Paragraph *,
25                     lyx::pos_type pos,
26                     int flag);
27
28 ///
29 void breakParagraphConservative(BufferParams const & bparams,
30                                 Paragraph *,
31                                 lyx::pos_type pos);
32
33 /**
34  * Append the next paragraph onto the tail of this one.
35  * Be careful, this doesent make any check at all.
36  */
37 void mergeParagraph(BufferParams const & bparams, Paragraph *);
38
39
40 #if 0
41 /// for the environments
42 Paragraph * depthHook(Paragraph * par, Paragraph::depth_type depth);
43
44 Paragraph * outerHook(Paragraph * par);
45
46 /// Is it the first par with same depth and layout?
47 bool isFirstInSequence(Paragraph * par);
48
49 /** Check if the current paragraph is the last paragraph in a
50     proof environment */
51 int getEndLabel(Paragraph * para, BufferParams const & bparams);
52 #endif
53
54 Paragraph * TeXDeeper(Buffer const * buf,
55                       BufferParams const & bparams,
56                       Paragraph * pit,
57                       std::ostream & os, TexRow & texrow);
58
59 Paragraph * TeXEnvironment(Buffer const * buf,
60                            BufferParams const & bparams,
61                            Paragraph * pit,
62                            std::ostream & os, TexRow & texrow);
63
64 Paragraph * TeXOnePar(Buffer const * buf,
65                       BufferParams const & bparams,
66                       Paragraph * pit,
67                       std::ostream & os, TexRow & texrow,
68                       bool moving_arg);
69
70 #endif // PARAGRAPH_FUNCS_H