X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFoot.cpp;h=cb7462d503702c0f993f9492e4640bb47a4f9af7;hb=ed7d3a33abad4e1b5141b2ec626b542d1603782c;hp=d1b753d52fc661ef923e322427425b4a358b45f3;hpb=d5a5fbb8ee87d4a8ae1c55f9ba72819251bb6fb7;p=lyx.git diff --git a/src/insets/InsetFoot.cpp b/src/insets/InsetFoot.cpp index d1b753d52f..cb7462d503 100644 --- a/src/insets/InsetFoot.cpp +++ b/src/insets/InsetFoot.cpp @@ -26,6 +26,7 @@ #include "support/debug.h" #include "support/docstream.h" #include "support/gettext.h" +#include "support/lstrings.h" using namespace std; @@ -74,21 +75,6 @@ void InsetFoot::updateBuffer(ParIterator const & it, UpdateType utype) } -void InsetFoot::addToToc(DocIterator const & cpit, bool output_active, - UpdateType utype) const -{ - DocIterator pit = cpit; - pit.push_back(CursorSlice(const_cast(*this))); - - shared_ptr toc = buffer().tocBackend().toc("footnote"); - docstring str = custom_label_ + ": "; - text().forOutliner(str, TOC_ENTRY_LENGTH); - toc->push_back(TocItem(pit, 0, str, output_active, toolTipText(docstring(), 3, 60))); - // Proceed with the rest of the inset. - InsetFootlike::addToToc(cpit, output_active, utype); -} - - docstring InsetFoot::toolTip(BufferView const & bv, int x, int y) const { if (isOpen(bv))