]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.h
Fulfill promise to Andre: TextClass_ptr --> TextClassPtr.
[lyx.git] / src / rowpainter.h
index 6a4561835aa07ab7fcc7c8a30785bf4d09717e3a..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,20 +99,8 @@ private:
        int const yo_;    // current baseline
        double x_;
        int width_;
-       double separator_;
-       double hfill_;
-       double label_hfill_;
 };
 
-/// some space for drawing the 'nested' markers (in pixel)
-inline int nestMargin() { return 15; }
-
-/// margin for changebar
-inline int changebarMargin() { return 12; }
-
-/// right margin
-inline int rightMargin() { return 10; }
-
 } // namespace lyx
 
 #endif // ROWPAINTER_H