]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.h
Whitespace changes only
[lyx.git] / src / TextMetrics.h
index 2d7c09fffa5d51dd76290a02bf134628123e4823..6571bc72be647b179bee304e73c117569a48be90 100644 (file)
@@ -48,6 +48,11 @@ public:
        bool has(pit_type pit) const;
        ///
        ParagraphMetrics const & parMetrics(pit_type) const;
+       ///
+       std::pair<pit_type, ParagraphMetrics> const & first() const;
+       ///
+       std::pair<pit_type, ParagraphMetrics> const & last() const;
+
        ///
        int parPosition(pit_type pit) const;
 
@@ -57,9 +62,15 @@ public:
        Point const & origin() const { return origin_; }
 
 
+
        /// compute text metrics.
        bool metrics(MetricsInfo & mi, Dimension & dim);
 
+       ///
+       void newParMetricsDown();
+       ///
+       void newParMetricsUp();
+
        /// Gets the fully instantiated font at a given position in a paragraph
        /// Basically the same routine as Paragraph::getFont() in Paragraph.cpp.
        /// The difference is that this one is used for displaying, and thus we