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_fwd.h"
16 #include "support/types.h"
18 #include <boost/scoped_ptr.hpp>
31 ParIterator(ParagraphList::iterator pit, ParagraphList const & pl);
35 ParIterator(ParIterator const &);
37 ParIterator(PosIterator const &);
39 void operator=(ParIterator const &);
41 ParIterator & operator++();
43 Paragraph & operator*() const;
45 ParagraphList::iterator operator->() const;
46 /// This gives us the top-most parent paragraph
47 ParagraphList::iterator outerPar() const;
49 ParagraphList::iterator pit() const;
51 ParagraphList & plist() const;
52 /// returns 'innermost' LyXText
53 LyXText * text(Buffer &) const;
54 /// returns innermost inset
55 InsetBase * inset() const;
56 /// returns index of cell in innermost inset
62 bool operator==(ParIterator const & iter1, ParIterator const & iter2);
64 void lockPath(BufferView *) const;
67 PosIterator asPosIterator(lyx::pos_type) const;
70 boost::scoped_ptr<Pimpl> pimpl_;
74 bool operator==(ParIterator const & iter1, ParIterator const & iter2);
77 bool operator!=(ParIterator const & iter1, ParIterator const & iter2);
80 class ParConstIterator {
83 ParConstIterator(ParagraphList::iterator pit, ParagraphList const & pl);
87 ParConstIterator(ParConstIterator const &);
89 ParConstIterator & operator++();
91 ParagraphList::const_iterator pit() const;
93 Paragraph const & operator*() const;
95 ParagraphList::const_iterator operator->() const;
97 ParagraphList const & plist() const;
103 bool operator==(ParConstIterator const & iter1,
104 ParConstIterator const & iter2);
108 boost::scoped_ptr<Pimpl> pimpl_;
111 bool operator==(ParConstIterator const & iter1,
112 ParConstIterator const & iter2);
114 bool operator!=(ParConstIterator const & iter1,
115 ParConstIterator const & iter2);