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;
34 class ViewMetricsInfo;
36 namespace frontend { class Painter; }
39 * A class used for painting an individual row of text.
40 * FIXME: get rid of that class.
44 /// initialise and run painter
45 RowPainter(PainterInfo & pi, Text const & text,
46 pit_type pit, Row const & row, Bidi & bidi, int x, int y);
48 /// paint various parts
49 /// FIXME: transfer to TextMetrics
52 void paintChangeBar();
56 void paintOnlyInsets();
59 void paintForeignMark(double orig_x, Language const * lang, int desc = 0);
60 void paintHebrewComposeChar(pos_type & vpos, FontInfo const & font);
61 void paintArabicComposeChar(pos_type & vpos, FontInfo const & font);
62 void paintChars(pos_type & vpos, FontInfo const & font,
63 bool hebrew, bool arabic);
64 int paintAppendixStart(int y);
65 void paintFromPos(pos_type & vpos);
66 void paintInset(Inset const * inset, pos_type const pos);
67 void paintHfill(pos_type const pos, pos_type const body_pos);
69 /// return left margin
70 int leftMargin() const;
72 /// return the label font for this row
73 FontInfo const getLabelFont() const;
75 /// contains painting related information.
80 TextMetrics & text_metrics_;
81 ParagraphList const & pars_;
88 Paragraph const & par_;
89 ParagraphMetrics const & pm_;
91 /// bidi cache, comes from outside the rowpainter because
92 /// rowpainters are normally created in a for loop and there only
93 /// one of them is active at a time.
96 /// is row erased? (change tracking)
101 int const yo_; // current baseline
108 #endif // ROWPAINTER_H