label = _("List of Indexes");
else if (cit->first == "listing")
label = _("List of Listings");
+ else if (cit->first == "marginalnote")
+ label = _("List of Marginal notes");
else if (cit->first == "note")
label = _("List of Notes");
else if (cit->first == "footnote")
{
if (type == "tableofcontents")
return _("Table of Contents");
-
if (type == "footnote")
return _("List of Foot notes");
-
+ if (type == "listing")
+ return _("List of Listings");
if (type == "index")
return _("List of Indexes");
-
+ if (type == "marginalnote")
+ return _("List of Marginal notes");
if (type == "note")
return _("List of Notes");
#include "InsetMarginal.h"
#include "Buffer.h"
-#include "support/gettext.h"
#include "OutputParams.h"
+#include "TocBackend.h"
+
+#include "support/gettext.h"
#include <ostream>
}
+void InsetMarginal::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
+{
+ ParConstIterator pit = par_const_iterator_begin(*this);
+
+ Toc & toc = toclist["marginalnote"];
+ docstring str;
+ str = getNewLabel(str);
+ toc.push_back(TocItem(pit, 0, str));
+}
+
} // namespace lyx
OutputParams const & runparams) const;
///
virtual docstring const editMessage() const;
+ ///
+ void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;
protected:
InsetMarginal(InsetMarginal const &);
private: