2004-03-30 12:14:01 +00:00
|
|
|
/**
|
2007-04-26 04:41:58 +00:00
|
|
|
* \file InsetIterator.cpp
|
2004-03-30 12:14:01 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Alfredo Braunstein
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author André Pönitz
|
2004-03-30 12:14:01 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
2004-03-27 12:33:53 +00:00
|
|
|
|
2007-04-26 04:41:58 +00:00
|
|
|
#include "InsetIterator.h"
|
2004-03-27 12:33:53 +00:00
|
|
|
|
2008-04-30 08:26:40 +00:00
|
|
|
#include "support/lassert.h"
|
2004-03-27 12:33:53 +00:00
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
2007-04-29 13:39:47 +00:00
|
|
|
InsetIterator::InsetIterator(Inset & inset)
|
2008-11-17 11:46:07 +00:00
|
|
|
: DocIterator(&inset.buffer(), &inset)
|
2004-03-27 12:33:53 +00:00
|
|
|
{
|
2004-03-30 08:18:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-04-29 13:39:47 +00:00
|
|
|
InsetIterator inset_iterator_begin(Inset & inset)
|
2004-03-30 08:18:09 +00:00
|
|
|
{
|
|
|
|
InsetIterator it = InsetIterator(inset);
|
|
|
|
it.forwardInset();
|
|
|
|
return it;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-04-29 13:39:47 +00:00
|
|
|
InsetIterator inset_iterator_end(Inset & inset)
|
2004-03-30 08:18:09 +00:00
|
|
|
{
|
|
|
|
return InsetIterator(inset);
|
2004-03-27 12:33:53 +00:00
|
|
|
}
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|