#include "Lexer.h"
#include "MetricsInfo.h"
#include "OutputParams.h"
+#include "ParIterator.h"
#include "TextClass.h"
+#include "TocBackend.h"
#include "support/docstream.h"
#include "support/Translator.h"
}
+void InsetNote::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
+{
+ ParConstIterator pit = par_const_iterator_begin(*this);
+
+ Toc & toc = toclist["note"];
+ // FIXME: we probably want the note type too.
+ docstring str;
+ str = getNewLabel(str);
+ toc.push_back(TocItem(pit, 0, str));
+}
+
+
bool InsetNote::isMacroScope(Buffer const & buf) const
{
// LyX note has no latex output