3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
15 #include "ParagraphList.h"
17 #include <boost/scoped_ptr.hpp>
22 ParIterator(ParagraphList::iterator pit, ParagraphList const & pl);
26 ParIterator(ParIterator const &);
28 void operator=(ParIterator const &);
30 ParIterator & operator++();
32 Paragraph & operator*() const;
34 ParagraphList::iterator operator->() const;
35 /// This gives us the top-most parent paragraph
36 ParagraphList::iterator outerPar() const;
38 ParagraphList::iterator pit() const;
40 ParagraphList & plist() const;
45 bool operator==(ParIterator const & iter1, ParIterator const & iter2);
48 boost::scoped_ptr<Pimpl> pimpl_;
52 bool operator==(ParIterator const & iter1, ParIterator const & iter2);
55 bool operator!=(ParIterator const & iter1, ParIterator const & iter2);
58 class ParConstIterator {
61 ParConstIterator(ParagraphList::iterator pit, ParagraphList const & pl);
65 ParConstIterator(ParConstIterator const &);
67 ParConstIterator & operator++();
69 ParagraphList::const_iterator pit() const;
71 Paragraph const & operator*() const;
73 ParagraphList::const_iterator operator->() const;
75 ParagraphList const & plist() const;
81 bool operator==(ParConstIterator const & iter1,
82 ParConstIterator const & iter2);
85 boost::scoped_ptr<Pimpl> pimpl_;
88 bool operator==(ParConstIterator const & iter1,
89 ParConstIterator const & iter2);
91 bool operator!=(ParConstIterator const & iter1,
92 ParConstIterator const & iter2);