]> git.lyx.org Git - lyx.git/blob - src/InsetIterator.cpp
Avoid full metrics computation with Update:FitCursor
[lyx.git] / src / InsetIterator.cpp
1 /**
2  * \file InsetIterator.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Alfredo Braunstein
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #include <config.h>
13
14 #include "InsetIterator.h"
15
16 #include "support/lassert.h"
17
18
19 namespace lyx {
20
21
22 InsetIterator::InsetIterator(Inset & inset)
23         : DocIterator(&inset.buffer(), &inset)
24 {
25 }
26
27
28 InsetIterator begin(Inset & inset)
29 {
30         InsetIterator it = InsetIterator(inset);
31         it.forwardInset();
32         return it;
33 }
34
35
36 InsetIterator end(Inset & inset)
37 {
38         return InsetIterator(inset);
39 }
40
41
42 } // namespace lyx