]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.h
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / ParagraphMetrics.h
index 2e57f834d9b38b606aeb34ecda83b0bd9e6767db..1d690aab7732071944792d67951a81cece524802 100644 (file)
 #include "Dimension.h"
 #include "Row.h"
 
-#include <vector>
-
 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 BufferView;
 class Paragraph;
 
@@ -69,6 +60,8 @@ public:
        RowList const & rows() const { return rows_; }
        ///
        int rightMargin(BufferView const & bv) const;
+       ///
+       Paragraph const & par() const { return *par_; }
 
        /// dump some information to lyxerr
        void dump() const;