]> git.lyx.org Git - lyx.git/blobdiff - src/FontIterator.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / FontIterator.h
index 7d0250bd4de3240814c0ec55b1d0d4b1937294df..262d7f90017da7dbd99074c5b3aec25a9691e496 100644 (file)
 #include "support/types.h"
 
 class LyXText;
+class Paragraph;
 
 
 class FontIterator : std::iterator<std::forward_iterator_tag, LyXFont>
 {
 public:
        ///
-       FontIterator(LyXText const & text, lyx::par_type pit, lyx::pos_type pos);
+       FontIterator(LyXText const & text, Paragraph const & par, lyx::pos_type pos);
        ///
-       LyXFont operator*() const;
+       LyXFont const & operator*() const;
        ///
        FontIterator & operator++();
        ///
@@ -43,7 +44,7 @@ private:
        ///
        LyXText const & text_;
        ///
-       lyx::par_type pit_;
+       Paragraph const & par_;
        ///
        lyx::pos_type pos_;
        ///