2004-03-27 12:33:53 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file insetiterator.h
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
#include "dociterator.h"
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
2004-03-27 12:33:53 +00:00
|
|
|
|
#endif
|