]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.h
* do not lookup the same macro all the time
[lyx.git] / src / ParagraphMetrics.h
index a0babdfdc46d2820ed6fce012ad8b1da48c0c1ff..78ace39b1fe71b3669572e51efc7b6877646e454 100644 (file)
 
 namespace lyx {
 
+/**
+ * Each paragraph is broken up into a number of rows on the screen.
+ * This is a list of such on-screen rows, ordered from the top row
+ * downwards.
+ */
+typedef std::vector<Row> RowList;
+
 class MetricsInfo;
 class PainterInfo;
 
@@ -56,7 +63,7 @@ public:
        unsigned int ascent() const { return dim_.ascent(); }
        /// descend of paragraph below baseline
        unsigned int descent() const { return dim_.descent(); }
-       /// LyXText updates the rows using this access point
+       /// Text updates the rows using this access point
        RowList & rows() { return rows_; }
        /// The painter and others use this
        RowList const & rows() const { return rows_; }
@@ -72,6 +79,8 @@ public:
        void dump() const;
 
 private:
+       ///
+       typedef std::vector<size_type> RowSignature;
        ///
        size_type calculateRowSignature(Row const &);
        ///