#pragma implementation "lyxrc.h"
#endif
-#include "error.h"
+#include "debug.h"
#include "lyxrc.h"
#include "LyXAction.h"
#include "lyx_main.h"
#include "intl.h"
#include "tex-strings.h"
-#include "pathstack.h"
+#include "support/path.h"
#include "support/filetools.h"
#include "lyxtext.h"
RC_EXIT_CONFIRMATION,
RC_DISPLAY_SHORTCUTS,
RC_RELYX_COMMAND,
+ RC_TTH_COMMAND,
RC_LAST
};
{ "\\spell_command", RC_SPELL_COMMAND },
{ "\\tempdir_path", RC_TEMPDIRPATH },
{ "\\template_path", RC_TEMPLATEPATH },
+ { "\\tth_command", RC_TTH_COMMAND },
{ "\\use_alt_language", RC_USE_ALT_LANG },
{ "\\use_escape_chars", RC_USE_ESC_CHARS },
{ "\\use_input_encoding", RC_USE_INP_ENC },
default_papersize = PAPER_USLETTER;
custom_export_format = "ps";
chktex_command = "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38";
+ tth_command = "tth -t";
fontenc = "default";
dpi = 75;
// Because a screen typically is wider than a piece of paper:
{
hasBindFile = true;
string tmp = i18nLibFileSearch("bind",name,"bind");
- lyxerr.debug("Reading bindfile:" + tmp, Error::LYXRC);
+ lyxerr[Debug::LYXRC] << "Reading bindfile:" << tmp << endl;
int result = Read(tmp);
if (result) {
- lyxerr.print("Error reading bind file: " + tmp);
+ lyxerr << "Error reading bind file: " << tmp << endl;
}
return result;
}
string bindFile = "cua";
LyXLex lexrc(lyxrcTags, lyxrcCount);
- if (lyxerr.debugging(Error::LEX_PARSER))
+ if (lyxerr.debugging(Debug::PARSER))
lexrc.printTable();
lexrc.setFile(filename);
if (!lexrc.IsOK()) return -2;
- lyxerr.debug("Reading '" + filename + "'...", Error::INIT);
+ lyxerr[Debug::INIT] << "Reading '" << filename << "'..." << endl;
while (lexrc.IsOK()) {
break;
case RC_PRINTEXSTRAOPTIONS:
- if (lexrc.EatLine())
+ if (lexrc.next())
print_extra_options = lexrc.GetString();
break;
chktex_command = lexrc.GetString();
break;
+ case RC_TTH_COMMAND:
+ if (lexrc.next())
+ tth_command = lexrc.GetString();
+ break;
+
case RC_SCREEN_DPI:
if (lexrc.next())
dpi = lexrc.GetInteger();
}
if ((action = lyxaction.LookupFunc(cmd.c_str()))>=0) {
- if (lyxerr.debugging(Error::KEY)) {
- lyxerr.print("RC_BIND: Sequence `"
- + seq + "' Command `"
- + cmd + "' Action `"
- + tostr(action) + '\'');
+ if (lyxerr.debugging(Debug::KEY)) {
+ lyxerr << "RC_BIND: Sequence `"
+ << seq << "' Command `"
+ << cmd << "' Action `"
+ << action << '\'' << endl;
}
res = bindKey(seq.c_str(), action);
if (res != 0) {
void LyXRC::Print()
{
- lyxerr.print("The current internal LyXRC:");
+ lyxerr << "The current internal LyXRC:" << endl;
}