mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Add list of Indexes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22975 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
decc411b6b
commit
6c14a1c406
@ -768,8 +768,10 @@ 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 == "index")
|
||||
label = _("List of Indexes");
|
||||
else if (cit->first == "listing")
|
||||
label = _("List of listings");
|
||||
label = _("List of Listings");
|
||||
else if (cit->first == "note")
|
||||
label = _("List of Notes");
|
||||
else if (cit->first == "footnote")
|
||||
|
@ -231,6 +231,9 @@ docstring GuiToc::guiName(string const & type) const
|
||||
if (type == "footnote")
|
||||
return _("List of Foot notes");
|
||||
|
||||
if (type == "index")
|
||||
return _("List of Indexes");
|
||||
|
||||
if (type == "note")
|
||||
return _("List of Notes");
|
||||
|
||||
|
@ -14,10 +14,12 @@
|
||||
#include "DispatchResult.h"
|
||||
#include "FuncRequest.h"
|
||||
#include "FuncStatus.h"
|
||||
#include "support/gettext.h"
|
||||
#include "LaTeXFeatures.h"
|
||||
#include "MetricsInfo.h"
|
||||
#include "sgml.h"
|
||||
#include "TocBackend.h"
|
||||
|
||||
#include "support/gettext.h"
|
||||
|
||||
#include <ostream>
|
||||
|
||||
@ -59,6 +61,17 @@ void InsetIndex::write(Buffer const & buf, ostream & os) const
|
||||
}
|
||||
|
||||
|
||||
void InsetIndex::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const
|
||||
{
|
||||
ParConstIterator pit = par_const_iterator_begin(*this);
|
||||
|
||||
Toc & toc = toclist["index"];
|
||||
docstring str;
|
||||
str = getNewLabel(str);
|
||||
toc.push_back(TocItem(pit, 0, str));
|
||||
}
|
||||
|
||||
|
||||
InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
|
||||
: InsetCommand(p, string())
|
||||
{}
|
||||
@ -90,5 +103,4 @@ InsetCode InsetPrintIndex::lyxCode() const
|
||||
return INDEX_PRINT_CODE;
|
||||
}
|
||||
|
||||
|
||||
} // namespace lyx
|
||||
|
@ -42,6 +42,8 @@ public:
|
||||
OutputParams const &) const;
|
||||
/// should paragraph indendation be omitted in any case?
|
||||
bool neverIndent(Buffer const &) const { return true; }
|
||||
///
|
||||
void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;
|
||||
private:
|
||||
///
|
||||
virtual Inset * clone() const;
|
||||
|
Loading…
Reference in New Issue
Block a user