]> git.lyx.org Git - lyx.git/blob - src/insetiterator.C
Fix 3188, update the labels at each Caption insertion.
[lyx.git] / src / insetiterator.C
1 /**
2  * \file insetiterator.C
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 <boost/assert.hpp>
17
18
19 namespace lyx {
20
21
22 InsetIterator::InsetIterator(InsetBase & inset)
23         : DocIterator(inset)
24 {
25 }
26
27
28 InsetIterator inset_iterator_begin(InsetBase & inset)
29 {
30         InsetIterator it = InsetIterator(inset);
31         it.forwardInset();
32         return it;
33 }
34
35
36 InsetIterator inset_iterator_end(InsetBase & inset)
37 {
38         return InsetIterator(inset);
39 }
40
41
42 } // namespace lyx