#include "support/debug.h"
#include "support/docstream.h"
#include "support/gettext.h"
+#include "support/lstrings.h"
using namespace std;
}
-void InsetFoot::addToToc(DocIterator const & cpit, bool output_active) const
+void InsetFoot::addToToc(DocIterator const & cpit, bool output_active,
+ UpdateType utype) const
{
DocIterator pit = cpit;
pit.push_back(CursorSlice(const_cast<InsetFoot &>(*this)));
-
- shared_ptr<Toc> toc = buffer().tocBackend().toc("footnote");
- docstring str = custom_label_ + ": ";
+
+ docstring str;
text().forOutliner(str, TOC_ENTRY_LENGTH);
- toc->push_back(TocItem(pit, 0, str, output_active, toolTipText(docstring(), 3, 60)));
+ str = custom_label_ + ": " + str;
+
+ shared_ptr<Toc> toc = buffer().tocBackend().toc("footnote");
+ toc->push_back(TocItem(pit, 0, str, output_active));
+
// Proceed with the rest of the inset.
- InsetFootlike::addToToc(cpit, output_active);
+ InsetFootlike::addToToc(cpit, output_active, utype);
}