]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetFoot.cpp
Add list of notes and list of footnotes to the outline pane.
[features.git] / src / insets / InsetFoot.cpp
index 44998604198acb5413cf9e8d7716388e7c6bfa1c..fe26f80870feca35498d3c979863dde089abe4a1 100644 (file)
@@ -24,6 +24,7 @@
 #include "OutputParams.h"
 #include "ParIterator.h"
 #include "TextClass.h"
+#include "TocBackend.h"
 
 #include "support/lstrings.h"
 
@@ -74,6 +75,18 @@ void InsetFoot::updateLabels(Buffer const & buf, ParIterator const & it)
 }
 
 
+void InsetFoot::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
+{
+       ParConstIterator pit = par_const_iterator_begin(*this);
+
+       Toc & toc = toclist["footnote"];
+       // FIXME: we probably want the footnote number too.
+       docstring str;
+       str = getNewLabel(str);
+       toc.push_back(TocItem(pit, 0, str));
+}
+
+
 int InsetFoot::latex(Buffer const & buf, odocstream & os,
                     OutputParams const & runparams_in) const
 {