#include "LyX.h"
-#include "buffer_funcs.h"
+#include "LayoutFile.h"
#include "Buffer.h"
#include "BufferList.h"
#include "CmdDef.h"
#include "Encoding.h"
#include "ErrorList.h"
#include "Format.h"
+#include "FuncStatus.h"
#include "KeyMap.h"
#include "Language.h"
#include "Lexer.h"
#include "LyXAction.h"
#include "LyXFunc.h"
#include "LyXRC.h"
-#include "MenuBackend.h"
#include "ModuleList.h"
#include "Mover.h"
#include "Server.h"
#include "ServerSocket.h"
#include "Session.h"
-#include "TextClassList.h"
#include "ToolbarBackend.h"
#include "frontends/alert.h"
bool use_gui = true;
-bool quitting; // flag, that we are quitting the program
-
namespace {
// Filled with the command line arguments "foo" of "-sysdir foo" or
cap::clearCutStack();
cap::clearSelection();
- // Set a flag that we do quitting from the program,
- // so no refreshes are necessary.
- quitting = true;
-
// close buffers first
pimpl_->buffer_list_.closeAll();
// aknowledged.
// if reconfiguration is needed.
- while (textclasslist.empty()) {
+ while (LayoutFileList::get().empty()) {
switch (Alert::prompt(
_("No textclass is found"),
_("LyX cannot continue because no textclass is found. "
pimpl_->lyxfunc_.initKeySequences(&pimpl_->toplevel_keymap_);
// Read menus
- if (!readUIFile(lyxrc.ui_file))
+ if (use_gui && !readUIFile(lyxrc.ui_file))
return false;
if (lyxerr.debugging(Debug::LYXRC))
break;
}
case ui_menuset:
- theApp()->menuBackend().read(lex);
+ theApp()->readMenus(lex);
break;
case ui_toolbarset: