]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.cpp
Move isMultiCell() to Cursor, and use it.
[lyx.git] / src / insets / InsetFloatList.cpp
index 3251b50936fb5235784a29cfd74d80da280e8ac1..e0dedf0b80856a95b7c4bb2760fcbbad7d903703 100644 (file)
@@ -21,8 +21,8 @@
 #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"
@@ -85,6 +85,7 @@ void InsetFloatList::write(ostream & os) const
 
 void InsetFloatList::read(Lexer & lex)
 {
+       lex.setContext("InsetFloatList::read");
        FloatList const & floats = buffer().params().documentClass().floats();
        string token;
 
@@ -93,9 +94,9 @@ void InsetFloatList::read(Lexer & lex)
                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()) {
@@ -105,8 +106,7 @@ void InsetFloatList::read(Lexer & lex)
                        break;
        }
        if (token != "\\end_inset") {
-               lex.printError("Missing \\end_inset at this point. "
-                              "Read: `$$Token'");
+               lex.printError("Missing \\end_inset at this point.");
        }
 }