#include <locale>
#endif
+using namespace lyx::support;
+
#ifndef CXX_GLOBAL_CSTD
using std::pow;
#endif
} else {
++unknown_tokens;
string const s = bformat(_("Unknown token: "
- "%1$s %2$s\n"),
- token,
+ "%1$s %2$s\n"),
+ token,
lex.getString());
- parseError(ErrorItem(_("Header error"), s,
+ parseError(ErrorItem(_("Header error"), s,
-1, 0, 0));
}
}
// This code is reached if lyx2lyx failed (for
// some reason) to change the file format of
// the file.
- lyx::Assert(false);
+ Assert(false);
return false;
}
}
} else {
// Saving failed, so backup is not backup
if (lyxrc.make_backup) {
- lyx::rename(s, fileName());
+ rename(s, fileName());
}
return false;
}
ofs << "<!doctype linuxdoc system";
string preamble = params.preamble;
- const string name = nice ? ChangeExtension(filename_, ".sgml")
+ string const name = nice ? ChangeExtension(filename_, ".sgml")
: fname;
preamble += features.getIncludedFiles(name);
preamble += features.getLyXSGMLEntities();
<< " PUBLIC \"-//OASIS//DTD DocBook V4.1//EN\"";
string preamble = params.preamble;
- const string name = nice ? ChangeExtension(filename_, ".sgml")
+ string const name = nice ? ChangeExtension(filename_, ".sgml")
: fname;
preamble += features.getIncludedFiles(name);
preamble += features.getLyXSGMLEntities();
sgmlparam = style->latexparam();
c_params = split(sgmlparam, c_depth,'|');
- cmd_depth = lyx::atoi(c_depth);
+ cmd_depth = atoi(c_depth);
if (command_flag) {
if (cmd_depth < command_base) {
// This is also a buffer property (ale)
-void Buffer::fillWithBibKeys(vector<pair<string, string> > & keys) const
+void Buffer::fillWithBibKeys(std::vector<std::pair<string, string> > & keys) const
{
/// if this is a child document and the parent is already loaded
/// use the parent's list instead [ale990412]