2004-03-27 12:33:53 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
2007-04-26 04:41:58 +00:00
|
|
|
|
* \file InsetIterator.h
|
2004-03-27 12:33:53 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef INSETITERATOR_H
|
|
|
|
|
#define INSETITERATOR_H
|
|
|
|
|
|
2007-04-26 04:41:58 +00:00
|
|
|
|
#include "DocIterator.h"
|
2004-03-27 12:33:53 +00:00
|
|
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
|
|
2004-03-31 19:11:56 +00:00
|
|
|
|
class InsetIterator : public DocIterator
|
2004-03-27 12:33:53 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
explicit InsetIterator(InsetBase & inset);
|
|
|
|
|
///
|
|
|
|
|
void operator++() { forwardInset(); }
|
|
|
|
|
///
|
|
|
|
|
void operator--();
|
|
|
|
|
///
|
|
|
|
|
InsetBase * operator->() { return nextInset(); }
|
|
|
|
|
///
|
|
|
|
|
InsetBase & operator*() { return *nextInset(); }
|
|
|
|
|
};
|
|
|
|
|
|
2004-03-30 08:18:09 +00:00
|
|
|
|
InsetIterator inset_iterator_begin(InsetBase & inset);
|
|
|
|
|
|
|
|
|
|
InsetIterator inset_iterator_end(InsetBase & inset);
|
|
|
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2004-03-27 12:33:53 +00:00
|
|
|
|
#endif
|