]> git.lyx.org Git - lyx.git/blob - src/paragraph_funcs.h
c02a33006cb96adc9cf2e39df9f5891842ed9de4
[lyx.git] / src / paragraph_funcs.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef PARAGRAPH_FUNCS_H
13 #define PARAGRAPH_FUNCS_H
14
15 #include "ParagraphList.h"
16 #include "paragraph.h"
17
18 #include "support/types.h"
19
20 class BufferParams;
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 /** Paste this paragraph with the next one.
34     Be carefull, this doesent make any check at all.
35 */
36 void pasteParagraph(BufferParams const & bparams,
37                     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 #endif