]> git.lyx.org Git - lyx.git/blob - src/rowpainter.h
minimal effort implementation of:
[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 class LyXText;
20 class BufferView;
21 class PainterInfo;
22 class ViewMetricsInfo;
23
24 namespace lyx {
25 namespace frontend {
26 class Painter;
27 }
28 }
29
30
31 /// paint visible paragraph of main text
32 void paintText(BufferView const & bv, ViewMetricsInfo const & vi,
33                            lyx::frontend::Painter & painter);
34
35 /// paint the rows of a text inset
36 void paintTextInset(LyXText const & text, PainterInfo & pi, int x, int y);
37
38 /// some space for drawing the 'nested' markers (in pixel)
39 inline int nestMargin() { return 15; }
40
41 /// margin for changebar
42 inline int changebarMargin() { return 10; }
43
44 /// right margin
45 inline int rightMargin() { return 10; }
46
47
48 #endif // ROWPAINTER_H