]> git.lyx.org Git - lyx.git/blobdiff - src/insetiterator.C
* lib/languages:
[lyx.git] / src / insetiterator.C
index 1779c9f3492d137db054f596c42878e64a0e4ec2..5f862fb3e2296e5b86444c7dfa07303de35ad4a6 100644 (file)
@@ -1,12 +1,42 @@
+/**
+ * \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 <config.h>
 
 #include "insetiterator.h"
 
 #include <boost/assert.hpp>
 
 
+namespace lyx {
+
+
 InsetIterator::InsetIterator(InsetBase & inset)
-       : DocumentIterator(inset)
+       : DocIterator(inset)
+{
+}
+
+
+InsetIterator inset_iterator_begin(InsetBase & inset)
 {
-       if (size() && !nextInset())
-               forwardInset();
+       InsetIterator it = InsetIterator(inset);
+       it.forwardInset();
+       return it;
 }
+
+
+InsetIterator inset_iterator_end(InsetBase & inset)
+{
+       return InsetIterator(inset);
+}
+
+
+} // namespace lyx