mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Add list of numbered equations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23013 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
82984ec711
commit
f1c4a07544
@ -768,6 +768,8 @@ void expandToc(Menu & tomenu, Buffer const * buf)
|
||||
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")
|
||||
|
@ -227,6 +227,8 @@ docstring GuiToc::guiName(string const & type) const
|
||||
{
|
||||
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")
|
||||
|
@ -38,9 +38,11 @@
|
||||
#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"
|
||||
@ -192,6 +194,19 @@ InsetMathHull & InsetMathHull::operator=(InsetMathHull const & other)
|
||||
}
|
||||
|
||||
|
||||
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_) {
|
||||
|
@ -13,11 +13,13 @@
|
||||
#define MATH_HULLINSET_H
|
||||
|
||||
#include "InsetMathGrid.h"
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
||||
class ParConstIterator;
|
||||
class RenderPreview;
|
||||
|
||||
|
||||
@ -31,6 +33,8 @@ public:
|
||||
///
|
||||
~InsetMathHull();
|
||||
///
|
||||
void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;
|
||||
///
|
||||
InsetMathHull & operator=(InsetMathHull const &);
|
||||
///
|
||||
mode_type currentMode() const;
|
||||
|
Loading…
Reference in New Issue
Block a user