#include "InsetRef.h"
#include "InsetTOC.h"
-#include "debug.h"
-#include "gettext.h"
+#include "support/debug.h"
+#include "support/gettext.h"
#include "Lexer.h"
#include "support/ExceptionMessage.h"
#include "support/lstrings.h"
+#include "support/docstream.h"
#include <boost/assert.hpp>
+using namespace std;
namespace lyx {
using support::findToken;
-
-using std::string;
-using std::endl;
-using std::ostream;
-
using support::ExceptionMessage;
using support::WarningException;
void InsetCommandParams::setCmdName(string const & name)
{
if (!isCompatibleCommand(insetCode_, cmdName_)){
- lyxerr << "InsetCommand: Incompatible command name " <<
- name << "." << std::endl;
+ LYXERR0("InsetCommand: Incompatible command name " <<
+ name << ".");
throw ExceptionMessage(WarningException, _("InsetCommand Error: "),
from_utf8("Incompatible command name."));
}
cmdName_ = name;
CommandInfo const * const info = findInfo(insetCode_, cmdName_);
if (!info) {
- lyxerr << "Command '" << name << "' is not compatible with a '" <<
- insetType() << "' inset." << std::endl;
+ LYXERR0("Command '" << name << "' is not compatible with a '" <<
+ insetType() << "' inset.");
return;
}
ParamVector params(info->n);
}
-void InsetCommandParams::write(ostream & os) const
+void InsetCommandParams::write(std::ostream & os) const
{
os << "CommandInset " << insetType() << '\n';
os << "LatexCommand " << cmdName_ << '\n';