#define PARITERATOR_H
#include "dociterator.h"
+#include "ParagraphList_fwd.h"
#include "support/types.h"
class InsetBase;
class LyXText;
-class ParagraphList;
class ParIterator : public std::iterator<std::forward_iterator_tag, Paragraph>,
///
- ParIterator(InsetBase &, lyx::par_type pit);
+ ParIterator(InsetBase &, lyx::pit_type pit);
///
ParIterator(ParIterator const &);
///
ParIterator(DocIterator const &);
/// This really should be implemented...
- //void operator=(ParIterator const &);
+ //ParIterator & operator=(ParIterator const &);
///
ParIterator & operator++();
///
///
Paragraph * operator->() const;
/// This gives us the top-most parent paragraph
- lyx::par_type outerPar() const;
+ lyx::pit_type outerPar() const;
///
- lyx::par_type pit() const;
+ lyx::pit_type pit() const;
///
+ /// return the paragraph this cursor is in
+ pit_type & pit() { return DocIterator::pit(); }
+
ParagraphList & plist() const;
};