]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.h
typo
[lyx.git] / src / TextMetrics.h
index b370b1e3a3b0e950af00630c9aeee1a96442c850..353d28926cea72f7e6d1bd45753506d43c40f8b6 100644 (file)
@@ -45,10 +45,9 @@ public:
        ///
        bool contains(pit_type pit) const;
        ///
-       pit_type firstPit() const;
+       std::pair<pit_type, ParagraphMetrics const *> first() const;
        ///
-       pit_type lastPit() const;
-
+       std::pair<pit_type, ParagraphMetrics const *> 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_;