]> git.lyx.org Git - lyx.git/blob - src/rowpainter.h
Fixed some lines that were too long. It compiled afterwards.
[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  * \author André Pönitz
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef ROWPAINTER_H
15 #define ROWPAINTER_H
16
17 #include "support/types.h"
18
19 namespace lyx {
20
21 class Text;
22 class BufferView;
23 class PainterInfo;
24 class ViewMetricsInfo;
25
26 namespace frontend { class Painter; }
27
28 /// paint visible paragraph of main text
29 void paintText(BufferView & bv, frontend::Painter & painter);
30
31 /// paint the rows of a text inset
32 void paintTextInset(Text const & text, PainterInfo & pi, int x, int y);
33
34 /// some space for drawing the 'nested' markers (in pixel)
35 inline int nestMargin() { return 15; }
36
37 /// margin for changebar
38 inline int changebarMargin() { return 12; }
39
40 /// right margin
41 inline int rightMargin() { return 10; }
42
43 } // namespace lyx
44
45 #endif // ROWPAINTER_H