]> git.lyx.org Git - lyx.git/blob - src/InsetIterator.h
Avoid full metrics computation with Update:FitCursor
[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 namespace lyx {
19
20
21 class InsetIterator : public DocIterator
22 {
23 public:
24         ///
25         explicit InsetIterator(Inset & inset);
26         ///
27         void operator++() { forwardInset(); }
28         ///
29         void operator--();
30         ///
31         Inset * operator->() { return nextInset(); }
32         ///
33         Inset & operator*() { return *nextInset(); }
34 };
35
36 InsetIterator begin(Inset & inset);
37
38 InsetIterator end(Inset & inset);
39
40
41
42 } // namespace lyx
43
44 #endif