]> git.lyx.org Git - lyx.git/blob - src/insetiterator.h
fix arabtex-related problems (bug 1225 and bug 1404)
[lyx.git] / src / insetiterator.h
1 // -*- C++ -*-
2 /**
3  * \file insetiterator.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef INSETITERATOR_H
13 #define INSETITERATOR_H
14
15 #include "dociterator.h"
16
17
18 class InsetIterator : public DocIterator
19 {
20 public:
21         ///
22         explicit InsetIterator(InsetBase & inset);
23         ///
24         void operator++() { forwardInset(); }
25         ///
26         void operator--();
27         ///
28         InsetBase * operator->() { return nextInset(); }
29         ///
30         InsetBase & operator*() { return *nextInset(); }
31 };
32
33 InsetIterator inset_iterator_begin(InsetBase & inset);
34
35 InsetIterator inset_iterator_end(InsetBase & inset);
36
37
38 #endif