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