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;
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, int x, int y);
48 /// paint various parts
49 /// FIXME: transfer to TextMetrics
50 void paintAppendix() const;
51 void paintDepthBar() const;
52 void paintChangeBar() const;
53 void paintTooLargeMarks(bool const left, bool const right) const;
54 void paintFirst() const;
57 void paintOnlyInsets();
58 void paintSelection() const;
61 void paintSeparator(double width, Font const & font);
62 void paintForeignMark(double orig_x, Language const * lang, int desc = 0) const;
63 void paintStringAndSel(Row::Element const & e);
64 void paintMisspelledMark(double orig_x, Row::Element const & e) const;
65 void paintChange(double orig_x , Font const & font, Change const & change) const;
66 void paintAppendixStart(int y) const;
67 void paintInset(Row::Element const & e);
69 /// return the label font for this row
70 FontInfo labelFont() const;
73 void paintLabel() const;
75 void paintTopLevelLabel() const;
78 /// contains painting related information.
83 TextMetrics const & text_metrics_;
84 ParagraphList const & pars_;
91 Paragraph const & par_;
92 ParagraphMetrics const & pm_;
94 /// row changed? (change tracking)
99 int const yo_; // current baseline
102 int solid_line_thickness_;
103 int solid_line_offset_;
104 int dotted_line_thickness_;
109 #endif // ROWPAINTER_H