]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.h
small simplification
[lyx.git] / src / rowpainter.h
index 47369cdd482932938e0388ed4f77c44d54044517..7304cd8f1961be6a0594c402ba5360585319de06 100644 (file)
@@ -21,6 +21,7 @@ namespace lyx {
 class Bidi;
 class BufferView;
 class Font;
+class Inset;
 class PainterInfo;
 class Paragraph;
 class ParagraphList;
@@ -50,6 +51,7 @@ public:
        void paintFirst();
        void paintLast();
        void paintText();
+       void paintOnlyInsets();
 
 private:
        void paintForeignMark(double orig_x, Font const & font, int desc = 0);
@@ -59,7 +61,8 @@ private:
                        bool hebrew, bool arabic);
        int paintAppendixStart(int y);
        void paintFromPos(pos_type & vpos);
-       void paintInset(pos_type const pos, Font const & font);
+       void paintInset(Inset const * inset, pos_type const pos);
+       void paintHfill(pos_type const pos, pos_type const body_pos);
 
        /// return left margin
        int leftMargin() const;
@@ -67,11 +70,8 @@ private:
        /// return the label font for this row
        Font const getLabelFont() const;
 
-       /// bufferview to paint on
-       BufferView & bv_;
-
-       /// Painter to use
-       frontend::Painter & pain_;
+       /// contains painting related information.
+       PainterInfo & pi_;
 
        /// Text for the row
        Text const & text_;