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.
19 #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, Bidi & bidi, int x, int y);
49 /// paint various parts
50 /// FIXME: transfer to TextMetrics
53 void paintChangeBar();
57 void paintOnlyInsets();
60 void paintForeignMark(double orig_x, Language const * lang, int desc = 0);
61 void paintMisspelledMark(double orig_x, int desc);
62 void paintHebrewComposeChar(pos_type & vpos, FontInfo const & font);
63 void paintArabicComposeChar(pos_type & vpos, FontInfo const & font);
64 void paintChars(pos_type & vpos, FontInfo const & font,
65 bool hebrew, bool arabic);
66 int paintAppendixStart(int y);
67 void paintFromPos(pos_type & vpos);
68 void paintInset(Inset const * inset, pos_type const pos);
69 void paintInlineCompletion(Font const & font);
71 /// return left margin
72 int leftMargin() const;
74 /// return the label font for this row
75 FontInfo labelFont() const;
77 /// contains painting related information.
82 TextMetrics & text_metrics_;
83 ParagraphList const & pars_;
90 Paragraph const & par_;
91 ParagraphMetrics const & pm_;
93 /// bidi cache, comes from outside the rowpainter because
94 /// rowpainters are normally created in a for loop and there only
95 /// one of them is active at a time.
98 /// row changed? (change tracking)
103 int const yo_; // current baseline
110 #endif // ROWPAINTER_H