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"
18 class InsetIterator : public DocumentIterator
24 explicit InsetIterator(InsetBase & inset);
26 void operator++() { forwardInset(); }
30 InsetBase * operator->() { return nextInset(); }
32 InsetBase & operator*() { return *nextInset(); }