#include "insetfloatlist.h"
#include "FloatList.h"
+#include "LaTeXFeatures.h"
#include "frontends/Dialogs.h"
#include "LyXView.h"
#include "BufferView.h"
string const InsetFloatList::getScreenLabel(Buffer const *) const
{
- string const guiName = floatList[getCmdName()]->second.name();
+ string const guiName = floatList[getCmdName()]->second.listName();
if (!guiName.empty()) {
- string const res = _(guiName) + _(" List");
- return res;
+ return _(guiName);
}
return _("ERROR: Nonexistent float type!");
}
}
} else {
os << "\\listof{" << getCmdName() << "}{"
- << _("List of ") << cit->second.name() << "}\n";
+ << cit->second.listName() << "}\n";
}
} else {
os << "%%\\listof{" << getCmdName() << "}{"
os << "\n";
return 0;
}
+
+
+void InsetFloatList::validate(LaTeXFeatures & features) const
+{
+ features.useFloat(getCmdName());
+}