#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
-#include "TocBackend.h"
#include "TextClass.h"
+#include "TocBackend.h"
#include "support/debug.h"
#include "support/gettext.h"
docstring InsetFloatList::screenLabel() const
{
- FloatList const & floats = buffer().params().textClass().floats();
+ FloatList const & floats = buffer().params().documentClass().floats();
FloatList::const_iterator it = floats[to_ascii(getParam("type"))];
if (it != floats.end())
return buffer().B_(it->second.listName());
void InsetFloatList::read(Lexer & lex)
{
- FloatList const & floats = buffer().params().textClass().floats();
+ lex.setContext("InsetFloatList::read");
+ FloatList const & floats = buffer().params().documentClass().floats();
string token;
if (lex.eatLine()) {
LYXERR(Debug::INSETS, "FloatList::float_type: "
<< to_ascii(getParam("type")));
if (!floats.typeExist(to_ascii(getParam("type"))))
- lex.printError("InsetFloatList: Unknown float type: `$$Token'");
+ lex.printError("Unknown float type");
} else {
- lex.printError("InsetFloatList: Parse error: `$$Token'");
+ lex.printError("Parse error");
}
while (lex.isOK()) {
break;
}
if (token != "\\end_inset") {
- lex.printError("Missing \\end_inset at this point. "
- "Read: `$$Token'");
+ lex.printError("Missing \\end_inset at this point.");
}
}
int InsetFloatList::latex(odocstream & os, OutputParams const &) const
{
- FloatList const & floats = buffer().params().textClass().floats();
+ FloatList const & floats = buffer().params().documentClass().floats();
FloatList::const_iterator cit = floats[to_ascii(getParam("type"))];
if (cit != floats.end()) {