#endif
#include "lyx_main.h"
-
+
#include "support/filetools.h"
#include "support/lyxlib.h"
#include "support/os.h"
#include "debug.h"
#include "gettext.h"
#include "lyxlex.h"
-
+
#include "bufferlist.h"
#include "lyxtextclasslist.h"
#include "lyxserver.h"
extern void QuitLyX();
extern LyXServer * lyxserver;
-
+
string system_lyxdir;
string build_lyxdir;
string system_tempdir;
if (first_start) {
files.push_back(i18nLibFileSearch("examples", "splash.lyx"));
}
-
+
#if 0 // FIXME: GUII
// Execute batch commands if available
if (!batch_command.empty()) {
last_loaded = bufferlist.newFile("tmpfile", string());
bool success = false;
-
+
// try to dispatch to last loaded buffer first
bool const dispatched = last_loaded->dispatch(batch_command, &success);
lyx_gui::start(batch_command, files);
}
-
+
extern "C" {
static
commandLineVersionInfo();
exit(0);
}
- // FIXME: why is this commented out ?
+ // FIXME: why is this commented out ?
// Check for "-nw": No XWindows as for emacs this should
// give a LyX that could be used in a terminal window.
//else if (arg == "-nw") {
lyxerr << _("Missing command string after -x switch!") << endl;
// Argh. Setting gui to false segfaults..
- // FIXME: when ? how ?
+ // FIXME: when ? how ?
// gui = false;
}
lyxerr << _("Missing filename for --import") << endl;
exit(1);
}
-
+
string const file(argv[i+2]);
string const type(argv[i+1]);
removeargs = 3;
-
+
batch_command = "buffer-import " + type + " " + file;
lyxerr << "batch_command: "
<< batch_command << endl;