label = _(floatName);
// BUG3633: listings is not a proper float so its name
// is not shown in floatlist.
+ else if (cit->first == "equation")
+ label = _("List of Equations");
else if (cit->first == "index")
label = _("List of Indexes");
else if (cit->first == "listing")
{
if (type == "tableofcontents")
return _("Table of Contents");
+ if (type == "equation")
+ return _("List of Equations");
if (type == "footnote")
return _("List of Foot notes");
if (type == "listing")
#include "support/gettext.h"
#include "LyXRC.h"
#include "OutputParams.h"
+#include "ParIterator.h"
#include "sgml.h"
#include "Text.h"
#include "TextPainter.h"
+#include "TocBackend.h"
#include "insets/RenderPreview.h"
#include "insets/InsetLabel.h"
}
+void InsetMathHull::addToToc(TocList & toclist, Buffer const & buf,
+ ParConstIterator const & pit) const
+{
+ vector<docstring> labels;
+ getLabelList(buf, labels);
+ if (labels.empty())
+ return;
+
+ Toc & toc = toclist["equation"];
+ toc.push_back(TocItem(pit, 0, labels[0]));
+}
+
+
Inset * InsetMathHull::editXY(Cursor & cur, int x, int y)
{
if (use_preview_) {
#define MATH_HULLINSET_H
#include "InsetMathGrid.h"
+
#include <boost/scoped_ptr.hpp>
namespace lyx {
+class ParConstIterator;
class RenderPreview;
///
~InsetMathHull();
///
+ void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;
+ ///
InsetMathHull & operator=(InsetMathHull const &);
///
mode_type currentMode() const;