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.
20 #include "support/types.h"
32 class ParagraphMetrics;
37 namespace frontend { class Painter; }
40 * A class used for painting an individual row of text.
41 * FIXME: get rid of that class.
45 /// initialise and run painter
46 RowPainter(PainterInfo & pi, Text const & text,
47 pit_type pit, Row const & row, int x, int y);
49 /// paint various parts
50 /// FIXME: transfer to TextMetrics
53 void paintChangeBar();
57 void paintOnlyInsets();
58 void paintSelection();
61 void paintSeparator(double orig_x, double width, FontInfo const & font);
62 void paintForeignMark(double orig_x, Language const * lang, int desc = 0);
63 void paintMisspelledMark(double orig_x, bool changed);
64 void paintChars(pos_type & vpos, Font const & font);
65 int paintAppendixStart(int y);
66 void paintFromPos(pos_type & vpos, bool changed);
67 void paintInset(Inset const * inset, pos_type const pos);
68 void paintInlineCompletion(Font const & font);
70 /// return left margin
71 int leftMargin() const;
73 /// return the label font for this row
74 FontInfo labelFont() const;
79 void paintTopLevelLabel();
82 /// contains painting related information.
87 TextMetrics & text_metrics_;
88 ParagraphList const & pars_;
95 Paragraph const & par_;
96 ParagraphMetrics const & pm_;
101 /// row changed? (change tracking)
102 Change const change_;
106 int const yo_; // current baseline
109 float solid_line_thickness_;
110 int solid_line_offset_;
111 float dotted_line_thickness_;
112 int dotted_line_offset_;
117 #endif // ROWPAINTER_H