]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.h
make index label translatable
[lyx.git] / src / TextMetrics.h
index 44624913becaaea590b4e590ea9f06e86e854779..6571bc72be647b179bee304e73c117569a48be90 100644 (file)
@@ -48,6 +48,13 @@ 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;
 
        ///
        Dimension const & dimension() const;
@@ -55,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