]> git.lyx.org Git - lyx.git/blob - src/paragraph_funcs.h
use ParagraphList::iterator a bit more
[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(BufferParams const & bparams,
25                     Paragraph *,
26                     lyx::pos_type pos,
27                     int flag);
28
29 ///
30 void breakParagraphConservative(BufferParams const & bparams,
31                                 Paragraph *,
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(BufferParams const & bparams, Paragraph *);
39
40
41 #if 0
42 /// for the environments
43 Paragraph * depthHook(Paragraph * par, Paragraph::depth_type depth);
44
45 Paragraph * outerHook(Paragraph * par);
46
47 /// Is it the first par with same depth and layout?
48 bool isFirstInSequence(Paragraph * par);
49
50 /** Check if the current paragraph is the last paragraph in a
51     proof environment */
52 int getEndLabel(Paragraph * para, BufferParams const & bparams);
53 #endif
54
55 ParagraphList::iterator
56 TeXDeeper(Buffer const * buf,
57           BufferParams const & bparams,
58           ParagraphList::iterator pit,
59           std::ostream & os, TexRow & texrow);
60
61 ParagraphList::iterator
62 TeXEnvironment(Buffer const * buf,
63                BufferParams const & bparams,
64                ParagraphList::iterator pit,
65                std::ostream & os, TexRow & texrow);
66
67 ParagraphList::iterator
68 TeXOnePar(Buffer const * buf,
69           BufferParams const & bparams,
70           ParagraphList::iterator pit,
71           std::ostream & os, TexRow & texrow,
72           bool moving_arg);
73
74 #endif // PARAGRAPH_FUNCS_H