]> git.lyx.org Git - lyx.git/blobdiff - src/ParIterator.h
Avoid empty space above the top of the document
[lyx.git] / src / ParIterator.h
index 86ae70edd8debce6e091ba943c541a3c5673123e..a7631838382f4c8159086bdd1512a00f1040ed5c 100644 (file)
 
 #include "support/types.h"
 
-#include <vector>
-
 
 namespace lyx {
 
+class Buffer;
 class Inset;
 class Text;
 class ParagraphList;
@@ -38,10 +37,11 @@ public:
        typedef StdIt::reference reference;
 
        ///
-       ParIterator() : DocIterator() {}
+       ///
+       ParIterator(Buffer * buf) : DocIterator(buf) {}
 
        ///
-       ParIterator(Inset &, pit_type pit);
+       ParIterator(Buffer * buf, Inset &, pit_type pit);
        ///
        ParIterator(ParIterator const &);
        ///
@@ -94,7 +94,7 @@ class ParConstIterator : public std::iterator<std::forward_iterator_tag,
 {
 public:
        ///
-       ParConstIterator() : DocIterator() {}
+       ParConstIterator(Buffer const * buf);
        ///
        ParConstIterator(ParConstIterator const &);
        ///
@@ -118,12 +118,6 @@ public:
 //bool operator!=(ParConstIterator const & it1, ParConstIterator const & it2);
 
 
-ParConstIterator par_const_iterator_begin(Inset const & inset);
-
-ParConstIterator par_const_iterator_end(Inset const & inset);
-
-
-
 } // namespace lyx
 
 #endif