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 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;
55 void paintLast() const;
57 void paintOnlyInsets();
58 void paintSelection() const;
61 void paintForeignMark(Row::Element const & e) const;
62 void paintStringAndSel(Row::Element const & e) const;
63 void paintMisspelledMark(Row::Element const & e) const;
64 void paintChange(Row::Element const & e) const;
65 void paintAppendixStart(int y) const;
66 void paintInset(Row::Element const & e) const;
68 /// return the label font for this row
69 FontInfo labelFont() const;
72 void paintLabel() const;
74 void paintTopLevelLabel() const;
77 /// contains painting related information.
82 TextMetrics const & text_metrics_;
83 ParagraphList const & pars_;
89 Paragraph const & par_;
90 ParagraphMetrics const & pm_;
92 /// row changed? (change tracking)
97 int const yo_; // current baseline
104 #endif // ROWPAINTER_H