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.
|
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author André Pönitz
|
2004-03-27 12:33:53 +00:00
|
|
|
*
|
|
|
|
* 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:
|
|
|
|
///
|
2007-04-29 13:39:47 +00:00
|
|
|
explicit InsetIterator(Inset & inset);
|
2004-03-27 12:33:53 +00:00
|
|
|
///
|
|
|
|
void operator++() { forwardInset(); }
|
|
|
|
///
|
|
|
|
void operator--();
|
|
|
|
///
|
2007-04-29 13:39:47 +00:00
|
|
|
Inset * operator->() { return nextInset(); }
|
2004-03-27 12:33:53 +00:00
|
|
|
///
|
2007-04-29 13:39:47 +00:00
|
|
|
Inset & operator*() { return *nextInset(); }
|
2004-03-27 12:33:53 +00:00
|
|
|
};
|
|
|
|
|
2020-11-27 18:10:52 +00:00
|
|
|
InsetIterator begin(Inset & inset);
|
2004-03-30 08:18:09 +00:00
|
|
|
|
2020-11-27 18:10:52 +00:00
|
|
|
InsetIterator end(Inset & inset);
|
2004-03-30 08:18:09 +00:00
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2004-03-27 12:33:53 +00:00
|
|
|
#endif
|