X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.h;h=353d28926cea72f7e6d1bd45753506d43c40f8b6;hb=801d7dc9f42baf331642606a6641606779985439;hp=b370b1e3a3b0e950af00630c9aeee1a96442c850;hpb=ff7cdf1b74f5c17a966af24dc70d49fc162f007e;p=lyx.git diff --git a/src/TextMetrics.h b/src/TextMetrics.h index b370b1e3a3..353d28926c 100644 --- a/src/TextMetrics.h +++ b/src/TextMetrics.h @@ -45,10 +45,9 @@ public: /// bool contains(pit_type pit) const; /// - pit_type firstPit() const; + std::pair first() const; /// - pit_type lastPit() const; - + std::pair last() const; /// is this row the last in the text? bool isLastRow(Row const & row) const; /// is this row the first in the text? @@ -61,9 +60,11 @@ public: /// Point const & origin() const { return origin_; } - /// ParagraphMetrics const & parMetrics(pit_type) const; + /// + ParagraphMetrics & parMetrics(pit_type); + /// void newParMetricsDown(); /// @@ -124,14 +125,8 @@ public: /// int rightMargin(ParagraphMetrics const & pm) const; - /// int rightMargin(pit_type const pit) const; - /// position of the top of the first paragraph. - int topPosition() const; - /// position of the bottom of the last paragraph. - int bottomPosition() const; - /// void draw(PainterInfo & pi, int x, int y) const; @@ -247,7 +242,6 @@ public: Dimension & dim) const; private: - friend class BufferView; /// The BufferView owner. BufferView * bv_;