#include "gettext.h"
#include "lyxlex.h"
+#include "graphics/GraphicsTypes.h"
+
#include "bufferlist.h"
#include "buffer.h"
#include "lyxserver.h"
toplevel_keymap.reset(new kb_keymap);
defaultKeyBindings(toplevel_keymap.get());
+ // set the DisplayTranslator only once; should that be done here??
+ // if this should not be in this file, please also remove
+ // #include "graphics/GraphicsTypes.h" at the top -- Rob Lahaye.
+ grfx::setDisplayTranslator();
+
if (want_gui) {
lyx_gui::parse_init(argc, argv);
}
first_start = false;
return;
}
-
+
first_start = !explicit_userdir;
// If the user specified explicitly a directory, ask whether
ui_last
};
- struct keyword_item uitags[ui_last-1] = {
+ struct keyword_item uitags[ui_last - 1] = {
{ "menuset", ui_menuset },
{ "toolbar", ui_toolbar }
};
string arg((i + 1 < argc) ? argv[i + 1] : "");
string arg2((i + 2 < argc) ? argv[i + 2] : "");
-
+
int const remove = 1 + it->second(arg, arg2);
// Now, remove used arguments by shifting