]> git.lyx.org Git - lyx.git/blobdiff - src/FontIterator.h
* BufferView::updateMetrics(): split up the method in two for the SinglePar case.
[lyx.git] / src / FontIterator.h
index 04d05dde7aa69d1df74f65476d9254ae8ea2268a..44ecb3790813371662cc0c4de11a9cb2a7b628fb 100644 (file)
 
 namespace lyx {
 
-class Buffer;
-class Text;
 class Paragraph;
+class TextMetrics;
 
 
 class FontIterator : std::iterator<std::forward_iterator_tag, Font>
 {
 public:
        ///
-       FontIterator(Buffer const & buffer, Text const & text,
-               Paragraph const & par, pos_type pos);
+       FontIterator(TextMetrics const & tm,
+               Paragraph const & par, pit_type pit, pos_type pos);
        ///
        Font const & operator*() const;
        ///
@@ -47,12 +46,12 @@ public:
 
 private:
        ///
-       Buffer const & buffer_;
-       ///
-       Text const & text_;
+       TextMetrics const & tm_;
        ///
        Paragraph const & par_;
        ///
+       pit_type pit_;
+       ///
        pos_type pos_;
        ///
        Font font_;