mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
use floatname instead of floattype
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5791 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
48fc75c575
commit
5956514071
@ -1,8 +1,12 @@
|
||||
2002-12-08 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* MenuBackend.C (expandToc): gettext on float names.
|
||||
|
||||
2002-12-03 Juergen Spitzmueller <j.spitzmueller@gmx.de>
|
||||
|
||||
* lyxlength.[Ch]: set default unit to UNIT_NONE,
|
||||
implement bool empty() [bug 490]
|
||||
|
||||
|
||||
* lyxlength.[Ch]: set default unit to UNIT_NONE,
|
||||
implement bool empty() [bug 490]
|
||||
|
||||
2002-12-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* text2.C, CutAndPaste.C: use BoostFormat.h not boost/format.hpp
|
||||
|
@ -505,7 +505,7 @@ void expandToc(Menu & tomenu, Buffer const * buf)
|
||||
label, ccit->action()));
|
||||
}
|
||||
MenuItem item(MenuItem::Submenu,
|
||||
floats[cit->first]->second.name());
|
||||
_(floats[cit->first]->second.name()));
|
||||
item.submenu(menu);
|
||||
tomenu.add(item);
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-12-08 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* insetfloat.C (addToToc): use the floats name not its type
|
||||
* insetwrap.C (addToToc): ditto
|
||||
|
||||
2002-12-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* insetnote.C (init): make label font smaller
|
||||
@ -5,7 +10,7 @@
|
||||
2002-12-04 John Levon <levon@movementarian.org>
|
||||
|
||||
* insetinclude.C: ressurect setting of command name
|
||||
|
||||
|
||||
2002-12-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* insetquotes.C (dispString): disambiguate insert call
|
||||
|
@ -348,11 +348,12 @@ void InsetFloat::addToToc(toc::TocList & toclist, Buffer const * buf) const
|
||||
Paragraph * tmp = *pit;
|
||||
|
||||
if (tmp->layout()->name() == caplayout) {
|
||||
string const name = floatname(type(), buf->params);
|
||||
string const str =
|
||||
tostr(toclist[type()].size() + 1)
|
||||
tostr(toclist[name].size() + 1)
|
||||
+ ". " + tmp->asString(buf, false);
|
||||
toc::TocItem const item(tmp, 0 , str);
|
||||
toclist[type()].push_back(item);
|
||||
toclist[name].push_back(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -260,11 +260,12 @@ void InsetWrap::addToToc(toc::TocList & toclist, Buffer const * buf) const
|
||||
Paragraph * tmp = inset.paragraph();
|
||||
while (tmp) {
|
||||
if (tmp->layout()->name() == caplayout) {
|
||||
string const name = floatname(type(), buf->params);
|
||||
string const str =
|
||||
tostr(toclist[type()].size() + 1)
|
||||
tostr(toclist[name].size() + 1)
|
||||
+ ". " + tmp->asString(buf, false);
|
||||
toc::TocItem const item(tmp, 0 , str);
|
||||
toclist[type()].push_back(item);
|
||||
toclist[name].push_back(item);
|
||||
}
|
||||
tmp = tmp->next();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user