X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsetiterator.C;h=c3d5fc392fe1fe17dac40c6fac4b15157dcb9029;hb=5c00d0f48978964a576070d5950556787aa365bb;hp=1779c9f3492d137db054f596c42878e64a0e4ec2;hpb=fd0fb15d42767e78e02cd520387c5292da356616;p=lyx.git diff --git a/src/insetiterator.C b/src/insetiterator.C index 1779c9f349..c3d5fc392f 100644 --- a/src/insetiterator.C +++ b/src/insetiterator.C @@ -1,3 +1,15 @@ +/** + * \file insetiterator.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author Alfredo Braunstein + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ + +#include #include "insetiterator.h" @@ -5,8 +17,20 @@ InsetIterator::InsetIterator(InsetBase & inset) - : DocumentIterator(inset) + : DocIterator(inset) +{ +} + + +InsetIterator inset_iterator_begin(InsetBase & inset) +{ + InsetIterator it = InsetIterator(inset); + it.forwardInset(); + return it; +} + + +InsetIterator inset_iterator_end(InsetBase & inset) { - if (size() && !nextInset()) - forwardInset(); + return InsetIterator(inset); }