]> git.lyx.org Git - lyx.git/blobdiff - src/insetiterator.C
Fix the missing "Figure #:" label from the caption of a figure float.
[lyx.git] / src / insetiterator.C
index 1779c9f3492d137db054f596c42878e64a0e4ec2..c3d5fc392fe1fe17dac40c6fac4b15157dcb9029 100644 (file)
@@ -1,3 +1,15 @@
+/**
+ * \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"
 
@@ -5,8 +17,20 @@
 
 
 InsetIterator::InsetIterator(InsetBase & inset)
-       : DocumentIterator(inset)
+       : DocIterator(inset)
+{
+}
+
+
+InsetIterator inset_iterator_begin(InsetBase & inset)
+{
+       InsetIterator it = InsetIterator(inset);
+       it.forwardInset();
+       return it;
+}
+
+
+InsetIterator inset_iterator_end(InsetBase & inset)
 {
-       if (size() && !nextInset())
-               forwardInset();
+       return InsetIterator(inset);
 }