]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.h
Streamlining CollapseStatus stuff
[lyx.git] / src / TextMetrics.h
index b601af7bd26a7d057678c6b1780590017804736b..ced273ad0650f527444c308e1a2ac2a6a4a2ed71 100644 (file)
@@ -48,6 +48,8 @@ public:
        /// \retval true if a full screen redraw is needed.
        /// \retval false if a single paragraph redraw is enough.
        bool redoParagraph(pit_type const pit);
+       /// Clear cache of paragraph metrics
+       void clear() { par_metrics_.clear(); }
 
        ///
        int ascent() const { return dim_.asc; }
@@ -71,7 +73,7 @@ public:
 
 
 private:
-       /// 
+       ///
        ParagraphMetrics & parMetrics(pit_type, bool redo_paragraph);
 
        /// the minimum space a manual label needs on the screen in pixels
@@ -100,7 +102,7 @@ public:
 
        /// returns pos in given par at given x coord.
        pos_type x2pos(pit_type pit, int row, int x) const;
-       
+
        // FIXME: is there a need for this?
        //int pos2x(pit_type pit, pos_type pos) const;