X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraphMetrics.h;h=1d690aab7732071944792d67951a81cece524802;hb=bfe98181169d9e697e515da974d9b6a15a06c940;hp=2e57f834d9b38b606aeb34ecda83b0bd9e6767db;hpb=10fafd3bfec5e14e9f317cad0a05cb572dc29387;p=lyx.git diff --git a/src/ParagraphMetrics.h b/src/ParagraphMetrics.h index 2e57f834d9..1d690aab77 100644 --- a/src/ParagraphMetrics.h +++ b/src/ParagraphMetrics.h @@ -20,17 +20,8 @@ #include "Dimension.h" #include "Row.h" -#include - 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 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;