-docstring const & Floating::listCommand(string const & lang) const
-{
- if (listcommand_.empty()) {
- if (needsFloatPkg())
- listcommand_ = from_ascii("\\listof{" + floattype_ + "}{")
- + getMessages(lang).get(listName()) + "}";
- else {
- if (floattype_ == "table")
- listcommand_ = from_ascii("\\listoftables");
- else if (floattype_ == "figure")
- listcommand_ = from_ascii("\\listoffigures");
- else
- // FIXME We really need a special tag for this.
- listcommand_ = from_ascii("\\listof" + floattype_ + "s");
- }
- }
- return listcommand_;
-}
-
-