X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetMarginal.cpp;h=3dfcf7d048ff8eb4f19888db620567ff7306fbd7;hb=ebc2b1295a0464dde6c20a09ddc249c463a21c79;hp=cb85ab3c2045bf2028a2890f3569165ea9c5cb98;hpb=cf64064db71ddedb4deb888e63325cea8619a9cd;p=lyx.git diff --git a/src/insets/InsetMarginal.cpp b/src/insets/InsetMarginal.cpp index cb85ab3c20..3dfcf7d048 100644 --- a/src/insets/InsetMarginal.cpp +++ b/src/insets/InsetMarginal.cpp @@ -52,22 +52,4 @@ int InsetMarginal::docbook(odocstream & os, } -void InsetMarginal::addToToc(DocIterator const & cpit, bool output_active, - UpdateType utype) const -{ - DocIterator pit = cpit; - pit.push_back(CursorSlice(const_cast(*this))); - - docstring tooltip; - text().forOutliner(tooltip, TOC_ENTRY_LENGTH); - docstring const str = tooltip; - tooltip = support::wrapParas(tooltip, 0, 60, 2); - - shared_ptr toc = buffer().tocBackend().toc("marginalnote"); - toc->push_back(TocItem(pit, 0, str, output_active, tooltip)); - - // Proceed with the rest of the inset. - InsetFootlike::addToToc(cpit, output_active, utype); -} - } // namespace lyx