// This must happen after package initialization and after lyxrc is
// read, therefore it can't be done by a static object.
ConverterCache::init();
-
- // init the global menubar on Mac. This must be done after the session
- // was recovered to know the "last files".
- if (use_gui)
- theApp()->initGlobalMenu();
-
+
return true;
}
* read and create the menu structure
*/
virtual void readMenus(Lexer & lex) = 0;
-
- /**
- * initialize the global menubar on Mac
- */
- virtual void initGlobalMenu() = 0;
/**
* add a callback for socket read notification
void GuiApplication::execBatchCommands()
{
+ // init the global menubar on Mac. This must be done after the session
+ // was recovered to know the "last files".
+ if (d->global_menubar_)
+ d->menus_.fillMenuBar(d->global_menubar_, 0, true);
+
LyX::ref().execBatchCommands();
}
}
-void GuiApplication::initGlobalMenu()
-{
- if (d->global_menubar_)
- menus().fillMenuBar(d->global_menubar_, 0, true);
-}
-
-
void GuiApplication::onLastWindowClosed()
{
if (d->global_menubar_)
std::string const hexName(ColorCode col);
void updateColor(ColorCode col);
void readMenus(Lexer & lex);
- void initGlobalMenu();
void registerSocketCallback(int fd, SocketCallback func);
void unregisterSocketCallback(int fd);
bool searchMenu(FuncRequest const & func, std::vector<docstring> & names) const;