4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
11 * Full author contact details are available in file CREDITS.
17 #include "support/types.h"
30 class ParagraphMetrics;
35 namespace frontend { class Painter; }
38 * A class used for painting an individual row of text.
39 * FIXME: get rid of that class.
43 /// initialise and run painter
44 RowPainter(PainterInfo & pi, Text const & text,
45 pit_type pit, Row const & row, Bidi & bidi, int x, int y);
47 /// paint various parts
48 /// FIXME: transfer to TextMetrics
51 void paintChangeBar();
55 void paintOnlyInsets();
58 void paintForeignMark(double orig_x, Language const * lang, int desc = 0);
59 void paintHebrewComposeChar(pos_type & vpos, FontInfo const & font);
60 void paintArabicComposeChar(pos_type & vpos, FontInfo const & font);
61 void paintChars(pos_type & vpos, FontInfo const & font,
62 bool hebrew, bool arabic);
63 int paintAppendixStart(int y);
64 void paintFromPos(pos_type & vpos);
65 void paintInset(Inset const * inset, pos_type const pos);
66 void paintInlineCompletion(Font const & font);
68 /// return left margin
69 int leftMargin() const;
71 /// return the label font for this row
72 FontInfo labelFont() const;
74 /// contains painting related information.
79 TextMetrics & text_metrics_;
80 ParagraphList const & pars_;
87 Paragraph const & par_;
88 ParagraphMetrics const & pm_;
90 /// bidi cache, comes from outside the rowpainter because
91 /// rowpainters are normally created in a for loop and there only
92 /// one of them is active at a time.
95 /// is row erased? (change tracking)
100 int const yo_; // current baseline
107 #endif // ROWPAINTER_H