]> git.lyx.org Git - lyx.git/blobdiff - src/ParIterator.h
Embedding: saving inzip name to .lyx file so that embedded files can always be found...
[lyx.git] / src / ParIterator.h
index e06a3b503299f61a8e11c440a0e6ba7ecc13e5cb..af41cc0744ed91b69f4af2a471ee0de734498423 100644 (file)
@@ -21,8 +21,8 @@
 
 namespace lyx {
 
-class InsetBase;
-class LyXText;
+class Inset;
+class Text;
 class ParagraphList;
 
 
@@ -41,7 +41,7 @@ public:
        ParIterator() : DocIterator() {}
 
        ///
-       ParIterator(InsetBase &, pit_type pit);
+       ParIterator(Inset &, pit_type pit);
        ///
        ParIterator(ParIterator const &);
        ///
@@ -73,15 +73,20 @@ public:
 
 DocIterator makeDocIterator(ParIterator const &, pos_type);
 
-ParIterator par_iterator_begin(InsetBase & inset);
+ParIterator par_iterator_begin(Inset & inset);
 
-ParIterator par_iterator_end(InsetBase & inset);
+ParIterator par_iterator_end(Inset & inset);
 
 
 ///
 bool operator==(ParIterator const & iter1, ParIterator const & iter2);
 
-///
+// FIXME: Unfortunately operator!=(ParIterator &, ParIterator &) is implemented with
+// operator!=(DocIterator &, DocIterator &) that gives false if the positions
+// are different, even if the pars are the same. So ultimately it's a bug in
+// operator!=(ParIterator &, ParIterator &) I'd say (nevertheless, I would be
+// reluctant to change it, because I fear that some part of the code could rely on
+// this "bug". --Alfredo
 bool operator!=(ParIterator const & iter1, ParIterator const & iter2);
 
 
@@ -116,9 +121,9 @@ bool operator!=(ParConstIterator const & iter1,
                ParConstIterator const & iter2);
 
 
-ParConstIterator par_const_iterator_begin(InsetBase const & inset);
+ParConstIterator par_const_iterator_begin(Inset const & inset);
 
-ParConstIterator par_const_iterator_end(InsetBase const & inset);
+ParConstIterator par_const_iterator_end(Inset const & inset);