if (type == "tableofcontents")
return _("Table of Contents");
+ if (type == "footnote")
+ return _("List of Foot notes");
+
+ if (type == "note")
+ return _("List of Notes");
+
FloatList const & floats = buffer().params().getTextClass().floats();
if (floats.typeExist(type))
return _(floats.getType(type).listName());
#include "OutputParams.h"
#include "ParIterator.h"
#include "TextClass.h"
+#include "TocBackend.h"
#include "support/lstrings.h"
}
+void InsetFoot::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
+{
+ ParConstIterator pit = par_const_iterator_begin(*this);
+
+ Toc & toc = toclist["footnote"];
+ // FIXME: we probably want the footnote number too.
+ docstring str;
+ str = getNewLabel(str);
+ toc.push_back(TocItem(pit, 0, str));
+}
+
+
int InsetFoot::latex(Buffer const & buf, odocstream & os,
OutputParams const & runparams_in) const
{
virtual docstring const editMessage() const;
/// Update the counters of this inset and of its contents
void updateLabels(Buffer const &, ParIterator const &);
+ ///
+ void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;
protected:
InsetFoot(InsetFoot const &);
#include "Lexer.h"
#include "MetricsInfo.h"
#include "OutputParams.h"
+#include "ParIterator.h"
#include "TextClass.h"
+#include "TocBackend.h"
#include "support/docstream.h"
#include "support/Translator.h"
}
+void InsetNote::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
+{
+ ParConstIterator pit = par_const_iterator_begin(*this);
+
+ Toc & toc = toclist["note"];
+ // FIXME: we probably want the note type too.
+ docstring str;
+ str = getNewLabel(str);
+ toc.push_back(TocItem(pit, 0, str));
+}
+
+
bool InsetNote::isMacroScope(Buffer const & buf) const
{
// LyX note has no latex output
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
// Update the counters of this inset and of its contents
virtual void updateLabels(Buffer const &, ParIterator const &);
+ ///
+ void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;
protected:
InsetNote(InsetNote const &);
///