-void InsetFloat::addToToc(TocList & toclist, Buffer const & buf) const
-{
- // Is there a need to provide a list of float insets?
- return;
-
- // Abdel (01/02/2006): I'll let this code for reference in case
- // there's a need to do something similar for another kind of
- // inset.
- ParConstIterator pit = par_const_iterator_begin(*this);
- ParConstIterator end = par_const_iterator_end(*this);
-
- // Find a caption layout in one of the (child inset's) pars
- for (; pit != end; ++pit) {
- if (pit->layout()->labeltype == LABEL_SENSITIVE) {
- Toc & toc = toclist[params_.type];
- docstring const str =
- convert<docstring>(toc.size() + 1)
- + ". " + pit->asString(buf, false);
- toc.push_back(TocItem(pit, 0, str));
- return;
- }
- }
-}
-
-