]> git.lyx.org Git - lyx.git/blob - src/paragraph_funcs.h
Fix InsetText latex export.
[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                     ParagraphList & paragraphs,
26                     ParagraphList::iterator par,
27                     lyx::pos_type pos,
28                     int flag);
29
30 ///
31 void breakParagraphConservative(BufferParams const & bparams,
32                                 ParagraphList & paragraphs,
33                                 ParagraphList::iterator par,
34                                 lyx::pos_type pos);
35
36 /**
37  * Append the next paragraph onto the tail of this one.
38  * Be careful, this doesent make any check at all.
39  */
40 void mergeParagraph(BufferParams const & bparams,
41                     ParagraphList & paragraphs,
42                     ParagraphList::iterator par);
43
44
45 #if 0
46 /// for the environments
47 Paragraph * depthHook(Paragraph * par, Paragraph::depth_type depth);
48
49 Paragraph * outerHook(Paragraph * par);
50
51 /// Is it the first par with same depth and layout?
52 bool isFirstInSequence(Paragraph * par);
53
54 /** Check if the current paragraph is the last paragraph in a
55     proof environment */
56 int getEndLabel(Paragraph * para, BufferParams const & bparams);
57 #endif
58
59 ParagraphList::iterator
60 TeXDeeper(Buffer const * buf,
61           BufferParams const & bparams,
62           ParagraphList const & paragraphs,
63           ParagraphList::iterator pit,
64           std::ostream & os, TexRow & texrow);
65
66 ParagraphList::iterator
67 TeXEnvironment(Buffer const * buf,
68                BufferParams const & bparams,
69                ParagraphList const & paragraphs,
70                ParagraphList::iterator pit,
71                std::ostream & os, TexRow & texrow);
72
73 ParagraphList::iterator
74 TeXOnePar(Buffer const * buf,
75           BufferParams const & bparams,
76           ParagraphList const & paragraphs,
77           ParagraphList::iterator pit,
78           std::ostream & os, TexRow & texrow,
79           bool moving_arg);
80
81 void latexParagraphs(Buffer const * buf,
82                      ParagraphList const & paragraphs,
83                      ParagraphList::iterator par,
84                      ParagraphList::iterator endpar,
85                      std::ostream & ofs,
86                      TexRow & texrow,
87                      bool moving_arg = false);
88
89 #endif // PARAGRAPH_FUNCS_H