#include "Buffer.h"
#include "BufferParams.h"
-#include "debug.h"
+#include "support/debug.h"
#include "DispatchResult.h"
#include "Floating.h"
#include "FloatList.h"
#include "FuncRequest.h"
-#include "gettext.h"
+#include "support/gettext.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
#include "TocBackend.h"
+#include "TextClass.h"
#include "support/lstrings.h"
+#include <ostream>
-namespace lyx {
-
-using support::bformat;
+using namespace std;
+using namespace lyx::support;
-using std::endl;
-using std::string;
-using std::ostream;
+namespace lyx {
InsetFloatList::InsetFloatList()
}
-CommandInfo const * InsetFloatList::findInfo(std::string const & /* cmdName */)
+CommandInfo const * InsetFloatList::findInfo(string const & /* cmdName */)
{
static const char * const paramnames[] = {"type", ""};
static const bool isoptional[] = {false};
//HACK
-bool InsetFloatList::isCompatibleCommand(std::string const & s) {
- std::string str = s.substr(0, 6);
+bool InsetFloatList::isCompatibleCommand(string const & s)
+{
+ string str = s.substr(0, 6);
return str == "listof";
}
if (lex.eatLine()) {
setParam("type", lex.getDocString());
- LYXERR(Debug::INSETS) << "FloatList::float_type: "
- << to_ascii(getParam("type")) << endl;
+ LYXERR(Debug::INSETS, "FloatList::float_type: "
+ << to_ascii(getParam("type")));
if (!floats.typeExist(to_ascii(getParam("type"))))
lex.printError("InsetFloatList: Unknown float type: `$$Token'");
- } else
+ } else {
lex.printError("InsetFloatList: Parse error: `$$Token'");
+ }
+
while (lex.isOK()) {
lex.next();
token = lex.getString();