]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.h
zlib stuff
[lyx.git] / src / paragraph.h
index daa2056cb86ab6783017e4ef0c7ea86cbcce6d66..6581b639ed89022dcd4761d10726410a01b197ef 100644 (file)
@@ -222,6 +222,13 @@ public:
                                    LyXFont const & outerfont) const;
        LyXFont const getLabelFont(BufferParams const &,
                                   LyXFont const & outerfont) const;
+       /**
+        * The font returned by the above functions is the same in a
+        * span of characters. This method will return the last position
+        * in the paragraph for which that font is the same.
+        * This can be used to avoid unnecessary calls to getFont.
+        */
+       lyx::pos_type getEndPosOfFontSpan(lyx::pos_type pos) const;
        ///
        value_type getChar(lyx::pos_type pos) const;
        ///