]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.h
Fulfill promise to Andre: TextClass_ptr --> TextClassPtr.
[lyx.git] / src / rowpainter.h
index 988892ab2a2bffa1789e548f8d1c9065441dadd7..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_;
@@ -99,9 +99,6 @@ private:
        int const yo_;    // current baseline
        double x_;
        int width_;
-       double separator_;
-       double hfill_;
-       double label_hfill_;
 };
 
 } // namespace lyx