3 * \file InsetIterator.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef INSETITERATOR_H
13 #define INSETITERATOR_H
15 #include "DocIterator.h"
21 class InsetIterator : public DocIterator
25 explicit InsetIterator(Inset & inset);
27 void operator++() { forwardInset(); }
31 Inset * operator->() { return nextInset(); }
33 Inset & operator*() { return *nextInset(); }
36 InsetIterator inset_iterator_begin(Inset & inset);
38 InsetIterator inset_iterator_end(Inset & inset);