X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetMarginal.cpp;h=3dfcf7d048ff8eb4f19888db620567ff7306fbd7;hb=ebc2b1295a0464dde6c20a09ddc249c463a21c79;hp=9aba39ad8a196c574a89dbc4503893650f693133;hpb=14fa2c71625c715ffcc42d13ee0151333079de2c;p=lyx.git diff --git a/src/insets/InsetMarginal.cpp b/src/insets/InsetMarginal.cpp index 9aba39ad8a..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); - - std::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