+class PainterInfo;
+class ViewMetricsInfo;
+
+
+/// paint visible paragraph of main text
+void paintText(BufferView const & bv, ViewMetricsInfo const & vi);
+
+/// paint the rows of a text inset
+void paintTextInset(LyXText const & text, PainterInfo & pi, int x, int y);
+
+/// some space for drawing the 'nested' markers (in pixel)
+inline int nestMargin() { return 15; }
+
+/// margin for changebar
+inline int changebarMargin() { return 10; }