X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontIterator.h;h=ce5d9369cff598c20b870a38afb87f1ce164f5b6;hb=e995e8556bd670c7183bab7e105073a5f4ccfbc0;hp=04d05dde7aa69d1df74f65476d9254ae8ea2268a;hpb=e0d54dd3b497b78094ea16ab0f38ccdc8c1642e2;p=lyx.git diff --git a/src/FontIterator.h b/src/FontIterator.h index 04d05dde7a..ce5d9369cf 100644 --- a/src/FontIterator.h +++ b/src/FontIterator.h @@ -27,17 +27,16 @@ namespace lyx { -class Buffer; -class Text; class Paragraph; +class TextMetrics; -class FontIterator : std::iterator +class FontIterator { 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_;