]> git.lyx.org Git - lyx.git/blob - src/rowpainter.h
fix reading the author field.
[lyx.git] / src / rowpainter.h
1 // -*- C++ -*-
2 /**
3  * \file rowpainter.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author various
8  * \author John Levon
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef ROWPAINTER_H
14 #define ROWPAINTER_H
15
16 #include "support/types.h"
17
18 class LyXText;
19 class BufferView;
20 class PainterInfo;
21
22 /// paint the rows of the main text, return last drawn y value
23 int paintText(BufferView const & bv);
24
25 /// refresh a par of the main text
26 void refreshPar(BufferView const & bv, LyXText const & text,
27                 lyx::par_type pit);
28
29 /// paint the rows of a text inset
30 void paintTextInset(LyXText const & text, PainterInfo & pi);
31
32 /// some space for drawing the 'nested' markers (in pixel)
33 inline int nestMargin()
34 {
35         return 15;
36 }
37
38
39 /// margin for changebar
40 inline int changebarMargin()
41 {
42         return 10;
43 }
44
45
46 /// right margin
47 inline int rightMargin()
48 {
49         return 30;
50 }
51
52
53 #endif // ROWPAINTER_H